Crepuscular Rays: Plan View of the Cloud Gaps, the Fan You See and Contrast Curves (2D)
A plan view of the same cloud gaps with your line of sight crossing the lit and shadowed stripes, the fan of rays as you see it in the sky, and curves of contrast against viewing angle and haze and of sunlight colour against sun elevation. Same model and numerical checks as the 3D scene.
Beams of sunlight streaming through gaps in a cloud deck are parallel, yet they seem to fan out from the sun. Move the sun, the spacing of the gaps, the cloud height, the haze and your viewing direction to see why: perspective makes parallel lines converge, haze scatters the light sideways (Henyey-Greenstein phase function), and your line of sight must cross few lit and shadowed stripes for the rays to stay visible. The sunlight also reddens at low sun through the air mass. A Blender-built scene with numerical checks including the air mass against a curved atmosphere.
A plan view of the same cloud gaps with your line of sight crossing the lit and shadowed stripes, the fan of rays as you see it in the sky, and curves of contrast against viewing angle and haze and of sunlight colour against sun elevation. Same model and numerical checks as the 3D scene.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install