Math Playground
Physics

Refraction

Light bends as it changes medium — that's why a straw looks broken in water.

Light bends when it changes medium because its speed changes. Snell's law gives the bending angle.

Snell's law
n₁ sin θ₁ = n₂ sin θ₂