Skip to content
Discussion options

You must be logged in to vote

Hi @fzy28,

When you have a multi-lobed BSDF, the sampled_type and sampled_component can provide information regarding the category and index of the sampled lobe.

One primary motivation for this information is for debugging purposes. An additional use case is if you perhaps are also defining your own custom integrator, you could supply a filtered BSDFContext that could restrict the types of lobes sampled.

Finally, existing integrators leverage the sampled_type information. As an example, with the standard path integrator, if the BSDF sample is a delta type (BSDFFlags.Delta), no direct illumination sampling (NEE) is performed for the subsequent bounce.

You can see the full list of the types…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by njroussel
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