Given a scene and a shape, how to know the bsdf(s) is specular or not? #490
-
In the above code snippet, the sixth shape in the scene has only diffuse BSDF. In this case, I want a method that returns False. One way might be to use the repr() function. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, I think you're looking for the Here's an example where we use it. |
Beta Was this translation helpful? Give feedback.
Hi,
I think you're looking for the
BSDF.flags()
method: BSDF.flags. And these are the individual flag/types supported: mitsuba.BSDFFlags. You will usually want to use a combination of these with: mitsuba.has_flag.Here's an example where we use it.