lightrefracting
Light refraction, or refraction of light, is the change in the direction of a light ray as it passes from one transparent medium into another with a different optical density. This bending arises because light travels at different speeds in different media. The speed of light in a medium is c/n, where c is the vacuum speed and n is the medium’s refractive index. When a ray meets the interface at an angle, its velocity changes, causing its path to bend.
Snell's law describes the relation between the angles and refractive indices: n1 sin(theta1) = n2 sin(theta2). Here
Refractive index also depends on wavelength, leading to dispersion where different colors bend by different amounts.
Phenomena related to refraction include total internal reflection, which occurs when light moves from dense to
Atmospheric refraction causes apparent position shifts of stars and planets near the horizon.