Open CASCADE Technology  7.7.0
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...
 
void SetColor (const OpenGl_Vec3 &theColor)
 Set material color. More...
 

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

◆ Roughness()

float OpenGl_MaterialPBR::Roughness ( ) const
inline

◆ SetColor()

void OpenGl_MaterialPBR::SetColor ( const OpenGl_Vec3 theColor)
inline

Set material color.

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: