TDME2 1.9.121
|
Lighting shader implementation. More...
#include <tdme/engine/subsystems/lighting/LightingShaderPBRDefaultImplementation.h>
Public Member Functions | |
LightingShaderPBRDefaultImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual const string | getId () override |
virtual void | initialize () override |
Initialize renderer. More... | |
virtual void | registerShader () override |
Register shader. More... | |
virtual void | updateShaderParameters (Renderer *renderer, int contextIdx) override |
Update shader parameters. More... | |
![]() | |
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... | |
Static Public Member Functions | |
static bool | isSupported (Renderer *renderer) |
Lighting shader implementation.
Definition at line 18 of file LightingShaderPBRDefaultImplementation.h.
LightingShaderPBRDefaultImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 26 of file LightingShaderPBRDefaultImplementation.cpp.
|
overridevirtual |
Implements LightingShaderImplementation.
Definition at line 30 of file LightingShaderPBRDefaultImplementation.cpp.
|
overridevirtual |
Initialize renderer.
Reimplemented from LightingShaderPBRBaseImplementation.
Definition at line 34 of file LightingShaderPBRDefaultImplementation.cpp.
|
static |
renderer | renderer |
Definition at line 22 of file LightingShaderPBRDefaultImplementation.cpp.
|
overridevirtual |
Register shader.
Implements LightingShaderImplementation.
Definition at line 88 of file LightingShaderPBRDefaultImplementation.cpp.
|
overridevirtual |
Update shader parameters.
renderer | renderer |
context |
Implements LightingShaderPBRBaseImplementation.
Definition at line 92 of file LightingShaderPBRDefaultImplementation.cpp.