Refractive index or index of refraction is the measure of the bending of a ray of light when passing from one medium into another.