mitsuba-renderer / mitsuba3

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

Cut primary visibility silhouettes against view frustum #1286

Closed njroussel closed 3 months ago

njroussel commented 3 months ago

Description

Fixes #1233

Silhouette boundary points that were behind the camera could still be projected onto the film with a valid ds.uv coordinate.

We now check that ss.p is within the frustum. Note that this could have been done in render_primarily_visible_silhouette too, but it is theoretically more efficient to mask those lanes before we've started measuring the contribution difference along the silhouette (delta L).