#include <ndf_sampler.h>
Inherits BSDFMODEL.
|
| | BBM_IMPORT_CONFIG (BSDFMODEL) |
| |
template<typename... Ts>
requires std::constructible_from<BSDFMODEL, Ts...> |
| | ndf_sampler (Ts &&... ts) |
| | forward to parent constructor, with empty _sampler (due to reference to *this)
|
| |
| BsdfSample | sample (const Vec3d &out, const Vec2d &xi, BsdfFlag component=bsdf_flag::All, unit_t unit=unit_t::Radiance, Mask mask=true) const |
| | Sample the diffuse BSDF given a direction and two random variables.
|
| |
| Value | pdf (const Vec3d &in, const Vec3d &out, BsdfFlag component=bsdf_flag::All, unit_t unit=unit_t::Radiance, Mask mask=true) const |
| | Compute the pdf given an in and out direction.
|
| |
◆ ndf_sampler()
forward to parent constructor, with empty _sampler (due to reference to *this)
◆ BBM_BASETYPES()
| BBM_BASETYPES |
( |
BSDFMODEL |
| ) |
|
|
private |
◆ BBM_CHECK_RAW_CONCEPT()
◆ BBM_IMPORT_CONFIG()
| BBM_IMPORT_CONFIG |
( |
BSDFMODEL |
| ) |
|
◆ pdf()
Compute the pdf given an in and out direction.
- Parameters
-
| in | = the incoming (sampled) direction |
| out | = the outgoing (given) direction |
| component | = which reflectance component was sampled |
| unit | = unit of computation (ignored) |
| mask | = masking of lanes |
- Returns
- the PDF that the incoming direction would be sampled given the outgoing direction.
◆ sample()
Sample the diffuse BSDF given a direction and two random variables.
- Parameters
-
| out | = outgoing direction |
| xi | = two random variables stored in a Vec2d |
| component | = which reflectance component to sample |
| unit | = unit of computation (ignored) |
| mask | = masking of lanes. |
- Returns
- A bsdfSample containing the sampled direction and the corresponding pdf.
◆ _samplers
◆ BBM_BSDF_FORWARD
◆ name
The documentation for this class was generated from the following file: