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

Inherits Terraria.Graphics.Shaders.ShaderData.

Inherited by Terraria.GameContent.Shaders.BlizzardShaderData, Terraria.GameContent.Shaders.BloodMoonScreenShaderData, Terraria.GameContent.Shaders.MoonLordScreenShaderData, Terraria.GameContent.Shaders.SandstormShaderData, and Terraria.GameContent.Shaders.WaterShaderData.

Public Member Functions

 ScreenShaderData (Ref< Effect > shader, string passName)
 
 ScreenShaderData (string passName)
 
override void Apply ()
 
virtual ScreenShaderData GetSecondaryShader (Player player)
 
virtual void Update (GameTime gameTime)
 
ScreenShaderData UseColor (Color color)
 
ScreenShaderData UseColor (float r, float g, float b)
 
ScreenShaderData UseColor (Vector3 color)
 
ScreenShaderData UseDirection (Vector2 direction)
 
ScreenShaderData UseGlobalOpacity (float opacity)
 
ScreenShaderData UseImage (string path, int index=0, SamplerState samplerState=null)
 
ScreenShaderData UseImage (Texture2D image, int index=0, SamplerState samplerState=null)
 
ScreenShaderData UseImageOffset (Vector2 offset)
 
ScreenShaderData UseImageScale (Vector2 scale, int index=0)
 
ScreenShaderData UseIntensity (float intensity)
 
ScreenShaderData UseOpacity (float opacity)
 
ScreenShaderData UseProgress (float progress)
 
ScreenShaderData UseSecondaryColor (Color color)
 
ScreenShaderData UseSecondaryColor (float r, float g, float b)
 
ScreenShaderData UseSecondaryColor (Vector3 color)
 
ScreenShaderData UseTargetPosition (Vector2 position)
 
- Public Member Functions inherited from Terraria.Graphics.Shaders.ShaderData
 ShaderData (Ref< Effect > shader, string passName)
 
void SwapProgram (string passName)
 

Properties

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