tModLoader v2024.11
A mod to make and play Terraria mods
TeamArmorShaderData Class Reference

Inherits ArmorShaderData.

Public Member Functions

 TeamArmorShaderData (Ref< Effect > shader, string passName)
 
override void Apply (Entity entity, DrawData? drawData)
 
override ArmorShaderData GetSecondaryShader (Entity entity)
 
- Public Member Functions inherited from ArmorShaderData
 ArmorShaderData (Asset< Effect > shader, string passName)
 
 ArmorShaderData (Ref< Effect > shader, string passName)
 
virtual void Apply (Entity entity, DrawData? drawData=null)
 
virtual ArmorShaderData GetSecondaryShader (Entity entity)
 
ArmorShaderData UseColor (Color color)
 
ArmorShaderData UseColor (float r, float g, float b)
 
ArmorShaderData UseColor (Vector3 color)
 
ArmorShaderData UseImage (Asset< Texture2D > asset)
 
ArmorShaderData UseImage (string path)
 
ArmorShaderData UseOpacity (float alpha)
 
ArmorShaderData UseSaturation (float saturation)
 
ArmorShaderData UseSecondaryColor (Color color)
 
ArmorShaderData UseSecondaryColor (float r, float g, float b)
 
ArmorShaderData UseSecondaryColor (Vector3 color)
 
ArmorShaderData UseTargetPosition (Vector2 position)
 
- Public Member Functions inherited from ShaderData
 ShaderData (Asset< Effect > shader, string passName)
 
 ShaderData (Ref< Effect > shader, string passName)
 
virtual void Apply ()
 
void SwapProgram (string passName)
 

Additional Inherited Members

- Properties inherited from ShaderData
Effect Shader [get]
 

Member Function Documentation

◆ Apply()

override void TeamArmorShaderData.Apply ( Entity  entity,
DrawData drawData 
)
virtual

Reimplemented from ArmorShaderData.

◆ GetSecondaryShader()

override ArmorShaderData TeamArmorShaderData.GetSecondaryShader ( Entity  entity)
virtual

Reimplemented from ArmorShaderData.