TDME2 1.9.121
|
Shadow mapping shader interface to render shadow map. More...
#include <tdme/engine/subsystems/shadowmapping/ShadowMapRenderShaderImplementation.h>
Public Member Functions | |
virtual | ~ShadowMapRenderShaderImplementation () |
Destructor. More... | |
virtual const string | getId ()=0 |
virtual bool | isInitialized ()=0 |
virtual void | initialize ()=0 |
Init shadow mapping. More... | |
virtual void | useProgram (Engine *engine, int contextIdx)=0 |
Use shadow map render shader program. More... | |
virtual void | unUseProgram (int contextIdx)=0 |
Un use shadow map render shader program. More... | |
virtual void | updateMatrices (int contextIdx)=0 |
Update matrices. More... | |
virtual void | updateTextureMatrix (Renderer *renderer, int contextIdx)=0 |
Update texture matrix. More... | |
virtual void | updateMaterial (Renderer *renderer, int contextIdx)=0 |
Update material. More... | |
virtual void | updateLight (Renderer *renderer, int contextIdx, int32_t lightId)=0 |
Update light. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx)=0 |
Update shader parameters. More... | |
virtual void | bindTexture (Renderer *renderer, int contextIdx, int32_t textureId)=0 |
Bind texture. More... | |
virtual void | setDepthBiasMVPMatrix (int contextIdx, const Matrix4x4 &depthBiasMVPMatrix)=0 |
Set up program depth bias mvp matrix. More... | |
virtual void | setRenderLightId (int32_t lightId)=0 |
Set light id. More... | |
Shadow mapping shader interface to render shadow map.
Definition at line 18 of file ShadowMapRenderShaderImplementation.h.
|
inlinevirtual |
Destructor.
Definition at line 23 of file ShadowMapRenderShaderImplementation.h.
|
pure virtual |
Bind texture.
renderer | renderer |
context | contet |
textureId | texture id |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Implemented in ShadowMapRenderShaderDefaultImplementation, ShadowMapRenderShaderFoliageImplementation, and ShadowMapRenderShaderTreeImplementation.
|
pure virtual |
Init shadow mapping.
Implemented in ShadowMapRenderShaderBaseImplementation, ShadowMapRenderShaderDefaultImplementation, ShadowMapRenderShaderFoliageImplementation, and ShadowMapRenderShaderTreeImplementation.
|
pure virtual |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Set up program depth bias mvp matrix.
context | contet |
depthBiasMVPMatrix | depth bias mvp matrix |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Set light id.
lightId | light id to render |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Un use shadow map render shader program.
contextIdx | context index |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Update light.
renderer | renderer |
context | contet |
lightId | light id |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Update material.
renderer | renderer |
context | contet |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Update matrices.
contextIdx | context index |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Update shader parameters.
renderer | renderer |
contextIdx | context index |
Implemented in ShadowMapRenderShaderDefaultImplementation, ShadowMapRenderShaderFoliageImplementation, ShadowMapRenderShaderTreeImplementation, and ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Update texture matrix.
renderer | renderer |
context | contet |
Implemented in ShadowMapRenderShaderBaseImplementation.
|
pure virtual |
Use shadow map render shader program.
engine | engine |
contextIdx | context index |
Implemented in ShadowMapRenderShaderBaseImplementation.