TDME2 1.9.121
|
Shadow mapping default shader to render shadow map. More...
#include <tdme/engine/subsystems/shadowmapping/ShadowMapRenderShaderDefaultImplementation.h>
Public Member Functions | |
ShadowMapRenderShaderDefaultImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual | ~ShadowMapRenderShaderDefaultImplementation () |
Destructor. More... | |
virtual const string | getId () override |
virtual void | initialize () override |
Init shadow mapping. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx) override |
Update shader parameters. More... | |
![]() | |
ShadowMapRenderShaderBaseImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual | ~ShadowMapRenderShaderBaseImplementation () |
Destructor. More... | |
virtual bool | isInitialized () override |
virtual void | initialize () override |
Init shadow mapping. More... | |
virtual void | useProgram (Engine *engine, int contextIdx) override |
Use shadow map render shader program. More... | |
virtual void | unUseProgram (int contextIdx) override |
Un use shadow map render shader program. More... | |
virtual void | updateMatrices (int contextIdx) override |
Update matrices. More... | |
virtual void | updateTextureMatrix (Renderer *renderer, int contextIdx) override |
Update texture matrix. More... | |
virtual void | updateMaterial (Renderer *renderer, int contextIdx) override |
Update material. More... | |
virtual void | updateLight (Renderer *renderer, int contextIdx, int32_t lightId) override |
Update light. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx) override=0 |
Update shader parameters. More... | |
virtual void | bindTexture (Renderer *renderer, int contextIdx, int32_t textureId) override |
Bind texture. More... | |
virtual void | setDepthBiasMVPMatrix (int contextIdx, const Matrix4x4 &depthBiasMVPMatrix) override |
Set up program depth bias mvp matrix. More... | |
virtual void | setRenderLightId (int32_t lightId) override |
Set light id. More... | |
![]() | |
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... | |
Static Public Member Functions | |
static bool | isSupported (Renderer *renderer) |
Shadow mapping default shader to render shadow map.
Definition at line 21 of file ShadowMapRenderShaderDefaultImplementation.h.
ShadowMapRenderShaderDefaultImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 21 of file ShadowMapRenderShaderDefaultImplementation.cpp.
|
virtual |
Destructor.
Definition at line 25 of file ShadowMapRenderShaderDefaultImplementation.cpp.
|
overridevirtual |
Implements ShadowMapRenderShaderImplementation.
Definition at line 29 of file ShadowMapRenderShaderDefaultImplementation.cpp.
|
overridevirtual |
Init shadow mapping.
Reimplemented from ShadowMapRenderShaderBaseImplementation.
Definition at line 33 of file ShadowMapRenderShaderDefaultImplementation.cpp.
|
static |
renderer | renderer |
Definition at line 17 of file ShadowMapRenderShaderDefaultImplementation.cpp.
|
overridevirtual |
Update shader parameters.
renderer | renderer |
contextIdx | context index |
Implements ShadowMapRenderShaderBaseImplementation.
Definition at line 60 of file ShadowMapRenderShaderDefaultImplementation.cpp.