Fix: Cycles BVH2 and Embree missing some transparent shadow bounces #125739

Merged
Weizhen Huang merged 5 commits from weizhen/blender:fix-bvh2-n-closest-hits into main 2024-08-06 15:38:06 +02:00

5 Commits

Author SHA1 Message Date
2df94337e7 Address review
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
2024-08-06 14:36:03 +02:00
29add6d565 Merge remote-tracking branch 'origin' into fix-bvh2-n-closest-hits 2024-08-06 13:57:23 +02:00
9726b9e1ea Fix Embree max_t not properly assigned the first time 2024-08-03 12:10:51 +02:00
32b4ffee9f Fix EMBREE as well 2024-08-02 19:04:20 +02:00
e1abfd9b8a Fix: Cycles BVH2 not computing N closest intersections
the code snippet is supposed to compute the maximal `isect.t` in the
array, which is used to determine if subsequent intersections should be
added.
However, the previous implementation includes the old `isect.t` which is
going to be replaced, resulting an overestimation of `tmax_hits` and
thus missing closer intersections.
This commit fixes the issue by computing the maximal `isect.t` after new
entry is inserted.
2024-08-01 00:09:15 +02:00