Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CShaderLighting Class Reference
Inheritance diagram for Skylicht::CShaderLighting:
Skylicht::IShaderCallback

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 setDirectionalLight (CDirectionalLight *light)
static CDirectionalLightgetDirectionalLight ()
static void setMainShadowLight (CDirectionalLight *light)
static CDirectionalLightgetMainShadowLight ()
static void setPointLight (CPointLight *light, int lightId)
static CPointLightgetPointLight (int lightId)
static void setSpotLight (CSpotLight *light, int lightId)
static CSpotLightgetSpotLight (int lightId)
static void setAreaLight (CAreaLight *light, int lightId)
static CAreaLightgetAreaLight (int lightId)
static void setLightAmbient (const SColorf &c)

Member Function Documentation

◆ OnSetConstants()

virtual void Skylicht::CShaderLighting::OnSetConstants ( CShader * shader,
SUniform * uniform,
IMaterialRenderer * matRender,
bool vertexShader )
virtual

Called to set uniform constants for the shader.

Parameters
shaderPointer to the CShader instance.
uniformPointer to the uniform being set.
matRenderMaterial renderer.
vertexShaderTrue if setting vertex shader constants, false for pixel shader.

Implements Skylicht::IShaderCallback.


The documentation for this class was generated from the following file: