tModLoader v2024.08
A mod to make and play Terraria mods
MiscShaderData Class Reference

Inherits ShaderData.

Public Member Functions

 MiscShaderData (Asset< Effect > shader, string passName)
 
 MiscShaderData (Ref< Effect > shader, string passName)
 
virtual void Apply (DrawData? drawData=null)
 
virtual MiscShaderData GetSecondaryShader (Entity entity)
 
MiscShaderData UseColor (Color color)
 
MiscShaderData UseColor (float r, float g, float b)
 
MiscShaderData UseColor (Vector3 color)
 
MiscShaderData UseImage0 (Asset< Texture2D > asset)
 
MiscShaderData UseImage0 (string path)
 
MiscShaderData UseImage1 (Asset< Texture2D > asset)
 
MiscShaderData UseImage1 (string path)
 
MiscShaderData UseImage2 (Asset< Texture2D > asset)
 
MiscShaderData UseImage2 (string path)
 
MiscShaderData UseOpacity (float alpha)
 
MiscShaderData UseProjectionMatrix (bool doUse)
 
MiscShaderData UseSamplerState (SamplerState state)
 
MiscShaderData UseSaturation (float saturation)
 
MiscShaderData UseSecondaryColor (Color color)
 
MiscShaderData UseSecondaryColor (float r, float g, float b)
 
MiscShaderData UseSecondaryColor (Vector3 color)
 
MiscShaderData UseShaderSpecificData (Vector4 specificData)
 
- 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]