A laser beam hits a glass slab and bends — toward the normal going in, away from it coming out — so it leaves parallel to how it arrived, but shifted sideways. Drag to orbit, pinch or scroll to zoom, and change the angle, the glass, and the slab thickness: every ray is recomputed from Snell's law, live.
A coin at the bottom of a water tank looks higher than it really is. Rays leaving the water bend away from the normal, and your eye traces them straight back — to a ghost coin floating above the real one. That is why a swimming pool looks shallower than it is, and why a pencil in a glass of water looks bent at the surface. Drag to orbit, pinch or scroll to zoom.
Four textbook angles first — then use the sliders to change the glass (n) and the slab thickness (t) and watch the bend and the sideways shift respond. Angles are measured from the normal, never from the surface.
Computed from Snell's law, never hand-placed: sin r = sin i ÷ n, and the lateral shift d = t · sin(i − r) ÷ cos r.
What to notice: the ray bends toward the normal entering the glass (light slows down), travels straight inside, then bends away from the normal leaving — by exactly enough that the emergent ray is parallel to the incident ray. The dashed blue ray is where the beam would have gone with no slab: the gap between the two spots on the bench is the lateral shift, grown sideways inside the glass.
The water surface never moves — only the coin sinks or rises with the real depth, and the liquid itself changes with n. Set n = 1.00 and the illusion vanishes: with no bending, apparent depth equals real depth.
In real life: a swimming pool looks shallower than it is — the bottom you see is the apparent one, raised by exactly this effect, which is why the deep end surprises people. A pencil half-dipped in a glass of water looks bent at the surface for the same reason: rays from the underwater part bend away from the normal on their way out, so that part appears raised and displaced.
The apparent depth below is the exact one: where the backward extension of the slanted ray actually meets the vertical ray through the coin. The textbook shortcut real ÷ n is shown alongside — it is exact only for rays close to the normal.
What to notice: the vertical ray goes straight out without bending — but the slanted ray bends away from the normal as it leaves the water. Your eye assumes light travels straight, so it traces the bent ray backwards (dashed) to the ghost coin, floating above the real one. Two rays are enough: their backward extensions meet at the apparent position.
The row for the current preset angle lights up when the sliders sit at n = 1.50 and t = 10 cm. Bigger i means a bigger bend — and a shift that grows faster than the angle does.
| Incidence i | Refraction r | Lateral shift d | Emergent ray |
|---|---|---|---|
| 0° — along the normal | 0.0° | 0.00 cm | Straight through, unshifted |
| 30° | 19.5° | 1.94 cm | Parallel to incident ray |
| 45° | 28.1° | 3.29 cm | Parallel to incident ray |
| 60° | 35.3° | 5.12 cm | Parallel to incident ray |
Apparent depth is not a textbook curiosity — it is the refraction you meet every day:
A swimming pool looks shallower than it is. The floor you see is its apparent position, raised toward the surface. A pool that looks waist-deep can be chest-deep — the reason diving into an unfamiliar pool is dangerous.
A pencil in a glass of water looks bent at the surface. Rays from the submerged part bend away from the normal as they leave the water, so that part appears raised and shifted — the pencil looks broken exactly where it crosses the surface.
A pond's bottom, a fish in a tank, a coin in a bowl — all appear closer to the surface than they are, by the same geometry drawn in the tank above: apparent depth = real depth ÷ n, for near-vertical viewing.
Physics check: i = 45°, glass n = 1.5 gives sin r = sin 45° ÷ 1.5, so r = 28.1° — and with t = 10 cm the lateral shift d = t·sin(i − r) ÷ cos r = 3.29 cm. At i = 0° there is no bending at all: a ray along the normal crosses both faces undeviated, however thick the slab. At the second face the ray goes from denser to rarer medium and bends away from the normal by exactly the amount it bent toward it at the first face — which is why the emergent ray always comes out parallel to the incident ray, for any slab, any glass, any angle. In the exam you draw this as a 2D diagram — use the “Side (exam) view” button above to see exactly that angle in 3D.
Physics check: with the coin 14.0 cm down and the slanted ray leaving the surface 6 cm to the side, the ray travels at 23.2° to the normal in water and bends to 31.6° in air (sin r = 1.33 × sin 23.2°). Tracing that air ray straight back, it crosses the vertical through the coin at 9.8 cm below the surface — the exact apparent depth drawn here. The school formula apparent depth = real depth ÷ n gives 10.5 cm: a small-angle approximation that assumes you look almost straight down. The wider the viewing angle, the more the exact value drops below the shortcut — drag the depth slider and compare the two readouts. In the exam you draw this as a 2D diagram — use the “Side (exam) view” button above.