TDME2 1.9.121
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ShadowMapRenderShaderTreeImplementation Class Reference

Shadow mapping tree shader to render shadow map. More...

#include <tdme/engine/subsystems/shadowmapping/ShadowMapRenderShaderTreeImplementation.h>

Inheritance diagram for ShadowMapRenderShaderTreeImplementation:
Inheritance graph
Collaboration diagram for ShadowMapRenderShaderTreeImplementation:
Collaboration graph

Public Member Functions

 ShadowMapRenderShaderTreeImplementation (Renderer *renderer)
 Public constructor. More...
 
virtual ~ShadowMapRenderShaderTreeImplementation ()
 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...
 
- Public Member Functions inherited from ShadowMapRenderShaderBaseImplementation
 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...
 
- Public Member Functions inherited from ShadowMapRenderShaderImplementation
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)
 

Private Attributes

int32_t uniformSpeed { -1 }
 

Additional Inherited Members

- Protected Attributes inherited from ShadowMapRenderShaderBaseImplementation
Rendererrenderer { nullptr }
 
int32_t vertexShaderId { -1 }
 
int32_t renderGeometryShaderId { -1 }
 
int32_t fragmentShaderId { -1 }
 
int32_t programId { -1 }
 
int32_t renderUniformShadowMapLookUps { -1 }
 
int32_t uniformTextureUnit { -1 }
 
int32_t renderUniformTexturePixelWidth { -1 }
 
int32_t renderUniformTexturePixelHeight { -1 }
 
int32_t renderUniformDepthBiasMVPMatrix { -1 }
 
int32_t renderUniformProjectionMatrix { -1 }
 
int32_t renderUniformCameraMatrix { -1 }
 
int32_t renderUniformMVMatrix { -1 }
 
int32_t renderUniformMVPMatrix { -1 }
 
int32_t renderUniformNormalMatrix { -1 }
 
int32_t renderUniformModelTranslation { -1 }
 
int32_t uniformTextureMatrix { -1 }
 
int32_t uniformTextureAtlasSize { -1 }
 
int32_t uniformTextureAtlasPixelDimension { -1 }
 
int32_t uniformDiffuseTextureUnit { -1 }
 
int32_t uniformDiffuseTextureAvailable { -1 }
 
int32_t uniformDiffuseTextureMaskedTransparency { -1 }
 
int32_t uniformDiffuseTextureMaskedTransparencyThreshold { -1 }
 
int32_t renderUniformLightPosition { -1 }
 
int32_t renderUniformLightDirection { -1 }
 
int32_t renderUniformLightSpotExponent { -1 }
 
int32_t renderUniformLightSpotCosCutoff { -1 }
 
int32_t renderUniformLightConstantAttenuation { -1 }
 
int32_t renderUniformLightLinearAttenuation { -1 }
 
int32_t renderUniformLightQuadraticAttenuation { -1 }
 
int32_t renderUniformTime { -1 }
 
bool initialized
 
int lightId { -1 }
 

Detailed Description

Shadow mapping tree shader to render shadow map.

Author
Andreas Drewke
Version
$Id$

Definition at line 21 of file ShadowMapRenderShaderTreeImplementation.h.

Constructor & Destructor Documentation

◆ ShadowMapRenderShaderTreeImplementation()

Public constructor.

Parameters
rendererrenderer

Definition at line 25 of file ShadowMapRenderShaderTreeImplementation.cpp.

◆ ~ShadowMapRenderShaderTreeImplementation()

Destructor.

Definition at line 29 of file ShadowMapRenderShaderTreeImplementation.cpp.

Member Function Documentation

◆ getId()

const string getId ( )
overridevirtual
Returns
shader id

Implements ShadowMapRenderShaderImplementation.

Definition at line 33 of file ShadowMapRenderShaderTreeImplementation.cpp.

◆ initialize()

void initialize ( )
overridevirtual

Init shadow mapping.

Reimplemented from ShadowMapRenderShaderBaseImplementation.

Definition at line 37 of file ShadowMapRenderShaderTreeImplementation.cpp.

◆ isSupported()

bool isSupported ( Renderer renderer)
static
Returns
if supported by renderer
Parameters
rendererrenderer

Definition at line 21 of file ShadowMapRenderShaderTreeImplementation.cpp.

◆ updateShaderParameters()

void updateShaderParameters ( Renderer renderer,
int  contextIdx 
)
overridevirtual

Update shader parameters.

Parameters
rendererrenderer
contextIdxcontext index

Implements ShadowMapRenderShaderBaseImplementation.

Definition at line 85 of file ShadowMapRenderShaderTreeImplementation.cpp.

Member Data Documentation

◆ uniformSpeed

int32_t uniformSpeed { -1 }
private

Definition at line 24 of file ShadowMapRenderShaderTreeImplementation.h.


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