mmp / pbrt-v3

Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
http://pbrt.org
BSD 2-Clause "Simplified" License
4.89k stars 1.19k forks source link

Support for intersecting participating media #291

Open frcsdes opened 4 years ago

frcsdes commented 4 years ago

Hello, I would like to render a scene where two participating media intersect. From what I understand, as a Ray points to only one Medium, one of the two media takes precedence as its boundary is intersected last (the blue one here).

smoke-boundaries

Do you think of a way I could render such a scene?