Reverse question - is there a way to exclude 100% transparent material from the material ID render ? Say I have a texture of a tree where the foliage is opaque and an alpha channel masks what's not needed. Material ID still considers the transparent surface as a different material.
When a lot of objects are in background, selection is not optimal.
Thanks
render preview
material id preview