class TranslucencyRenderModule

The Translucency render module is responsible for rendering all translucent geometry and particles in a sorted (back to front) manner.

File location: framework/rendermodules/translucency/translucencyrendermodule.h

Construction

Return type

Description

Construction.

Methods

Return type

Description

void

Init (const json& initData)
Initialization function. Sets up target pointers and other global data.

void

Execute (double deltaTime, cauldron::CommandList * pCmdList)
Renders all active translucent geometry and particles in the “Scene“.

void

Callback invoked when new content is loaded so we can create additional pipelines if needed.

void

Callback invoked when content is unloaded. Permits us to clean things up if needed.

void

Sets optional transparency options to append to created pipelines.

Detailed description

The Translucency render module is responsible for rendering all translucent geometry and particles in a sorted (back to front) manner.

Construction

TranslucencyRenderModule

Copied!

TranslucencyRenderModule ()

Construction.


Methods

Init

Copied!

virtual void Init (const json& initData)

Initialization function. Sets up target pointers and other global data.


Execute

Copied!

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

Renders all active translucent geometry and particles in the Scene.


OnNewContentLoaded

Copied!

virtual void OnNewContentLoaded (cauldron::ContentBlock * pContentBlock)

Callback invoked when new content is loaded so we can create additional pipelines if needed.


OnContentUnloaded

Copied!

virtual void OnContentUnloaded (cauldron::ContentBlock * pContentBlock)

Callback invoked when content is unloaded. Permits us to clean things up if needed.


AddOptionalTransparencyOptions

Copied!

void AddOptionalTransparencyOptions (const OptionalTransparencyOptions & options)

Sets optional transparency options to append to created pipelines.