Skip to main content

Module distribution

Module distribution 

Source
Expand description

Microfacet normal-distribution functions.

All functions return D(h) โ€” the density of microfacets with half-vector h.

Functionsยง

anisotropic_ggx_d
Anisotropic GGX NDF.
beckmann_d
Beckmann NDF โ€” older model, matches Blinn-Phong at certain roughness.
blinn_phong_d
Blinn-Phong NDF parameterised by shininess.
ggx_d
GGX / Trowbridge-Reitz NDF.
phong_d
Phong NDF โ€” converts Phong shininess to roughness-compatible form.
ward_d
Ward anisotropic NDF.