Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ndf_sampler< BSDFMODEL, samplesTheta, samplesPhi, NAME >::backscatter Struct Reference

Helper Class: Backscatter NDF passthrough. More...

Public Member Functions

 BBM_BASETYPES (void)
 
 BBM_IMPORT_CONFIG (BSDFMODEL)
 
 backscatter (void)
 
 backscatter (const BSDFMODEL *src, bsdf_flag c, unit_t u)
 
Value eval (const Vec3d &halfway, Mask mask=true) const
 
Vec3d sample (const Vec3d &view, const Vec2d &xi, Mask mask=true) const
 
Value pdf (const Vec3d &view, const Vec3d &m, Mask mask=true) const
 
Value G1 (const Vec3d &v, const Vec3d &m, Mask mask=true) const
 
 BBM_ATTRIBUTES (reflection::attributes(*model))
 

Public Attributes

bsdf_flag component
 
unit_t unit
 
const BSDFMODEL * model
 

Static Public Attributes

static constexpr string_literal name = "backscatter_" + NAME
 

Detailed Description

template<typename BSDFMODEL, size_t samplesTheta = 90, size_t samplesPhi = 1, string_literal NAME = BSDFMODEL::name>
struct bbm::ndf_sampler< BSDFMODEL, samplesTheta, samplesPhi, NAME >::backscatter

Helper Class: Backscatter NDF passthrough.

Wraps the BSDF model's eval function in an NDF eval; other NDF methods are unevaluable. This is used to construct an ndf::sampler

Constructor & Destructor Documentation

◆ backscatter() [1/2]

backscatter ( void  )
inline

◆ backscatter() [2/2]

backscatter ( const BSDFMODEL *  src,
bsdf_flag  c,
unit_t  u 
)
inline

Member Function Documentation

◆ BBM_ATTRIBUTES()

BBM_ATTRIBUTES ( reflection::attributes model)

◆ BBM_BASETYPES()

BBM_BASETYPES ( void  )

◆ BBM_IMPORT_CONFIG()

BBM_IMPORT_CONFIG ( BSDFMODEL  )

◆ eval()

Value eval ( const Vec3d &  halfway,
Mask  mask = true 
) const
inline

◆ G1()

Value G1 ( const Vec3d &  v,
const Vec3d &  m,
Mask  mask = true 
) const

◆ pdf()

Value pdf ( const Vec3d &  view,
const Vec3d &  m,
Mask  mask = true 
) const

◆ sample()

Vec3d sample ( const Vec3d &  view,
const Vec2d &  xi,
Mask  mask = true 
) const

Member Data Documentation

◆ component

bsdf_flag component

◆ model

const BSDFMODEL* model

◆ name

constexpr string_literal name = "backscatter_" + NAME
staticconstexpr

◆ unit

unit_t unit

The documentation for this struct was generated from the following file: