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
PbrFresnelBlend Class Reference
Inheritance diagram for PbrFresnelBlend:
PbrFresnel CoreScratchpadObject

Public Member Functions

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
 
- Public Member Functions inherited from PbrFresnel
 PbrFresnel ()
 Evaluate reflective and transmissive fresnel terms according to incoming, outgoing directions and surface normal.
 
- Public Member Functions inherited from CoreScratchpadObject
virtual ~CoreScratchpadObject ()
 Implement this virtual destructor in your data class, the memory scratchpad will call it on the reset call.
 

Detailed Description

class PbrFresnelBlend Fresnel blend, allowing to apply two weighted fresnels at once.

Member Function Documentation

void PbrFresnelBlend::configure ( const PbrFresnel fresnel_1,
const PbrFresnel fresnel_2,
double  mix 
)
inline

Configure the mix between two fresnels.

Parameters
fresnel_1the first fresnel to mix
fresnel_2the second fresnel to mix
mixthe mix weight of the first fresnel
Note
the weight of the second fresnel will be set to (1.0 - mix)