TDME2 1.9.121
|
Lighting shader implementation. More...
#include <tdme/engine/subsystems/lighting/LightingShaderBaseImplementation.h>
Public Member Functions | |
LightingShaderBaseImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual bool | isInitialized () override |
virtual void | initialize () override |
Initialize renderer. More... | |
virtual void | useProgram (Engine *engine, int contextIdx) override |
Use lighting program. More... | |
virtual void | unUseProgram (int contextIdx) override |
Unuse lighting program. More... | |
virtual void | updateEffect (Renderer *renderer, int contextIdx) override |
Update effect to program. More... | |
virtual void | updateMaterial (Renderer *renderer, int contextIdx) override |
Update material to program. More... | |
virtual void | updateLight (Renderer *renderer, int contextIdx, int32_t lightId) override |
Update light to program. More... | |
virtual void | updateMatrices (Renderer *renderer, int contextIdx) override |
Update matrices to program. More... | |
virtual void | updateTextureMatrix (Renderer *renderer, int contextIdx) override |
Update texture matrix to program. More... | |
virtual void | bindTexture (Renderer *renderer, int contextIdx, int32_t textureId) override |
Bind texture. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx) override=0 |
Update shader parameters. More... | |
![]() | |
virtual | ~LightingShaderImplementation () |
Destructor. More... | |
virtual const string | getId ()=0 |
virtual bool | isInitialized ()=0 |
virtual void | initialize ()=0 |
Initialize renderer. More... | |
virtual void | registerShader ()=0 |
Register shader. More... | |
virtual void | useProgram (Engine *engine, int contextIdx)=0 |
Use lighting program. More... | |
virtual void | unUseProgram (int contextIdx)=0 |
Unuse lighting program. More... | |
virtual void | updateEffect (Renderer *renderer, int contextIdx)=0 |
Update effect to program. More... | |
virtual void | updateMaterial (Renderer *renderer, int contextIdx)=0 |
Update material to program. More... | |
virtual void | updateLight (Renderer *renderer, int contextIdx, int32_t lightId)=0 |
Update light to program. More... | |
virtual void | updateMatrices (Renderer *renderer, int contextIdx)=0 |
Update matrices to program. More... | |
virtual void | updateTextureMatrix (Renderer *renderer, int contextIdx)=0 |
Update texture matrix to program. 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... | |
Lighting shader implementation.
Definition at line 28 of file LightingShaderBaseImplementation.h.
LightingShaderBaseImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 26 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Bind texture.
renderer | renderer |
contextIdx | context index |
textureId | texture id |
Implements LightingShaderImplementation.
Definition at line 280 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Initialize renderer.
Implements LightingShaderImplementation.
Reimplemented in DeferredLightingShaderDefaultImplementation, DeferredLightingShaderFoliageImplementation, DeferredLightingShaderSkyImplementation, DeferredLightingShaderTerrainImplementation, DeferredLightingShaderTreeImplementation, LightingShaderDefaultImplementation, LightingShaderFoliageImplementation, LightingShaderLightScatteringDefaultImplementation, LightingShaderLightScatteringFoliageImplementation, LightingShaderLightScatteringTreeImplementation, LightingShaderSkyImplementation, LightingShaderTerrainEditorImplementation, LightingShaderTerrainImplementation, LightingShaderTreeImplementation, and LightingShaderWaterImplementation.
Definition at line 37 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Implements LightingShaderImplementation.
Definition at line 32 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Unuse lighting program.
contextIdx | context index |
Implements LightingShaderImplementation.
Reimplemented in DeferredLightingShaderTerrainImplementation, and LightingShaderTerrainImplementation.
Definition at line 165 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Update effect to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 176 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Update light to program.
renderer | renderer |
contextIdx | context index |
lightId | light id |
Implements LightingShaderImplementation.
Definition at line 230 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Update material to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 186 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Update matrices to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Reimplemented in DeferredLightingShaderTerrainImplementation, LightingShaderTerrainImplementation, and LightingShaderWaterImplementation.
Definition at line 249 of file LightingShaderBaseImplementation.cpp.
|
overridepure virtual |
Update shader parameters.
renderer | renderer |
context |
Implements LightingShaderImplementation.
Implemented in DeferredLightingShaderDefaultImplementation, DeferredLightingShaderFoliageImplementation, DeferredLightingShaderSkyImplementation, DeferredLightingShaderTerrainImplementation, DeferredLightingShaderTreeImplementation, LightingShaderDefaultImplementation, LightingShaderFoliageImplementation, LightingShaderLightScatteringDefaultImplementation, LightingShaderLightScatteringFoliageImplementation, LightingShaderLightScatteringTreeImplementation, LightingShaderSkyImplementation, LightingShaderTerrainImplementation, LightingShaderTreeImplementation, and LightingShaderWaterImplementation.
Definition at line 277 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Update texture matrix to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 272 of file LightingShaderBaseImplementation.cpp.
|
overridevirtual |
Use lighting program.
engine | engine |
contextIdx | context index |
Implements LightingShaderImplementation.
Reimplemented in DeferredLightingShaderTerrainImplementation, LightingShaderTerrainEditorImplementation, LightingShaderTerrainImplementation, and LightingShaderWaterImplementation.
Definition at line 130 of file LightingShaderBaseImplementation.cpp.
|
protected |
Definition at line 78 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 32 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 79 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 31 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 80 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 62 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 45 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 46 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 37 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 38 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 39 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 36 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 53 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 52 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 65 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 64 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 63 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 67 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 74 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 68 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 66 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 75 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 70 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 76 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 77 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 69 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 73 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 71 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 72 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 54 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 55 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 57 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 59 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 60 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 58 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 56 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 50 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 48 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 47 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 49 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 43 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 42 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 44 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 41 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 40 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 35 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 34 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 51 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 61 of file LightingShaderBaseImplementation.h.
|
protected |
Definition at line 33 of file LightingShaderBaseImplementation.h.