#include <lowsmooth.h>
|
| | BBM_IMPORT_CONFIG (CONF) |
| |
| Spectrum | eval (const Vec3d &in, const Vec3d &out, BsdfFlag component=bsdf_flag::All, unit_t=unit_t::Radiance, Mask mask=true) const |
| | Evaluate the BSDF for a given in and out direction.
|
| |
| 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 BSDF given a direction and two random variables.
|
| |
| Value | pdf (const Vec3d &in, const Vec3d &out, BsdfFlag component=bsdf_flag::All, unit_t=unit_t::Radiance, Mask mask=true) const |
| | Compute the pdf given an in and out direction.
|
| |
| Spectrum | reflectance (const Vec3d &out, BsdfFlag component=bsdf_flag::All, unit_t=unit_t::Radiance, Mask mask=true) const |
| | Return the (approximate) hemispherical reflectance of the BSDF.
|
| |
| | BBM_DEFAULT_CONSTRUCTOR (lowsmooth) |
| | Default constructor.
|
| |
◆ BBM_ATTRIBUTES()
| BBM_ATTRIBUTES |
( |
A |
, |
|
|
B |
, |
|
|
C |
, |
|
|
eta |
|
|
) |
| |
◆ BBM_DEFAULT_CONSTRUCTOR()
| BBM_DEFAULT_CONSTRUCTOR |
( |
lowsmooth< CONF, NAME > |
| ) |
|
|
inline |
◆ BBM_IMPORT_CONFIG()
| BBM_IMPORT_CONFIG |
( |
CONF |
| ) |
|
◆ eval()
Evaluate the BSDF for a given in and out direction.
- Parameters
-
| in | = incident direction |
| out | = outgoing direction |
| component | = which reflectance component to eval |
| unit | = unit of computation (ignored) |
| mask | = masking of lanes (e.g., for Packet eval) |
- Returns
- Evaluation of the BSDF per spectrum.
◆ 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.
◆ reflectance()
Return the (approximate) hemispherical reflectance of the BSDF.
- Parameters
-
| out | = the outgoing direction |
| component | = which reflectance component to eval |
| unit | = unit of computation (ignored) |
| mask | = masking of lanes |
- Returns
- the approximate hemsispherical reflectance of the BSDF for a given direction
◆ sample()
Sample the 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.
◆ BBM_BSDF_FORWARD
◆ eta
◆ name
The documentation for this class was generated from the following file: