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

Inherits Terraria.Graphics.Shaders.ShaderData.

Public Member Functions

 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 (string path)
 
MiscShaderData UseImage1 (string path)
 
MiscShaderData UseImage2 (string path)
 
MiscShaderData UseOpacity (float alpha)
 
MiscShaderData UseProjectionMatrix (bool doUse)
 
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 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]