-
After getting the scene intersection points via |
Beta Was this translation helpful? Give feedback.
Answered by
njroussel
Jun 25, 2024
Replies: 1 comment
-
Hi @ioissss There's a method in the It takes in the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ioissss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ioissss
There's a method in the
SurfaceInteraction3f
struct for this: https://mitsuba.readthedocs.io/en/latest/src/api_reference.html#mitsuba.SurfaceInteraction3f.emitter2You can then do
mask = dr.eq(emitter, None)
to get a boolean mask.It takes in the
scene
as a parameter so that it can return the envrionment map if the ray didn't hit any surface.