The PbrBtdfNormalisation class Compensate the missing energy for a BTDF and take into account the Fresnel term.
More...
|
void | configure (const GMathVec3d &reflect_albedo, const GMathVec3d &average_albedo, const GMathVec3d &average_fresnel) |
|
virtual GMathVec3f | evaluate (const GMathVec3f &value, const GMathVec3d &wi, const GMathVec3d &wo, const GMathVec3d &normal, const GMathVec3d &kr, const GMathVec3d &kt) const |
| evaluate Evaluate the normalisation necessary to compensate the energy loss and return the value that take into account the normalization.
|
|
void | set_strength (const double strength) |
|
const double & | get_strength () const |
|
virtual | ~CoreScratchpadObject () |
| Implement this virtual destructor in your data class, the memory scratchpad will call it on the reset call.
|
|
|
GMathVec3d | m_average_fresnel |
|
The PbrBtdfNormalisation class Compensate the missing energy for a BTDF and take into account the Fresnel term.
GMathVec3f PbrBtdfNormalisation::evaluate |
( |
const GMathVec3f & |
value, |
|
|
const GMathVec3d & |
wi, |
|
|
const GMathVec3d & |
wo, |
|
|
const GMathVec3d & |
normal, |
|
|
const GMathVec3d & |
kr, |
|
|
const GMathVec3d & |
kt |
|
) |
| const |
|
virtual |
evaluate Evaluate the normalisation necessary to compensate the energy loss and return the value that take into account the normalization.
- Parameters
-
bxdf | The bxdf that needs to be normalized. |
value | The current value return by the bxdf. |
wi | The incident ray |
normal | the normal where the bxdf is evaluated |
kr | The reflection coeffecient of the fresnel |
kt | The transmission coeffeceint of the fresnel |
- Returns
- the bxdf's value that take into account the normalization.
Implements PbrBxdfNormalisation.