The PbrMaterialConfig class Describe a material composed by a PbrMaterial data (which contains the bxdfs, fresnel, absorption, ...) a weight and a transmission attribute.
More...
The PbrMaterialConfig class Describe a material composed by a PbrMaterial data (which contains the bxdfs, fresnel, absorption, ...) a weight and a transmission attribute.
add_absorption_layer Add an absorption layer to the material each absorption layer will stack with the previous one
- Parameters
-
layer | the added absorption layer |
void PbrMaterialConfig::add_emission |
( |
const GMathVec3f & |
emission | ) |
|
|
inline |
add_emission add an emission to this material
- Parameters
-
emission | the color of the added emission |
const PbrBxdf* PbrMaterialConfig::get_bxdf |
( |
const unsigned int & |
bxdf_index | ) |
const |
|
inline |
get_bxdf
- Parameters
-
- 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
-
- 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 |
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
-
weight | the weight multiplicator |
transmission | the transmission multiplicator |
- Returns
- the new PbrMaterial