The Beckman Microfacet distribution. More...
#include <beckmann.h>
Public Member Functions | |
| BBM_IMPORT_CONFIG (CONF) | |
| Value | eval (const Vec3d &halfway, Mask mask=true) const |
| Evaluate the NDF. | |
| Vec3d | sample (const Vec3d &view, const Vec2d &xi, Mask mask=true) const |
| Sample the NDF. | |
| Value | pdf (const Vec3d &view, const Vec3d &m, Mask mask=true) const |
| PDF of sampling the NDF. | |
| Value | G1 (const Vec3d &v, const Vec3d &m, Mask mask=true) const |
| Monodirectional shadowing and masking term. | |
| BBM_DEFAULT_CONSTRUCTOR (beckmann) | |
| Default constructor. | |
Static Public Attributes | |
| static constexpr string_literal | name = NAME |
Class Attributes | |
| specular_roughness< symmetry_t< Symmetry, Value > > | roughness |
| BBM_ATTRIBUTES (roughness) | |
The Beckman Microfacet distribution.
| CONF | = bbm configuration |
| Symmetry | = symmetry_v::Isotropic or symmetry_v::Anisotropic (Default = symmetry_v::Isotropic) |
| Normalize | = whether or not to normalize the NDF by 1/pi (Default = true) |
| SampleVisible | = sample visible normal distribution (Default = true) |
| NAME | = ndf name (default = Beckmann) |
Implements: concepts::ndf
| BBM_ATTRIBUTES | ( | roughness | ) |
|
inline |
Default constructor.
| BBM_IMPORT_CONFIG | ( | CONF | ) |
|
inline |
Evaluate the NDF.
| halfway | = vector to eval the NDF for |
| mask | = enable/disbale lanes [default = true] |
|
inline |
Monodirectional shadowing and masking term.
| v | = incident/outgoing vector |
| m | = microfacet normal \param mask = enable/disable lanes |
|
inline |
PDF of sampling the NDF.
| view | = view direction |
| m | = sampled microfacet normal |
| mask | = enable/disable lanes [default = true] |
|
inline |
Sample the NDF.
| view | = view direction |
| xi | = 2D uniform random variables in [0..1] range |
| Mask | = enable/disbale lanes |
|
staticconstexpr |
| specular_roughness<symmetry_t<Symmetry,Value> > roughness |