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

The PbrMaterialConfig class Describe a material composed by a PbrMaterial data (which contains the bxdfs, fresnel, absorption, ...) a weight and a transmission attribute. More...

Public Member Functions

 PbrMaterialConfig (PbrMaterial &data, const float &weight=1.0f, const GMathVec3f &transmission=GMathVec3f(1.0f))
 
void add_absorption_layer (PbrAbsorptionLayer layer)
 add_absorption_layer Add an absorption layer to the material each absorption layer will stack with the previous one
 
PbrMaterialConfig weighted (const float &weight=1.0f, const GMathVec3f &transmission=GMathVec3f(1.0f))
 weighted Create a PbrMaterial where the new weight and transmission will be equal to the product of the attribute weight (respectively transmission) and the weight (respectively transmission) of this material.
 
void set_opacity (const GMathVec3f &opacity)
 add_opacity
 
const unsigned int & get_bxdf_count () const
 get_bxdf_count
 
const PbrBxdfget_bxdf (const unsigned int &bxdf_index) const
 get_bxdf
 
PbrBxdfget_bxdf (const unsigned int &bxdf_index)
 get_bxdf
 
unsigned int add_bxdf (PbrBxdf *bxdf)
 add_bxdf add a bxdf to this material
 
void add_emission (const GMathVec3f &emission)
 add_emission add an emission to this material
 
void set_attenuation (const GMathVec3f &attenuation)
 set_attenuation set the attenuation to this material
 
void set_scattering (const GMathVec3f &scattering)
 set_scattering set the scattering to this material
 
void set_scattering_anisotropy (const float &scattering_anisotropy)
 set_scattering_anisotropy set the scattering anisotropy to this material
 
void enable_unoccluded_computation ()
 enable_unoccluded_computation enable the computation of the unoccluded contribution
 
void disable_self_shadow ()
 disable_self_shadow disable the self shadow
 
void set_is_blackhole ()
 set_is_blackhole set the material as blackhole
 
void disable_lpe ()
 disable_lpe disable the computation of lpe
 
void add_lpe_constant (const UniqueString &label, const GMathVec3f &value)
 Add an PbrLpeConstant to the lpe constants material array.
 
void add_lpe_constant (const unsigned int &bxdf_id, const UniqueString &label, const GMathVec3f &value)
 Add an PbrLpeConstant to the lpe constants material array.
 
PbrMaterialget_pbr_material ()
 return the PbrMaterial
 

Detailed Description

The PbrMaterialConfig class Describe a material composed by a PbrMaterial data (which contains the bxdfs, fresnel, absorption, ...) a weight and a transmission attribute.

Member Function Documentation

void PbrMaterialConfig::add_absorption_layer ( PbrAbsorptionLayer  layer)
inline

add_absorption_layer Add an absorption layer to the material each absorption layer will stack with the previous one

Parameters
layerthe added absorption layer
void PbrMaterialConfig::add_emission ( const GMathVec3f &  emission)
inline

add_emission add an emission to this material

Parameters
emissionthe color of the added emission
const PbrBxdf* PbrMaterialConfig::get_bxdf ( const unsigned int &  bxdf_index) const
inline

get_bxdf

Parameters
bxdf_index
Returns
the const bxdf of this material at the id : bxdf_index
PbrBxdf* PbrMaterialConfig::get_bxdf ( const unsigned int &  bxdf_index)
inline

get_bxdf

Parameters
bxdf_index
Returns
the bxdf of this material at the id : bxdf_index
const unsigned int& PbrMaterialConfig::get_bxdf_count ( ) const
inline

get_bxdf_count

Returns
the count of bxdf of this material
void PbrMaterialConfig::set_opacity ( const GMathVec3f &  opacity)
inline

add_opacity

Parameters
opacity
PbrMaterialConfig PbrMaterialConfig::weighted ( const float &  weight = 1.0f,
const GMathVec3f &  transmission = GMathVec3f(1.0f) 
)
inline

weighted Create a PbrMaterial where the new weight and transmission will be equal to the product of the attribute weight (respectively transmission) and the weight (respectively transmission) of this material.

Parameters
weightthe weight multiplicator
transmissionthe transmission multiplicator
Returns
the new PbrMaterial