Fix S2 Random Ray Casting Issue (#3825)

This commit is contained in:
John Tramm 2026-02-19 12:25:31 -06:00 committed by GitHub
parent efefdb17b1
commit 53ce1910f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -895,7 +895,7 @@ SourceSite RandomRay::sample_s2()
site.r = space->sample(current_seed()).first;
// Sample either left or right for S2 (flashlight) transport.
site.u = {prn(current_seed()) < 0.5 ? -1 : 1, 0.0, 0.0};
site.u = {prn(current_seed()) < 0.5 ? -1.0 : 1.0, 0.0, 0.0};
return site;
}