Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
SmithGSMF< REAL > Class Template Reference

Static Public Member Functions

static REAL G1 (const PbrMicrofacetDistribution< REAL > *ndf, const GMathVec3< REAL > &w_local, const GMathVec3< REAL > &h_local, bool is_wo)
 smithG1 Term used in Smith' shadowing term approximation
 
template<bool SHADOWING_MASKING_CORRELATION, bool CHECK_DOMAIN = true>
static REAL G2 (const PbrMicrofacetDistribution< REAL > *ndf, const GMathVec3< REAL > &wi_local, const GMathVec3< REAL > &wo_local, const GMathVec3< REAL > &h_local)
 G The geometric shadow-masking function.
 

Member Function Documentation

template<typename REAL = double>
static REAL SmithGSMF< REAL >::G1 ( const PbrMicrofacetDistribution< REAL > *  ndf,
const GMathVec3< REAL > &  w_local,
const GMathVec3< REAL > &  h_local,
bool  is_wo 
)
inlinestatic

smithG1 Term used in Smith' shadowing term approximation

Parameters
w_localthe ray direction in local space (incoming or outgoing)
h_localthe half angle vector in local space
is_wotrue when w_local is the incomming direction at the surface point. False when it is the outgoing direction
Returns
the Smith' shadowing approximation term
template<typename REAL = double>
template<bool SHADOWING_MASKING_CORRELATION, bool CHECK_DOMAIN = true>
static REAL SmithGSMF< REAL >::G2 ( const PbrMicrofacetDistribution< REAL > *  ndf,
const GMathVec3< REAL > &  wi_local,
const GMathVec3< REAL > &  wo_local,
const GMathVec3< REAL > &  h_local 
)
inlinestatic

G The geometric shadow-masking function.

Parameters
wi_localthe incoming direction at the surface point, in local space
wo_localthe outgoing (scattered) direction, in local space
h_localthe half angle vector in local space
Returns
the geometric shadow-masking term SHADOWING_MASKING_CORRELATION - True : Partial correlation - False : shadowing and masking are uncorrelated.