Haven't figured out refraction yet, but I got this to work in shadertoy rendering at 60fps with some code and scene changes. https://www.shadertoy.com/view/3tlXRl