TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
DeferredLightingRenderShader Class Referencefinal

Deferred lighint render shader. More...

#include <tdme/engine/subsystems/framebuffer/DeferredLightingRenderShader.h>

Collaboration diagram for DeferredLightingRenderShader:
Collaboration graph

Public Member Functions

 DeferredLightingRenderShader (Renderer *renderer)
 Public constructor. More...
 
 ~DeferredLightingRenderShader ()
 Public destructor. More...
 
bool isInitialized ()
 
void initialize ()
 Initialize. More...
 
void useProgram (Engine *engine)
 Use render program. More...
 
void unUseProgram ()
 Un use render program. More...
 

Private Attributes

Rendererrenderer { nullptr }
 
int32_t vertexShaderId { -1 }
 
int32_t fragmentShaderId { -1 }
 
int32_t programId { -1 }
 
int32_t uniformGeometryBufferTextureId1 { -1 }
 
int32_t uniformGeometryBufferTextureId2 { -1 }
 
int32_t uniformGeometryBufferTextureId3 { -1 }
 
int32_t uniformColorBufferTextureUnit1 { -1 }
 
int32_t uniformColorBufferTextureUnit2 { -1 }
 
int32_t uniformColorBufferTextureUnit3 { -1 }
 
int32_t uniformColorBufferTextureUnit4 { -1 }
 
int32_t uniformColorBufferTextureUnit5 { -1 }
 
int32_t uniformDepthBufferTextureUnit { -1 }
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightEnabled
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightAmbient
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightDiffuse
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightSpecular
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightPosition
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightSpotDirection
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightSpotExponent
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightSpotCosCutoff
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightConstantAttenuation
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightLinearAttenuation
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightQuadraticAttenuation
 
array< int32_t, Engine::LIGHTS_MAXuniformSpecularLightRadius
 
int32_t uniformCameraMatrix { -1 }
 
int32_t uniformCamera { -1 }
 
int32_t uniformDiffuseEnvSampler { -1 }
 
int32_t uniformSpecularEnvSampler { -1 }
 
int32_t uniformbrdfLUT { -1 }
 
int32_t textureDiffuseEnvSampler { -1 }
 
int32_t textureSpecularEnvSampler { -1 }
 
int32_t texturebrdfLUT { -1 }
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightEnabled
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightAmbient
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightDirection
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightRange
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightColor
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightIntensity
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightPosition
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightInnerConeCos
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightOuterConeCos
 
array< int32_t, Engine::LIGHTS_MAXuniformPBRLightType
 
bool initialized
 
bool isRunning
 

Detailed Description

Deferred lighint render shader.

Author
Andreas Drewke
Version
$Id$

Definition at line 23 of file DeferredLightingRenderShader.h.

Constructor & Destructor Documentation

◆ DeferredLightingRenderShader()

Public constructor.

Parameters
rendererrenderer

Definition at line 33 of file DeferredLightingRenderShader.cpp.

◆ ~DeferredLightingRenderShader()

Public destructor.

Definition at line 40 of file DeferredLightingRenderShader.cpp.

Member Function Documentation

◆ initialize()

void initialize ( )

Initialize.

Definition at line 49 of file DeferredLightingRenderShader.cpp.

◆ isInitialized()

bool isInitialized ( )
Returns
if initialized and ready to use

Definition at line 44 of file DeferredLightingRenderShader.cpp.

◆ unUseProgram()

void unUseProgram ( )

Un use render program.

Definition at line 289 of file DeferredLightingRenderShader.cpp.

◆ useProgram()

void useProgram ( Engine engine)

Use render program.

Parameters
engineengine

Definition at line 220 of file DeferredLightingRenderShader.cpp.

Member Data Documentation

◆ fragmentShaderId

int32_t fragmentShaderId { -1 }
private

Definition at line 29 of file DeferredLightingRenderShader.h.

◆ initialized

bool initialized
private

Definition at line 77 of file DeferredLightingRenderShader.h.

◆ isRunning

bool isRunning
private

Definition at line 78 of file DeferredLightingRenderShader.h.

◆ programId

int32_t programId { -1 }
private

Definition at line 30 of file DeferredLightingRenderShader.h.

◆ renderer

Renderer* renderer { nullptr }
private

Definition at line 27 of file DeferredLightingRenderShader.h.

◆ texturebrdfLUT

int32_t texturebrdfLUT { -1 }
private

Definition at line 63 of file DeferredLightingRenderShader.h.

◆ textureDiffuseEnvSampler

int32_t textureDiffuseEnvSampler { -1 }
private

Definition at line 61 of file DeferredLightingRenderShader.h.

◆ textureSpecularEnvSampler

int32_t textureSpecularEnvSampler { -1 }
private

Definition at line 62 of file DeferredLightingRenderShader.h.

◆ uniformbrdfLUT

int32_t uniformbrdfLUT { -1 }
private

Definition at line 60 of file DeferredLightingRenderShader.h.

◆ uniformCamera

int32_t uniformCamera { -1 }
private

Definition at line 57 of file DeferredLightingRenderShader.h.

◆ uniformCameraMatrix

int32_t uniformCameraMatrix { -1 }
private

Definition at line 54 of file DeferredLightingRenderShader.h.

◆ uniformColorBufferTextureUnit1

int32_t uniformColorBufferTextureUnit1 { -1 }
private

Definition at line 34 of file DeferredLightingRenderShader.h.

◆ uniformColorBufferTextureUnit2

int32_t uniformColorBufferTextureUnit2 { -1 }
private

Definition at line 35 of file DeferredLightingRenderShader.h.

◆ uniformColorBufferTextureUnit3

int32_t uniformColorBufferTextureUnit3 { -1 }
private

Definition at line 36 of file DeferredLightingRenderShader.h.

◆ uniformColorBufferTextureUnit4

int32_t uniformColorBufferTextureUnit4 { -1 }
private

Definition at line 37 of file DeferredLightingRenderShader.h.

◆ uniformColorBufferTextureUnit5

int32_t uniformColorBufferTextureUnit5 { -1 }
private

Definition at line 38 of file DeferredLightingRenderShader.h.

◆ uniformDepthBufferTextureUnit

int32_t uniformDepthBufferTextureUnit { -1 }
private

Definition at line 39 of file DeferredLightingRenderShader.h.

◆ uniformDiffuseEnvSampler

int32_t uniformDiffuseEnvSampler { -1 }
private

Definition at line 58 of file DeferredLightingRenderShader.h.

◆ uniformGeometryBufferTextureId1

int32_t uniformGeometryBufferTextureId1 { -1 }
private

Definition at line 31 of file DeferredLightingRenderShader.h.

◆ uniformGeometryBufferTextureId2

int32_t uniformGeometryBufferTextureId2 { -1 }
private

Definition at line 32 of file DeferredLightingRenderShader.h.

◆ uniformGeometryBufferTextureId3

int32_t uniformGeometryBufferTextureId3 { -1 }
private

Definition at line 33 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightAmbient

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightAmbient
private

Definition at line 66 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightColor

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightColor
private

Definition at line 69 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightDirection

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightDirection
private

Definition at line 67 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightEnabled

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightEnabled
private

Definition at line 65 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightInnerConeCos

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightInnerConeCos
private

Definition at line 72 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightIntensity

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightIntensity
private

Definition at line 70 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightOuterConeCos

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightOuterConeCos
private

Definition at line 73 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightPosition

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightPosition
private

Definition at line 71 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightRange

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightRange
private

Definition at line 68 of file DeferredLightingRenderShader.h.

◆ uniformPBRLightType

array<int32_t, Engine::LIGHTS_MAX> uniformPBRLightType
private

Definition at line 74 of file DeferredLightingRenderShader.h.

◆ uniformSpecularEnvSampler

int32_t uniformSpecularEnvSampler { -1 }
private

Definition at line 59 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightAmbient

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightAmbient
private

Definition at line 43 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightConstantAttenuation

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightConstantAttenuation
private

Definition at line 50 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightDiffuse

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightDiffuse
private

Definition at line 44 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightEnabled

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightEnabled
private

Definition at line 42 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightLinearAttenuation

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightLinearAttenuation
private

Definition at line 51 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightPosition

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightPosition
private

Definition at line 46 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightQuadraticAttenuation

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightQuadraticAttenuation
private

Definition at line 52 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightRadius

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightRadius
private

Definition at line 53 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightSpecular

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightSpecular
private

Definition at line 45 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightSpotCosCutoff

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightSpotCosCutoff
private

Definition at line 49 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightSpotDirection

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightSpotDirection
private

Definition at line 47 of file DeferredLightingRenderShader.h.

◆ uniformSpecularLightSpotExponent

array<int32_t, Engine::LIGHTS_MAX> uniformSpecularLightSpotExponent
private

Definition at line 48 of file DeferredLightingRenderShader.h.

◆ vertexShaderId

int32_t vertexShaderId { -1 }
private

Definition at line 28 of file DeferredLightingRenderShader.h.


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