The Low Microfacet distribution. More...
#include <low.h>
Public Member Functions | |
| BBM_IMPORT_CONFIG (CONF) | |
| Value | eval (const Vec3d &halfway, Mask mask=true) const |
| Evaluate the NDF. | |
| Vec3d | sample (const Vec3d &, const Vec2d &xi, Mask mask=true) const |
| Sample the NDF. | |
| Value | pdf (const Vec3d &, const Vec3d &m, Mask mask=true) const |
| PDF of sampling the NDF. | |
| Value | G1 (const Vec3d &, const Vec3d &, Mask=true) const |
| Monodirectional shadowing and masking factor. | |
| BBM_DEFAULT_CONSTRUCTOR (low) | |
| Default constructor. | |
Static Public Attributes | |
| static constexpr string_literal | name = NAME |
Class Attributes | |
| bsdf_parameter< Value, bsdf_attr::SpecularParameter > | B |
| bsdf_parameter< Value, bsdf_attr::SpecularParameter > | C |
| BBM_ATTRIBUTES (B, C) | |
The Low Microfacet distribution.
| CONF | = bbm configuration |
| NAME | = ndf name (default = Low) |
The NDF is parameterized by two unnormalized parameters 'B' and 'C'. The 'A' scale parameter is not included. Note: this is not a true NDF, as the eval function is not normalized!
Implements: concepts::ndf
|
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 factor.
| v | = incident/exitant direction of transport |
| m | = microfacet normal. |
| mask | = enable/disable lanes [default = true] |
Low et al. did not propose a shadowing and masking function based on the NDF, and used the v-groove model instead
|
inline |
PDF of sampling the NDF.
| view | = view direction (ignored) |
| m | = sampled microfacet normal |
| mask | = enable/disable lanes [default = true] |
|
inline |
Sample the NDF.
| view | = view direction (ignored) |
| xi | = 2D uniform random variables in [0..1] range |
| Mask | = enable/disbale lanes |
| bsdf_parameter<Value, bsdf_attr::SpecularParameter> B |
| bsdf_parameter<Value, bsdf_attr::SpecularParameter> C |
|
staticconstexpr |