Index of Refraction Simulation