Antkeeper  0.0.1
Functions
physics::light::phase Namespace Reference

Light-scattering phase functions. More...

Functions

template<class T >
cornette_shanks (T mu, T g)
 Cornette-Shanks phase function. More...
 
template<class T >
henyey_greenstein (T mu, T g)
 Henyey–Greenstein phase function. More...
 
template<class T >
constexpr T isotropic ()
 Isotropic phase function. More...
 
template<class T >
rayleigh (T mu)
 Rayleigh phase function. More...
 

Detailed Description

Light-scattering phase functions.

Function Documentation

◆ cornette_shanks()

template<class T >
T physics::light::phase::cornette_shanks ( mu,
g 
)

Cornette-Shanks phase function.

Parameters
muCosine of the angle between the light and view directions.
gAsymmetry factor, on [-1, 1]. Positive values cause forward scattering, negative values cause back scattering.

Definition at line 70 of file phase.hpp.

◆ henyey_greenstein()

template<class T >
T physics::light::phase::henyey_greenstein ( mu,
g 
)

Henyey–Greenstein phase function.

Parameters
muCosine of the angle between the light and view directions.
gAsymmetry factor, on [-1, 1]. Positive values cause forward scattering, negative values cause back scattering.
See also
http://www.pbr-book.org/3ed-2018/Volume_Scattering/Phase_Functions.html

Definition at line 80 of file phase.hpp.

◆ isotropic()

template<class T >
constexpr T physics::light::phase::isotropic ( )
constexpr

Isotropic phase function.

Definition at line 56 of file phase.hpp.

◆ rayleigh()

template<class T >
T physics::light::phase::rayleigh ( mu)

Rayleigh phase function.

Parameters
muCosine of the angle between the light and view directions.

Definition at line 87 of file phase.hpp.