tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.Graphics.Shaders.ArmorShaderData Class Reference

Inherits Terraria.Graphics.Shaders.ShaderData.

Inherited by Terraria.GameContent.Dyes.ReflectiveArmorShaderData, Terraria.GameContent.Dyes.TeamArmorShaderData, and Terraria.GameContent.Dyes.TwilightDyeShaderData.

Public Member Functions

 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 (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 Terraria.Graphics.Shaders.ShaderData
 ShaderData (Ref< Effect > shader, string passName)
 
virtual void Apply ()
 
void SwapProgram (string passName)
 

Additional Inherited Members

- Properties inherited from Terraria.Graphics.Shaders.ShaderData
Effect Shader [get]