Interactive Rendering of Non-Constant, Refractive Media Using the Ray Equations of Gradient-Index Optics