Reflection and Refraction and Shadows

Fixes in logic of shader, ray casting is now in shader (not in root
node)