The change in direction of a ray depends on the change in speed of the light and can be used to calculate refractive index. When you use this relationship, the angle must always be the angle in a vacuum (or air). A ray of light is incident on the surface of the water.