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 |
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
|
inline |
|
inline |
| BBM_ATTRIBUTES | ( | reflection::attributes * | model | ) |
| BBM_BASETYPES | ( | void | ) |
| BBM_IMPORT_CONFIG | ( | BSDFMODEL | ) |
|
inline |
| Value G1 | ( | const Vec3d & | v, |
| const Vec3d & | m, | ||
| Mask | mask = true |
||
| ) | const |
| Value pdf | ( | const Vec3d & | view, |
| const Vec3d & | m, | ||
| Mask | mask = true |
||
| ) | const |
| Vec3d sample | ( | const Vec3d & | view, |
| const Vec2d & | xi, | ||
| Mask | mask = true |
||
| ) | const |
| bsdf_flag component |
| const BSDFMODEL* model |
|
staticconstexpr |
| unit_t unit |