Skip to content

Given a scene and a shape, how to know the bsdf(s) is specular or not? #490

Answered by njroussel
Mephisto405 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Mephisto405
Comment options

@njroussel
Comment options

Answer selected by Mephisto405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants