Double-Slit Experiment

The double-slit experiment shows light and matter behaving as waves: photons passing through two narrow slits interfere with themselves, building up a banded fringe pattern on a detector even when fired one at a time, which reveals the underlying probability wave of quantum mechanics. Here each glowing sphere is spawned individually and animated along a two-phase lerp path (emitter to slit, slit to screen), with its final landing x-coordinate sampled from the analytic intensity function I(x) = cos²(k1·x)·sinc²(k2·x) — the product of a double-slit fringe term and a single-slit diffraction envelope. A translucent ripple shader plane visualizes the underlying wavefronts radiating from both slits.

Max screen hits
4,000
Active photons
60 max
Technique
Sampled I(x) distribution
Spawn rate
16.7/s
Slit width
0.5 u (fixed)
1.0
16.7