C# Class Terraria.Graphics.Shaders.MiscShaderData

Inheritance: ShaderData
显示文件 Open project: EmuDevs/EDTerraria

Public Methods

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

Method Details

Apply() public method

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

GetSecondaryShader() public method

public GetSecondaryShader ( Entity entity ) : MiscShaderData
entity Terraria.Entity
return MiscShaderData

MiscShaderData() public method

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

UseColor() public method

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

UseColor() public method

public UseColor ( Microsoft.Xna.Framework.Vector3 color ) : MiscShaderData
color Microsoft.Xna.Framework.Vector3
return MiscShaderData

UseColor() public method

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

UseImage() public method

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

UseOpacity() public method

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

UseSaturation() public method

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

UseSecondaryColor() public method

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

UseSecondaryColor() public method

public UseSecondaryColor ( Microsoft.Xna.Framework.Vector3 color ) : MiscShaderData
color Microsoft.Xna.Framework.Vector3
return MiscShaderData

UseSecondaryColor() public method

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