I am trying to create a mask based on materials having certain nodes. In this case I want to filter any shader that uses the Glass BDSF Node, I have this object with a couple of different materials as show below:
I want to have this glass on this cabinet drawer to be picked up by the mask so I give it a pass index of 1 as seen below:
The layout of my compositor:
This set up outputs a blank mask.
While if I set the pass index of the material "wood_furniture_dresser" to 1 and the material "dresser_glass" to 0 the output is:
This creates a mask that covers both the wood and glass even though the glass is a separate material. Is there any way to have a mask with just the glass?
I would appreciate any help you can give me. Thank you in advance