Is it possible to have a glass material present in a matte, and have an object behind the glass material present in the matte?
Below is a simple Corona rendering with the matching matte passes. The first image in the Corona series is the base setup with the glass object visible to the pass, and the second is the result with the "Visible in masks" un-ticked.
The second attached image is a Vray matte pass with the "Affect channels" set to "All channels." Doing this allows me to have a good matte for the both the glass, and the objects behind the glass in one pass.