Derm.Render.StdLight Class Reference

Basic light. More...

Inheritance diagram for Derm.Render.StdLight:
Derm.Render.RenderGraphNode Derm.Util.DirectedGraphNode Derm.Render.IShaderState Derm.Render.INameable Derm.Render.StdDirectionalLight Derm.Render.StdPositionalLight Derm.Render.StdSpotLight

List of all members.

Public Member Functions

 StdLight (string binding, ColorRGBAf a, ColorRGBAf d, ColorRGBAf s)
 StdLight (string binding)
void SetupLight (RenderContext ctx, ShaderProgram sProgram, int index)
 Setup light.

Protected Member Functions

virtual void SetupLight (RenderContext ctx, ShaderProgram sProgram, string uName, int index)

Properties

ColorRGBAf AmbientColor [get, set]
 StdLight ambient color.
ColorRGBAf DiffuseColor [get, set]
 StdLight ambient color.
bool Enabled [get, set]
 Enable light switch.
ColorRGBAf SpecularColor [get, set]
 StdLight ambient color.

Detailed Description

Basic light.


Constructor & Destructor Documentation

Derm.Render.StdLight.StdLight ( string  binding  ) 
Parameters:
binding A System.String representing the name used for setting shader program light structure.
Derm.Render.StdLight.StdLight ( string  binding,
ColorRGBAf  a,
ColorRGBAf  d,
ColorRGBAf  s 
)
Parameters:
binding A System.String representing the name used for setting shader program light structure.
a A ColorRGBAf representing the light ambient color factor.
d A ColorRGBAf representing the light diffuse color factor.
s A ColorRGBAf representing the light specular color factor.

Member Function Documentation

virtual void Derm.Render.StdLight.SetupLight ( RenderContext  ctx,
ShaderProgram  sProgram,
string  uName,
int  index 
) [protected, virtual]
Parameters:
ctx 
sProgram 
uName 
index 

Reimplemented in Derm.Render.StdDirectionalLight, Derm.Render.StdPositionalLight, and Derm.Render.StdSpotLight.

void Derm.Render.StdLight.SetupLight ( RenderContext  ctx,
ShaderProgram  sProgram,
int  index 
)

Setup light.

Parameters:
ctx 
sProgram 
index 

Property Documentation

ColorRGBAf Derm.Render.StdLight.AmbientColor [get, set]

StdLight ambient color.

ColorRGBAf Derm.Render.StdLight.DiffuseColor [get, set]

StdLight ambient color.

bool Derm.Render.StdLight.Enabled [get, set]

Enable light switch.

ColorRGBAf Derm.Render.StdLight.SpecularColor [get, set]

StdLight ambient color.



Services powered by Get Deus Ex Render Machina at SourceForge.net. Fast, secure and Free Open Source software downloads