Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
epd< CONF, NORMALIZATION, NAME > Class Template Reference

Exponential Power Distribution. More...

#include <epd.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 &v, const Vec3d &m, Mask mask=true) const
 Monodirectional shadowing and masking term.
 
Value compute_normalization (void) const
 EPD normalization.
 
 BBM_DEFAULT_CONSTRUCTOR (epd)
 Default constructor.
 

Static Public Attributes

static constexpr string_literal name = NAME
 

Class Attributes

bsdf_parameter< Value, bsdf_attr::SpecularParameter, 0.003, 0.5, 0.0 > beta
 
bsdf_parameter< Value, bsdf_attr::SpecularParameter, 0.2, 5.0, 0.0 > p
 
 BBM_ATTRIBUTES (beta, p)
 

Detailed Description

template<typename CONF, epd_normalization NORMALIZATION = epd_normalization::Compute, string_literal NAME = "EPD">
requires concepts::config<CONF>
class bbm::ndf::epd< CONF, NORMALIZATION, NAME >

Exponential Power Distribution.

Template Parameters
CONF= bbm configuration
NORMALIZATION= use precomputed normalization of compute on the fly (default=epd_normalization::Compute)
NAME= model name (default = "EPD")

Implements: concepts::ndf

Member Function Documentation

◆ BBM_ATTRIBUTES()

BBM_ATTRIBUTES ( beta  ,
p   
)

◆ BBM_DEFAULT_CONSTRUCTOR()

BBM_DEFAULT_CONSTRUCTOR ( epd< CONF, NORMALIZATION, NAME >  )
inline

Default constructor.

◆ BBM_IMPORT_CONFIG()

BBM_IMPORT_CONFIG ( CONF  )

◆ compute_normalization()

Value compute_normalization ( void  ) const
inline

EPD normalization.

◆ eval()

Value eval ( const Vec3d &  halfway,
Mask  mask = true 
) const
inline

Evaluate the NDF.

Parameters
halfway= vector to eval the NDF for
mask= enable/disbale lanes [default = true]
Returns
the resulting evaluation of the NDF

◆ G1()

Value G1 ( const Vec3d &  v,
const Vec3d &  m,
Mask  mask = true 
) const
inline

Monodirectional shadowing and masking term.

Parameters
v= incident/outgoing vector
m= microfacet normal
mask= enable/disable lanes
Returns
the monodirectional shadowing and masking attentuation factor

◆ pdf()

Value pdf ( const Vec3d &  ,
const Vec3d &  m,
Mask  mask = true 
) const
inline

PDF of sampling the NDF.

Parameters
view= view direction (ignored)
m= sampled microfacet normal
mask= enable/disable lanes [default = true]
Returns
the PDF of sampling 'm' using the sample method.

◆ sample()

Vec3d sample ( const Vec3d &  ,
const Vec2d &  xi,
Mask  mask = true 
) const
inline

Sample the NDF.

Parameters
view= view direction (ignored)
xi= 2D uniform random variables in [0..1] range
Mask= enable/disbale lanes
Returns
A sampled microfacet normal.

Member Data Documentation

◆ beta

bsdf_parameter<Value, bsdf_attr::SpecularParameter, 0.003, 0.5, 0.0> beta

◆ name

constexpr string_literal name = NAME
staticconstexpr

◆ p

bsdf_parameter<Value, bsdf_attr::SpecularParameter, 0.2, 5.0, 0.0> p

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