To change the propagation direction of light when it crosses an interface between two transparent materials. The change in speed causes the wavefront to pivot, bending the beam toward or away from the surface normal depending on the refractive indices. This is the core mechanism behind lenses, prisms, and optical fibers.
Heard on the job
The beam will refract at the water-glass interface, so you need to calculate the new angle before placing the detector.