Open CASCADE Technology 7.8.2.dev
OpenGl_OitState Class Reference

Defines generic state of order-independent transparency rendering properties. More...

#include <OpenGl_ShaderStates.hxx>

Inheritance diagram for OpenGl_OitState:

Public Member Functions

 OpenGl_OitState ()
 Creates new uniform state.
 
void Set (Graphic3d_RenderTransparentMethod theMode, const float theDepthFactor)
 Sets the uniform values.
 
Graphic3d_RenderTransparentMethod ActiveMode () const
 Returns flag indicating whether writing of output for OIT processing should be enabled/disabled.
 
float DepthFactor () const
 Returns factor defining influence of depth component of a fragment to its final coverage coefficient.
 
- Public Member Functions inherited from OpenGl_StateInterface
 OpenGl_StateInterface ()
 Creates new state.
 
Standard_Size Index () const
 Returns current state index.
 
void Update ()
 Increment current state.
 

Additional Inherited Members

- Protected Attributes inherited from OpenGl_StateInterface
Standard_Size myIndex
 current state index
 

Detailed Description

Defines generic state of order-independent transparency rendering properties.

Constructor & Destructor Documentation

◆ OpenGl_OitState()

OpenGl_OitState::OpenGl_OitState ( )
inline

Creates new uniform state.

Member Function Documentation

◆ ActiveMode()

Graphic3d_RenderTransparentMethod OpenGl_OitState::ActiveMode ( ) const
inline

Returns flag indicating whether writing of output for OIT processing should be enabled/disabled.

◆ DepthFactor()

float OpenGl_OitState::DepthFactor ( ) const
inline

Returns factor defining influence of depth component of a fragment to its final coverage coefficient.

◆ Set()

void OpenGl_OitState::Set ( Graphic3d_RenderTransparentMethod theMode,
const float theDepthFactor )
inline

Sets the uniform values.

Parameters
theToEnableWrite[in] flag indicating whether color and coverage values for OIT processing should be written by shader program.
theDepthFactor[in] scalar factor [0-1] defining influence of depth component of a fragment to its final coverage coefficient.

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