Open CASCADE Technology  7.6.0
Public Member Functions

OpenGl_OitState Class Reference

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

#include <OpenGl_ShaderStates.hxx>

Inheritance diagram for OpenGl_OitState:
Inheritance graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from OpenGl_StateInterface
Standard_Size myIndex
 current state index More...
 

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: