Loading 3D refraction…

🌈 3D Rainbow

A rainbow forms when sunlight enters a raindrop, refracts, reflects off the inner back wall once, and refracts again on exit, splitting into colors. This light converges at an angle of ~42° from the point opposite the Sun.

Sun height:25°
Rainbow angle:42.0° / 51.0°
Primary visible:Yes
Secondary visible:—
Drops in field:1200
Sun height:25°
Rain density:1200
Single rainbow
Only primary
Double rainbow
+ secondary (51°)
Reset

The slider 'Sun height' moves the rainbow arc according to real geometry: as the sun rises above ~42°, the rainbow descends below the horizon and disappears.

Drag — rotate camera · Click — repeat ray path through drop (slowed)