Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::IShaderCallback Class Referenceabstract

Interface for shader callbacks, used to set constants in user-extended shaders. More...

#include <Material/Shader/CShader.h>

Inheritance diagram for Skylicht::IShaderCallback:
Skylicht::CShaderCamera Skylicht::CShaderDeferred Skylicht::CShaderLighting Skylicht::CShaderMaterial Skylicht::CShaderParticle Skylicht::CShaderRTT Skylicht::CShaderSH Skylicht::CShaderShadow Skylicht::CShaderTransformTexture

Public Member Functions

virtual void OnSetConstants (CShader *shader, SUniform *uniform, IMaterialRenderer *matRender, bool vertexShader)=0
 Called to set uniform constants for the shader.

Detailed Description

Interface for shader callbacks, used to set constants in user-extended shaders.

Member Function Documentation

◆ OnSetConstants()

virtual void Skylicht::IShaderCallback::OnSetConstants ( CShader * shader,
SUniform * uniform,
IMaterialRenderer * matRender,
bool vertexShader )
pure 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.

Implemented in Skylicht::CShaderCamera, Skylicht::CShaderDeferred, Skylicht::CShaderLighting, Skylicht::CShaderMaterial, Skylicht::CShaderParticle, Skylicht::CShaderRTT, Skylicht::CShaderSH, Skylicht::CShaderShadow, and Skylicht::CShaderTransformTexture.


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