Material ID showing materials behind glass

Hi,

I am trying to render a quick exterior scene. The building has extensive glazing, but I would like the glass to be a solid when getting the Material ID output - currently it displays the materials behind instead. Is it possible to achieve this?

my trick is to just do a seperate render in which i’ve turned the transparency of my glass material off. That way i get a material ID where i can select the glass :slight_smile: