mitsuba-renderer / mitsuba3

Mitsuba 3: A Retargetable Forward and Inverse Renderer
https://www.mitsuba-renderer.org/
Other
2.1k stars 246 forks source link

Improve robustness of Embree flag test #1301

Closed dvicini closed 2 months ago

dvicini commented 2 months ago

Small fix of the previous PR: This makes the test for Embree's robust ray intersection feature more robust. Instead of checking a single arbitrary ray for failure without robust mode, we check an entire array of rays. This will more reliably catch any future issues and be more robust to changes in compiler flags or Embree internals.