pub fn normal_distribution_ggx(n: Vec3, h: Vec3, roughness: f32) -> f32
Expand description
Trowbridge-Reitz GGX normal distribution function (NDF).
The normal distribution function D statistically approximates the relative surface area of microfacets exactly aligned to the (halfway) vector h.