![]() |
Skylicht Engine
|
Public Member Functions | |
| virtual void | OnSetConstants (CShader *shader, SUniform *uniform, IMaterialRenderer *matRender, bool vertexShader) |
| Called to set uniform constants for the shader. | |
Static Public Member Functions | |
| static void | setMaterial (CMaterial *material) |
| static CMaterial * | getMaterial () |
| static void | setColorIntensity (const SColorf &color) |
| static SColorf | getColorIntensity () |
|
virtual |
Called to set uniform constants for the shader.
| shader | Pointer to the CShader instance. |
| uniform | Pointer to the uniform being set. |
| matRender | Material renderer. |
| vertexShader | True if setting vertex shader constants, false for pixel shader. |
Implements Skylicht::IShaderCallback.