Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
PbrAbsorptionLayer Struct Reference

The PbrAbsorptionLayer struct This struct defines an absorption layer computed by a Beer-Lambert law factor depending on thickness, a rate and a path length. More...

Public Member Functions

void clear ()
 clear Clear the absorption layer
 
void init (const GMathVec3f &tint, const float &absorption, const float &rate)
 init init the object
 
GMathVec3f get_absorption () const
 get_absorption Compute an absorption only depending on the thickness and rate.
 
GMathVec3f get_directional_absorption (const float &li, const float &lo) const
 get_directional_absorption Compute a directional absorption using a Beer-Lambert law
 

Public Attributes

GMathVec3f m_tint
 
float m_thickness
 
float m_rate
 
bool m_empty
 
unsigned int m_end_id_bxdf
 

Detailed Description

The PbrAbsorptionLayer struct This struct defines an absorption layer computed by a Beer-Lambert law factor depending on thickness, a rate and a path length.

Member Function Documentation

GMathVec3f PbrAbsorptionLayer::get_absorption ( ) const
inline

get_absorption Compute an absorption only depending on the thickness and rate.

Returns
the absorption value
GMathVec3f PbrAbsorptionLayer::get_directional_absorption ( const float &  li,
const float &  lo 
) const
inline

get_directional_absorption Compute a directional absorption using a Beer-Lambert law

Parameters
liis the dot product between the nomal and the incident ray
lois the dot product between the normal and the outgoing ray
Returns
the directional absorption value
void PbrAbsorptionLayer::init ( const GMathVec3f &  tint,
const float &  absorption,
const float &  rate 
)
inline

init init the object

Parameters
tintThe color of the absorption
absorptionThe thickness of the absorption
rateThe rate of the absorption