C# Class Terraria.Graphics.Shaders.ArmorShaderData

Inheritance: ShaderData
Show file Open project: EmuDevs/EDTerraria Class Usage Examples

Public Methods

Method Description
Apply ( Entity entity, DrawData drawData = null ) : void
ArmorShaderData ( Effect shader, string passName ) : Microsoft.Xna.Framework
GetSecondaryShader ( Entity entity ) : ArmorShaderData
UseColor ( Color color ) : ArmorShaderData
UseColor ( Vector3 color ) : ArmorShaderData
UseColor ( float r, float g, float b ) : ArmorShaderData
UseImage ( string path ) : ArmorShaderData
UseOpacity ( float alpha ) : ArmorShaderData
UseSaturation ( float saturation ) : ArmorShaderData
UseSecondaryColor ( Color color ) : ArmorShaderData
UseSecondaryColor ( Vector3 color ) : ArmorShaderData
UseSecondaryColor ( float r, float g, float b ) : ArmorShaderData

Method Details

Apply() public method

public Apply ( Entity entity, DrawData drawData = null ) : void
entity Entity
drawData Terraria.DataStructures.DrawData
return void

ArmorShaderData() public method

public ArmorShaderData ( Effect shader, string passName ) : Microsoft.Xna.Framework
shader Microsoft.Xna.Framework.Graphics.Effect
passName string
return Microsoft.Xna.Framework

GetSecondaryShader() public method

public GetSecondaryShader ( Entity entity ) : ArmorShaderData
entity Entity
return ArmorShaderData

UseColor() public method

public UseColor ( Color color ) : ArmorShaderData
color Color
return ArmorShaderData

UseColor() public method

public UseColor ( Vector3 color ) : ArmorShaderData
color Vector3
return ArmorShaderData

UseColor() public method

public UseColor ( float r, float g, float b ) : ArmorShaderData
r float
g float
b float
return ArmorShaderData

UseImage() public method

public UseImage ( string path ) : ArmorShaderData
path string
return ArmorShaderData

UseOpacity() public method

public UseOpacity ( float alpha ) : ArmorShaderData
alpha float
return ArmorShaderData

UseSaturation() public method

public UseSaturation ( float saturation ) : ArmorShaderData
saturation float
return ArmorShaderData

UseSecondaryColor() public method

public UseSecondaryColor ( Color color ) : ArmorShaderData
color Color
return ArmorShaderData

UseSecondaryColor() public method

public UseSecondaryColor ( Vector3 color ) : ArmorShaderData
color Vector3
return ArmorShaderData

UseSecondaryColor() public method

public UseSecondaryColor ( float r, float g, float b ) : ArmorShaderData
r float
g float
b float
return ArmorShaderData