When light moves between different mediums, its direction changes based on the refractive index. Light bends towards the normal when transitioning from less dense to denser mediums and away from the normal when transitioning from denser to less dense mediums.
When light travels from one medium to another, such as from air to water or water to air, it changes direction based on the change in the medium's refractive index. Light bends towards the normal when moving from a rarer to a denser medium (like air to water), and away from the normal when moving from a denser to a rarer medium (like water to air or glass to air).
https://brainly.com/question/41430346