Files
craft-libs/crates
dotCooCoo dc829475eb craft-pbr: GGX D is 0 where n·h is 0 or less
Section B.3.2 writes D with the factor chi+(n·h). ggx_distribution and
ggx_distribution_between squared n·h without it, so a half vector below
the surface, such as h = -n, gave the peak 1 / (pi alpha²). Both now
return 0 where n·h is 0 or less. A test checks both functions at n·h of
0, -0.3 and -1 and at perpendicular and back-facing half vectors.
2026-11-21 09:25:30 -08:00
..
2026-11-14 17:49:47 +01:00
2026-11-13 01:31:26 -05:00
…