The phenomenon of bending of light as it moves from one medium to another is known as:
refraction
When light rays travel from one medium to another, the direction of propagation, as well as the speed of the light rays, alter. The phenomenon of bending of light as it moves from one medium to another is known as the refraction of light. In nature, it is refraction that causes us to see different phenomenon like mirages and also the twinkling of stars which is caused due to the atmospheric refraction of light.