fixed xyz grid
first attempt to render refraction