Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Private Types | Private Member Functions | List of all members
wardduer< CONF, Symmetry, NAME > Class Template Reference

The anisotropic Ward-Duer BSDF model. More...

#include <wardduer.h>

Inherits ward< CONF, Symmetry, NAME >.

Public Member Functions

 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.
 
 BBM_DEFAULT_CONSTRUCTOR (wardduer)
 Default constructor.
 
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 &, BsdfFlag component=bsdf_flag::All, unit_t=unit_t::Radiance, Mask mask=true) const
 Return the (approximate) hemispherical reflectance of the BSDF.
 
- Public Member Functions inherited from ward< CONF, Symmetry, NAME >
 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 &, 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 (ward)
 Default constructor.
 
 BBM_ATTRIBUTES (albedo, roughness)
 

Public Attributes

 BBM_BSDF_FORWARD
 
- Public Attributes inherited from ward< CONF, Symmetry, NAME >
 BBM_BSDF_FORWARD
 
specular_scale< Spectrum > albedo
 
specular_roughness< symmetry_t< Symmetry, Value > > roughness
 

Static Public Attributes

static constexpr string_literal name = NAME
 
- Static Public Attributes inherited from ward< CONF, Symmetry, NAME >
static constexpr string_literal name = NAME
 

Private Types

using base = ward< CONF, Symmetry >
 

Private Member Functions

 BBM_BASETYPES (base)
 

Detailed Description

template<typename CONF, symmetry_v Symmetry = symmetry_v::Anisotropic, string_literal NAME = "WardDuer">
requires concepts::config<CONF>
class bbm::wardduer< CONF, Symmetry, NAME >

The anisotropic Ward-Duer BSDF model.

Template Parameters
CONF= bbm configuration
Symmetry= isotropic or anisotropic (default: symmetry_v::anisotropic)
NAME= name of the BSDF model (Default: 'WardDuer')

This model differs from the regular Ward BSDF model in the normalization (sqrt(cos(theta(in)) * cos(theta((out))) for Ward versus cos(theta(in))*cos(theta(out)) for Ward-Duer).

Implements: concepts::bsdfmodel

Member Typedef Documentation

◆ base

using base = ward<CONF, Symmetry>
private

Member Function Documentation

◆ BBM_BASETYPES()

BBM_BASETYPES ( base  )
private

◆ BBM_DEFAULT_CONSTRUCTOR()

BBM_DEFAULT_CONSTRUCTOR ( wardduer< CONF, Symmetry, NAME >  )
inline

Default constructor.

◆ BBM_IMPORT_CONFIG()

BBM_IMPORT_CONFIG ( CONF  )

◆ eval()

Spectrum eval ( const Vec3d &  in,
const Vec3d &  out,
BsdfFlag  component = bsdf_flag::All,
unit_t  = unit_t::Radiance,
Mask  mask = true 
) const
inline

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()

Value pdf ( const Vec3d &  in,
const Vec3d &  out,
BsdfFlag  component = bsdf_flag::All,
unit_t  = unit_t::Radiance,
Mask  mask = true 
) const
inline

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()

Spectrum reflectance ( const Vec3d &  ,
BsdfFlag  component = bsdf_flag::All,
unit_t  = unit_t::Radiance,
Mask  mask = true 
) const
inline

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 hemispherical reflectance of the BSDF for a given direction

◆ sample()

BsdfSample sample ( const Vec3d &  out,
const Vec2d &  xi,
BsdfFlag  component = bsdf_flag::All,
unit_t  unit = unit_t::Radiance,
Mask  mask = true 
) const
inline

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.

Member Data Documentation

◆ BBM_BSDF_FORWARD

BBM_BSDF_FORWARD

◆ name

constexpr string_literal name = NAME
staticconstexpr

The documentation for this class was generated from the following file: