tModLoader v2024.09
A mod to make and play Terraria mods
TwilightHairDyeShaderData Class Reference

Inherits HairShaderData.

Public Member Functions

 TwilightHairDyeShaderData (Ref< Effect > shader, string passName)
 
override void Apply (Player player, DrawData? drawData=null)
 
- Public Member Functions inherited from HairShaderData
 HairShaderData (Asset< Effect > shader, string passName)
 
 HairShaderData (Ref< Effect > shader, string passName)
 
virtual void Apply (Player player, DrawData? drawData=null)
 
virtual Color GetColor (Player player, Color lightColor)
 
HairShaderData UseColor (Color color)
 
HairShaderData UseColor (float r, float g, float b)
 
HairShaderData UseColor (Vector3 color)
 
HairShaderData UseImage (Asset< Texture2D > asset)
 
HairShaderData UseImage (string path)
 
HairShaderData UseOpacity (float alpha)
 
HairShaderData UseSaturation (float saturation)
 
HairShaderData UseSecondaryColor (Color color)
 
HairShaderData UseSecondaryColor (float r, float g, float b)
 
HairShaderData UseSecondaryColor (Vector3 color)
 
HairShaderData 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

- Protected Attributes inherited from HairShaderData
bool _shaderDisabled
 
Vector3 _uColor = Vector3.One
 
Asset< Texture2D > _uImage
 
float _uOpacity = 1f
 
float _uSaturation = 1f
 
Vector3 _uSecondaryColor = Vector3.One
 
- Properties inherited from HairShaderData
bool ShaderDisabled [get]
 
- Properties inherited from ShaderData
Effect Shader [get]
 

Member Function Documentation

◆ Apply()

override void TwilightHairDyeShaderData.Apply ( Player  player,
DrawData drawData = null 
)
virtual

Reimplemented from HairShaderData.