OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    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.
    size_t Index () const
     Returns current state index.
    void Update ()
     Increment current state.

    Additional Inherited Members

    Protected Attributes inherited from OpenGl_StateInterface
    size_t 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
    [in]theToEnableWriteflag indicating whether color and coverage values for OIT processing should be written by shader program.
    [in]theDepthFactorscalar 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: