Home▸Physics & Mechanics▸Crepuscular Rays: Plan View of the Cloud Gaps, the Fan You See and Contrast Curves (2D)

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.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Crepuscular Rays: Plan View of the Cloud Gaps, the Fan You See and Contrast Curves (2D) ↗ Open standalone

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.

⚙ Under the hood

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.

Crepuscular RaysAtmospheric ScatteringPerspective ConvergenceAir MassRayleigh ScatteringHenyey-Greenstein Phase FunctionSunset Colours

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)