I made a black hole following this tutorial, and I want to put it behind some glass. However, because of the way the shader uses the facing node from the layer weight (at least I think this is what causes the problem), the black hole disappears when glass is in front of it. How would I fix this? This is in Cycles.
Here is the black hole shader (the accretion disk is a separate object).
This is how the black hole looks normally.
And this is what it looks like with a plane of glass in front of it.