Light · Research
Mist Glimmer
Real rainbows, computed drop by drop, in real time.
A sunlit puff of water mist where every glint and rainbow comes from the physics of light inside water drops. Hundreds of thousands of drops are simulated live, and each one scatters sunlight exactly as Mie theory says a drop of its size should, so the primary bow, the reversed secondary bow, the dark band between them and the pale fogbow of fine mist all appear on their own.
Try it live
Puff a spray bottle, hose or fog mister, lock the sun to the bow, and watch drops flash red, green and blue as they cross 42°.
Needs WebGL 2. Best on a desktop.

Mist drifting through a rainbow beside the pool fountain.


The research
Exact scattering tables
Offline, full Mie theory is solved for 48 drop sizes across 1,971 angles, with polarization, smoothed for the width of the sun's disc. The result is a 1 MB table the browser can read instantly.
Validated against the literature
The tables pass a 30-test suite against published rainbow references (Laven; Wang and van de Hulst): bow angles, colour order, the dark band, supernumeraries, fogbows and energy conservation.
Real drops, real motion
Drops are launched, slowed by measured air-drag laws and blown by the breeze, so the mist spreads and falls like a real spray.
Seen through a real eye or camera
Switch between your eye, a phone or a 50 mm lens, with focus, shutter, depth of field, motion blur and even a polarizer that dims the bow.
The real-time breakthrough
Physically correct rainbows normally mean offline rendering. Here they run live: on a desktop GPU the demo simulates about 200,000 drops per puff at around 40 frames a second, looking up each drop's scattering in the precomputed tables every frame.
Physics, not a painted ring
Most real-time rainbows are a coloured texture. Here the bow emerges from per-drop scattering, so it changes correctly with drop size, sun height and viewpoint.
Self-checking
Built-in checks verify the colour order, the reversed second bow, Alexander's dark band, the fogbow and your own head's shadow, live.
Honest labels
The page marks which effects are calibrated, which are approximate and which are artistic, and artistic boosts are off by default.
- Rainbows from Mie theory, per drop
- Hundreds of thousands of drops in real time
- Primary and secondary bows, dark band and fogbow
- Validated against published references
- Camera, eye and polarizer views