Basic light. More...
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. | |
Basic light.
| Derm.Render.StdLight.StdLight | ( | string | binding | ) |
| 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 | |||
| ) |
| 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. |
| virtual void Derm.Render.StdLight.SetupLight | ( | RenderContext | ctx, | |
| ShaderProgram | sProgram, | |||
| string | uName, | |||
| int | index | |||
| ) | [protected, virtual] |
| 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.
| ctx | ||
| sProgram | ||
| index |
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.