TDME2 1.9.121
|
Post processing shader implementation. More...
#include <tdme/engine/subsystems/postprocessing/PostProcessingShaderLightScatteringImplementation.h>
Public Member Functions | |
PostProcessingShaderLightScatteringImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual void | initialize () override |
Initialize post processing shader. More... | |
virtual void | setShaderParameters (int contextIdx, Engine *engine) override |
Set shader parameters. More... | |
![]() | |
PostProcessingShaderBaseImplementation (Renderer *renderer) | |
Public constructor. More... | |
virtual bool | isInitialized () override |
virtual void | initialize () override |
Initialize post processing shader. More... | |
virtual void | useProgram (int contextIdx) override |
Use program. More... | |
virtual void | unUseProgram () override |
Unuse program. More... | |
virtual void | setBufferPixelWidth (int contextIdx, float pixelWidth) override |
Set source buffer pixel width. More... | |
virtual void | setBufferPixelHeight (int contextIdx, float pixelHeight) override |
Set source buffer pixel height. More... | |
virtual void | setShaderParameters (int contextIdx, Engine *engine) override=0 |
Set shader parameters. More... | |
![]() | |
virtual | ~PostProcessingShaderImplementation () |
Public destructor. More... | |
virtual bool | isInitialized ()=0 |
virtual void | initialize ()=0 |
Initialize post processing shader. More... | |
virtual void | useProgram (int contextIdx)=0 |
Use program. More... | |
virtual void | unUseProgram ()=0 |
Unuse program. More... | |
virtual void | setBufferPixelWidth (int contextIdx, float pixelWidth)=0 |
Set source buffer pixel width. More... | |
virtual void | setBufferPixelHeight (int contextIdx, float pixelHeight)=0 |
Set source buffer pixel height. More... | |
virtual void | setShaderParameters (int contextIdx, Engine *engine)=0 |
Set shader parameters. More... | |
Static Public Member Functions | |
static bool | isSupported (Renderer *renderer) |
Returns if shader is supported on given renderer. More... | |
Private Attributes | |
array< int32_t, Engine::LIGHTS_MAX > | uniformLightEnabled |
array< int32_t, Engine::LIGHTS_MAX > | uniformLightPosition |
array< int32_t, Engine::LIGHTS_MAX > | uniformLightIntensity |
Additional Inherited Members | |
![]() | |
int32_t | programId { -1 } |
int32_t | vertexShaderId { -1 } |
int32_t | fragmentShaderId { -1 } |
int32_t | uniformColorBufferTextureUnit { -1 } |
int32_t | uniformDepthBufferTextureUnit { -1 } |
int32_t | uniformTemporaryColorBufferTextureUnit { -1 } |
int32_t | uniformTemporaryDepthBufferTextureUnit { -1 } |
int32_t | uniformBufferTexturePixelWidth { -1 } |
int32_t | uniformBufferTexturePixelHeight { -1 } |
bool | isRunning { false } |
bool | initialized { false } |
Renderer * | renderer { nullptr } |
Post processing shader implementation.
Definition at line 17 of file PostProcessingShaderLightScatteringImplementation.h.
PostProcessingShaderLightScatteringImplementation | ( | Renderer * | renderer | ) |
Public constructor.
renderer | renderer |
Definition at line 23 of file PostProcessingShaderLightScatteringImplementation.cpp.
|
overridevirtual |
Initialize post processing shader.
Reimplemented from PostProcessingShaderBaseImplementation.
Definition at line 27 of file PostProcessingShaderLightScatteringImplementation.cpp.
|
static |
Returns if shader is supported on given renderer.
renderer | renderer |
Definition at line 19 of file PostProcessingShaderLightScatteringImplementation.cpp.
|
overridevirtual |
Set shader parameters.
contextIdx | context index |
engine | engine |
Implements PostProcessingShaderBaseImplementation.
Definition at line 74 of file PostProcessingShaderLightScatteringImplementation.cpp.
|
private |
Definition at line 20 of file PostProcessingShaderLightScatteringImplementation.h.
|
private |
Definition at line 22 of file PostProcessingShaderLightScatteringImplementation.h.
|
private |
Definition at line 21 of file PostProcessingShaderLightScatteringImplementation.h.