Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ApplySecondary()

void Terraria.Graphics.Shaders.ArmorShaderDataSet.ApplySecondary ( int shaderId,
Entity entity,
DrawData? drawData = null )
inline

Definition at line 33 of file ArmorShaderDataSet.cs.

34 {
35 if (shaderId >= 1 && shaderId <= _shaderDataCount)
36 {
37 _shaderData[shaderId - 1].GetSecondaryShader(entity).Apply(entity, drawData);
38 }
39 else
40 {
41 Main.pixelShader.CurrentTechnique.Passes[0].Apply();
42 }
43 }

References Terraria.Graphics.Shaders.ArmorShaderDataSet._shaderData, Terraria.Graphics.Shaders.ArmorShaderDataSet._shaderDataCount, and Terraria.Main.pixelShader.