Open CASCADE Technology  7.5.0
Public Member Functions | Static Public Member Functions | Data Fields
OpenGl_MaterialPBR Struct Reference

OpenGL material definition. More...

#include <OpenGl_Material.hxx>

Public Member Functions

float Metallic () const
 
float & ChangeMetallic ()
 
float Roughness () const
 
float & ChangeRoughness ()
 
 OpenGl_MaterialPBR ()
 Empty constructor. More...
 
const OpenGl_Vec4Packed () const
 Returns packed (serialized) representation of material properties. More...
 

Static Public Member Functions

static Standard_Integer NbOfVec4 ()
 

Data Fields

OpenGl_Vec4 BaseColor
 base color of PBR material with alpha component More...
 
OpenGl_Vec4 EmissionIOR
 light intensity which is emitted by PBR material and index of refraction More...
 
OpenGl_Vec4 Params
 extra packed parameters More...
 

Detailed Description

OpenGL material definition.

Constructor & Destructor Documentation

◆ OpenGl_MaterialPBR()

OpenGl_MaterialPBR::OpenGl_MaterialPBR ( )
inline

Empty constructor.

Member Function Documentation

◆ ChangeMetallic()

float& OpenGl_MaterialPBR::ChangeMetallic ( )
inline

◆ ChangeRoughness()

float& OpenGl_MaterialPBR::ChangeRoughness ( )
inline

◆ Metallic()

float OpenGl_MaterialPBR::Metallic ( ) const
inline

◆ NbOfVec4()

static Standard_Integer OpenGl_MaterialPBR::NbOfVec4 ( )
inlinestatic

◆ Packed()

const OpenGl_Vec4* OpenGl_MaterialPBR::Packed ( ) const
inline

Returns packed (serialized) representation of material properties.

◆ Roughness()

float OpenGl_MaterialPBR::Roughness ( ) const
inline

Field Documentation

◆ BaseColor

OpenGl_Vec4 OpenGl_MaterialPBR::BaseColor

base color of PBR material with alpha component

◆ EmissionIOR

OpenGl_Vec4 OpenGl_MaterialPBR::EmissionIOR

light intensity which is emitted by PBR material and index of refraction

◆ Params

OpenGl_Vec4 OpenGl_MaterialPBR::Params

extra packed parameters


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