|
void | configure (const PbrFresnel &fresnel_1, const PbrFresnel &fresnel_2, double mix) |
| Configure the mix between two fresnels.
|
|
void | evaluate (const GMathVec3d &wi, const GMathVec3d &wo, const GMathVec3d &n, GMathVec3d &out_kr, GMathVec3d &out_kt) const |
|
void | get_bound (const GMathVec3d &wi, const GMathVec3d &n, GMathVec3d &kr, GMathVec3d &kt) const |
|
void | get_estimation (const GMathVec3d &wi, const GMathVec3d &n, GMathVec3d &kr, GMathVec3d &kt) const |
|
| PbrFresnel () |
| Evaluate reflective and transmissive fresnel terms according to incoming, outgoing directions and surface normal.
|
|
virtual | ~CoreScratchpadObject () |
| Implement this virtual destructor in your data class, the memory scratchpad will call it on the reset call.
|
|
class PbrFresnelBlend Fresnel blend, allowing to apply two weighted fresnels at once.
void PbrFresnelBlend::configure |
( |
const PbrFresnel & |
fresnel_1, |
|
|
const PbrFresnel & |
fresnel_2, |
|
|
double |
mix |
|
) |
| |
|
inline |
Configure the mix between two fresnels.
- Parameters
-
fresnel_1 | the first fresnel to mix |
fresnel_2 | the second fresnel to mix |
mix | the mix weight of the first fresnel |
- Note
- the weight of the second fresnel will be set to (1.0 - mix)