I'm looking for a way in cycles to have the distortions of objects behind a glass material on a separate render layer from the glass material itself.
So for example in the images that I uploaded you would only see the distorted test image that was inserted into the scene by using "images as planes", but you wouldn't see the glass sphere itself.
I'm guessing this is achieved in the compositor but couldn't solve it myself and didn't find a suitable answer.
Hope somebody can help, thank you!!