...
Now let's add a thin pane of glass in front of the yellow plane and we get the beauty on the left, alpha on the right. Because a refractive object is considered opaque from the point of view of a ray hitting its surface, the alpha channel is fully opaque.
To turn on alpha for compositing:
...