TDME2 1.9.121
|
Lighting shader implementation. More...
#include <tdme/engine/subsystems/lighting/LightingShaderPBRBaseImplementation.h>
Public Member Functions | |
LightingShaderPBRBaseImplementation (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 LightingShaderPBRBaseImplementation.h.
LightingShaderPBRBaseImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 32 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Bind texture.
renderer | renderer |
contextIdx | context index |
textureId | texture id |
Implements LightingShaderImplementation.
Definition at line 228 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Initialize renderer.
Implements LightingShaderImplementation.
Reimplemented in DeferredLightingShaderPBRDefaultImplementation, DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, LightingShaderPBRDefaultImplementation, LightingShaderPBRFoliageImplementation, and LightingShaderPBRTreeImplementation.
Definition at line 43 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Implements LightingShaderImplementation.
Definition at line 38 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Unuse lighting program.
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 145 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Update effect to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 162 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Update light to program.
renderer | renderer |
contextIdx | context index |
lightId | light id |
Implements LightingShaderImplementation.
Definition at line 178 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Update material to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 166 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Update matrices to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 210 of file LightingShaderPBRBaseImplementation.cpp.
|
overridepure virtual |
Update shader parameters.
renderer | renderer |
context |
Implements LightingShaderImplementation.
Implemented in DeferredLightingShaderPBRDefaultImplementation, DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, LightingShaderPBRDefaultImplementation, LightingShaderPBRFoliageImplementation, and LightingShaderPBRTreeImplementation.
Definition at line 225 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Update texture matrix to program.
renderer | renderer |
contextIdx | context index |
Implements LightingShaderImplementation.
Definition at line 222 of file LightingShaderPBRBaseImplementation.cpp.
|
overridevirtual |
Use lighting program.
engine | engine |
contextIdx | context index |
Implements LightingShaderImplementation.
Reimplemented in DeferredLightingShaderPBRFoliageImplementation, DeferredLightingShaderPBRTreeImplementation, LightingShaderPBRFoliageImplementation, and LightingShaderPBRTreeImplementation.
Definition at line 126 of file LightingShaderPBRBaseImplementation.cpp.
|
protected |
Definition at line 32 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 67 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 31 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 68 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 54 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 52 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 53 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 38 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 37 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 34 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 35 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 36 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 51 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 39 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 49 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 40 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 57 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 60 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 58 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 56 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 63 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 61 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 64 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 62 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 59 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 65 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 41 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 42 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 43 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 44 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 45 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 46 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 47 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 50 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 48 of file LightingShaderPBRBaseImplementation.h.
|
protected |
Definition at line 33 of file LightingShaderPBRBaseImplementation.h.