Antkeeper
0.0.1
|
Light-scattering phase functions. More...
Functions | |
template<class T > | |
T | cornette_shanks (T mu, T g) |
Cornette-Shanks phase function. More... | |
template<class T > | |
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 > | |
T | rayleigh (T mu) |
Rayleigh phase function. More... | |
Light-scattering phase functions.
T physics::light::phase::cornette_shanks | ( | T | mu, |
T | g | ||
) |
T physics::light::phase::henyey_greenstein | ( | T | mu, |
T | g | ||
) |
Henyey–Greenstein phase function.
mu | Cosine of the angle between the light and view directions. |
g | Asymmetry factor, on [-1, 1] . Positive values cause forward scattering, negative values cause back scattering. |
|
constexpr |