TDME2 1.9.121
|
Shadow mapping default shader class to create shadow map. More...
#include <tdme/engine/subsystems/shadowmapping/ShadowMapCreationShaderDefaultImplementation.h>
Public Member Functions | |
ShadowMapCreationShaderDefaultImplementation (Renderer *renderer) | |
Constructor. More... | |
~ShadowMapCreationShaderDefaultImplementation () | |
Destructor. More... | |
virtual const string | getId () override |
virtual void | initialize () override |
Init shadow map creation program. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx) override |
Update shader parameters. More... | |
![]() | |
ShadowMapCreationShaderBaseImplementation (Renderer *renderer) | |
Constructor. More... | |
~ShadowMapCreationShaderBaseImplementation () | |
Destructor. More... | |
virtual bool | isInitialized () override |
virtual void | initialize () override |
Init shadow map creation program. More... | |
virtual void | useProgram (Engine *engine, int contextIdx) override |
Use shadow map creation program. More... | |
virtual void | unUseProgram (int contextIdx) override |
Unuse shadow map creation program. More... | |
virtual void | updateMatrices (int contextIdx) override |
Set up program matrices. More... | |
virtual void | updateTextureMatrix (Renderer *renderer, int contextIdx) override |
Set up program texture matrix. More... | |
virtual void | updateMaterial (Renderer *renderer, int contextIdx) override |
Update material. 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 | ~ShadowMapCreationShaderImplementation () |
Destructor. More... | |
virtual const string | getId ()=0 |
virtual bool | isInitialized ()=0 |
virtual void | initialize ()=0 |
Init shadow map creation program. More... | |
virtual void | useProgram (Engine *engine, int contextIdx)=0 |
Use shadow map creation program. More... | |
virtual void | unUseProgram (int contextIdx)=0 |
Unuse shadow map creation program. More... | |
virtual void | updateMatrices (int contextIdx)=0 |
Set up program matrices. More... | |
virtual void | updateTextureMatrix (Renderer *renderer, int contextIdx)=0 |
Set up program texture matrix. More... | |
virtual void | updateMaterial (Renderer *renderer, int contextIdx)=0 |
Update material. 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... | |
Static Public Member Functions | |
static bool | isSupported (Renderer *renderer) |
Additional Inherited Members | |
![]() | |
Renderer * | renderer { nullptr } |
int32_t | vertexShaderId { -1 } |
int32_t | geometryShaderId { -1 } |
int32_t | fragmentShaderId { -1 } |
int32_t | programId { -1 } |
int32_t | uniformProjectionMatrix { -1 } |
int32_t | uniformCameraMatrix { -1 } |
int32_t | uniformMVPMatrix { -1 } |
int32_t | uniformTextureAtlasSize { -1 } |
int32_t | uniformTextureAtlasPixelDimension { -1 } |
int32_t | uniformTextureMatrix { -1 } |
int32_t | uniformModelTranslation { -1 } |
int32_t | uniformDiffuseTextureUnit { -1 } |
int32_t | uniformDiffuseTextureAvailable { -1 } |
int32_t | uniformDiffuseTextureMaskedTransparency { -1 } |
int32_t | uniformDiffuseTextureMaskedTransparencyThreshold { -1 } |
int32_t | uniformTime { -1 } |
bool | initialized { false } |
Shadow mapping default shader class to create shadow map.
Definition at line 19 of file ShadowMapCreationShaderDefaultImplementation.h.
ShadowMapCreationShaderDefaultImplementation | ( | Renderer * | renderer | ) |
Constructor.
renderer | renderer |
Definition at line 21 of file ShadowMapCreationShaderDefaultImplementation.cpp.
Destructor.
Definition at line 25 of file ShadowMapCreationShaderDefaultImplementation.cpp.
|
overridevirtual |
Implements ShadowMapCreationShaderImplementation.
Definition at line 28 of file ShadowMapCreationShaderDefaultImplementation.cpp.
|
overridevirtual |
Init shadow map creation program.
Reimplemented from ShadowMapCreationShaderBaseImplementation.
Definition at line 32 of file ShadowMapCreationShaderDefaultImplementation.cpp.
|
static |
renderer | renderer |
Definition at line 17 of file ShadowMapCreationShaderDefaultImplementation.cpp.
|
overridevirtual |
Update shader parameters.
renderer | renderer |
contextIdx | context index |
Implements ShadowMapCreationShaderBaseImplementation.
Definition at line 59 of file ShadowMapCreationShaderDefaultImplementation.cpp.