Skip to content

LightingRenderModule

class LightingRenderModule : public cauldron::RenderModule

The lighting render module is responsible rendering deferred lighting from the gbuffer information.

Inherits from: public cauldron::RenderModule

Public Interface

Constructor:

LightingRenderModule

inline LightingRenderModule()

Construction.

Attributes: inline

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 55, column 5)

Destructor:

~LightingRenderModule

virtual ~LightingRenderModule()

Destruction.

Attributes: virtual

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 60, column 13)

Public Functions:

Init

virtual void Init(const json &initData) override

Initialization function. Sets up resource pointers, pipeline objects, root signatures, and parameter sets.

Parameters:

NameTypeDefault
initDataconst json &

Attributes: virtual

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 65, column 10)

Execute

virtual void Execute(double deltaTime, cauldron::CommandList *pCmdList) override

Performs deferred lighting pass if enabled.

Parameters:

NameTypeDefault
deltaTimedouble
pCmdListcauldron::CommandList *

Attributes: virtual

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 70, column 10)

Private Interface

Private Members:

cauldron::RootSignature * m_pRootSignature

cauldron::RootSignature * m_pRootSignature = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 74, column 32)

cauldron::PipelineObject * m_pPipelineObj

cauldron::PipelineObject * m_pPipelineObj = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 75, column 32)

const cauldron::Texture * m_pRenderTarget

const cauldron::Texture * m_pRenderTarget = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 76, column 32)

const cauldron::Texture * m_pDiffuseTexture

const cauldron::Texture * m_pDiffuseTexture = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 77, column 32)

const cauldron::Texture * m_pNormalTexture

const cauldron::Texture * m_pNormalTexture = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 78, column 32)

const cauldron::Texture * m_pAoRoughnessMetallicTexture

const cauldron::Texture * m_pAoRoughnessMetallicTexture = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 79, column 32)

const cauldron::Texture * m_pDepthTexture

const cauldron::Texture * m_pDepthTexture = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 80, column 32)

cauldron::ParameterSet * m_pParameters

cauldron::ParameterSet * m_pParameters = = nullptr

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 81, column 32)

uint32_t m_ShadowMapCount

uint32_t m_ShadowMapCount = = 0

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 83, column 25)

LightingCBData m_LightingConstantData

LightingCBData m_LightingConstantData

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 86, column 20)

float m_IBLFactor

float m_IBLFactor

Attributes: private

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 88, column 11)

Used By: CacaoSample

Source: framework/rendermodules/lighting/lightingrendermodule.h (line 48, column 1)