Files
craft-libs/crates
dotCooCoo e4b46d6a33 craft-pbr: keep n·h at most 1 in pbr_direct, as try_direct does
pbr_direct now takes n·h as clamp(dot(n, h), 0, 1), matching try_direct.
With n·h slightly over 1 after rounding, the GGX inner term shrinks and D
rises above its peak. Its comment also names the 1e-4 floor of the
specular denominator.

The README's pbr_direct row lists the floors and the differences from
try_direct, and the changes from EffectCraft's shader say that it clamped
roughness to 0.03 to 1 and read the other material values unchecked.
2026-11-21 09:17:58 -08:00
..
2026-11-14 17:49:47 +01:00
2026-11-13 01:31:26 -05:00
…