How to get an environment mask behind a glass?

Hi there.

I have to extract a mask for the environment, wich I will be rendering apart, in my current scene my environment is behind a glass, how can I extract a mask for it?
There is no Environment render element.

Cheers.

Is it for an animation or still render?

Sorry for the late reply, animation :smiley:

Cheers.