pbrt/shared
Wito Wiala 5038ed8270 basic_intersect for DiskShape computed the plane hit with interval arithmetic where
pbrt uses a scalar (shapes.h: Float tShapeHit = (height - Float(oi.z)) /
Float(di.z)). It produced NaN, and since every NaN comparison is false neither
the t range test nor the subsequent dist2 > radius^2 test could reject it. The
disk reported a hit on every ray tested against it, and the NaN reached dpdu/
dpdv, the shading normal, and the area-light MIS pdf.

NaN is absorbing in the film, so one bad sample poisoned pixel RgbSum permantenly. Wavefront now works
2026-09-03 12:39:56 +01:00
..
src basic_intersect for DiskShape computed the plane hit with interval arithmetic where 2026-09-03 12:39:56 +01:00
build.rs Added gpu config flag, completed light sampling methods 2026-09-02 09:41:14 +01:00
Cargo.toml Correcting some mistakes I had regarding error handling, enabling optimization on builds, added option handling to BasicSceneBuilder 2026-09-01 18:00:33 +01:00