Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Latest commit

 

History

History
36 lines (21 loc) · 1.14 KB

RenderPassStateToken.rst

File metadata and controls

36 lines (21 loc) · 1.14 KB

RenderPassStateToken

Abstract base class for RenderFormatToken, used to manipulate what goes on in the render manager.

Inherit:

SimObject

Description

You cannot actually instantiate RenderPassToken, only its child: RenderFormatToken. RenderFormatToken is an implementation which changes the format of the back buffer and/or the depth buffer.

The RenderPassStateBin manager changes the rendering state associated with a token it is declared with. In stock Torque 3D, a single example exists in the way of AL_FormatToken (found in renderManager.cs). In that script file, all the render managers are intialized, and a single RenderFormatToken is used. This implementation basically exists to ensure Advanced Lighting works with MSAA.

Methods

Fields