Rendering a cube with raycasting from fragment shader