Fix #114515: Cycles: Numerical precision issues in triangle light sampling #119224

Open
Lukas Stockner wants to merge 1 commits from LukasStockner/blender:triangle-sampling-precision into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Lukas Stockner 54f5807665 Fix #114515: Cycles: Numerical precision issues in triangle light sampling
The refactor in 97d9bbbc97 changed the way q is computed in the spherical
triangle sampling code. While the new approach is more efficient and saves
a few operations, it introduces numerical precision issues for skinny/small
(spherical) triangles.

Therefore, this change moves the computation of q back to the method from
the paper, while keeping the more efficient solid angle computation.
2024-05-19 22:28:51 +02:00