Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::LightingPass Class Reference

#include <LightingPass.hpp>

Public Member Functions

 LightingPass (crg::FramePassGroup &graph, crg::FramePass const *&previousPass, RenderDevice const &device, ProgressBar *progress, castor::Size const &size, Scene &scene, Texture const &depth, OpaquePassResult const &gpResult, ShadowMapResult const &smDirectionalResult, ShadowMapResult const &smPointResult, ShadowMapResult const &smSpotResult, LightPassResult const &lpResult, SceneUbo const &sceneUbo, GpInfoUbo const &gpInfoUbo)
 Initialises deferred rendering related stuff. More...
 
void update (CpuUpdater &updater)
 Updates the render pass, CPU wise. More...
 
void accept (PipelineVisitorBase &visitor)
 Visitor acceptance function. More...
 
bool isEnabled () const
 

Constructor & Destructor Documentation

◆ LightingPass()

castor3d::LightingPass::LightingPass ( crg::FramePassGroup &  graph,
crg::FramePass const *&  previousPass,
RenderDevice const &  device,
ProgressBar progress,
castor::Size const &  size,
Scene scene,
Texture const &  depth,
OpaquePassResult const &  gpResult,
ShadowMapResult const &  smDirectionalResult,
ShadowMapResult const &  smPointResult,
ShadowMapResult const &  smSpotResult,
LightPassResult const &  lpResult,
SceneUbo const &  sceneUbo,
GpInfoUbo const &  gpInfoUbo 
)

Initialises deferred rendering related stuff.

Parameters
[in]graphThe render graph.
[in]previousPassThe previous frame pass.
[in]deviceThe GPU device.
[in]progressThe progress bar.
[in]sizeThe render area dimensions.
[in]sceneThe scene.
[in]depthThe depth texture.
[in]gpResultThe geometry pass buffers.
[in]smDirectionalResultThe directional lights shadow map.
[in]smPointResultThe point lights shadow map.
[in]smSpotResultThe spot lights shadow map.
[in]lpResultThe lighting pass result.
[in]sceneUboThe scene UBO.
[in]gpInfoUboThe GBuffer configuration UBO.

Member Function Documentation

◆ accept()

void castor3d::LightingPass::accept ( PipelineVisitorBase visitor)

Visitor acceptance function.

Parameters
visitorThe ... visitor.

◆ isEnabled()

bool castor3d::LightingPass::isEnabled ( ) const
inline

References castor3d::RunnableLightingPass::hasEnabledLights().

Here is the call graph for this function:

◆ update()

void castor3d::LightingPass::update ( CpuUpdater updater)

Updates the render pass, CPU wise.

Parameters
[in,out]updaterThe update data.

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