Presets
Playback
Glass
Parameters
Model checks
The science
Refraction and dispersion
At each glass face light obeys Snell's law, n1 sin θ1 = n2 sin θ2, and the refractive index depends on wavelength. Here n(λ) comes from the Sellmeier equation n² = 1 + Σ Biλ² / (λ² - Ci) with the published coefficients of each glass. Blue light has the larger index and bends more, so a white beam fans out into a spectrum. This is the observation Newton made in 1666.
The prism
For a wedge of apex angle A the ray angles satisfy θ2 = asin(sin θ1 / n), θ3 = A - θ2, sin θ4 = n sin θ3, and the total deviation is δ = θ1 + θ4 - A. The deviation is smallest when the ray crosses symmetrically: n = sin((A + δmin)/2) / sin(A/2). If n sin θ3 exceeds 1 the ray cannot leave: total internal reflection. The Abbe number Vd = (nd - 1)/(nF - nC) measures how weakly a glass disperses.
Honest simplifications: a single ray per wavelength through the middle of a sharp-edged wedge; no Fresnel reflection losses, absorption, diffraction or beam width; the on-screen colours are approximate display colours for each wavelength. Real crown glass spreads the spectrum by only about a degree, so the dispersion exaggeration slider scales (n - nd) to make the fan visible; set it to 1 for the real glass.
What to try
- Sweep the incidence angle and watch the fan: it narrows and the beam deviation reaches a minimum, which the first graph marks.
- Raise the incidence angle or the apex angle until the violet, then the red ray, no longer leaves the prism: total internal reflection.
- Compare fused silica, BK7 and dense flint at exaggeration 1 and read the spectrum width.
- Move the hit position along the face: the angles do not change, only the geometry.