Drag sky to look around · Real-time LCL thermodynamics, Kelvin–Helmholtz shear & 3D frustum hydrometeors
3D ray-marched convective slab with high vertical development ($z_{\text{top}} = 11.5\,\text{km}$). Secondary shadow rays march toward the sun vector using a dual-lobe Henyey–Greenstein phase function ($g_f = 0.82, g_b = -0.30$) and 3-octave multiple scattering.
This custom 3D volumetric ray-marching engine is encapsulated in the standalone VolumetricCloudPhysicsEngine class and exposed globally as window.CloudPhysics3D:
// 1. Switch to any of the 12 physical weather regimes:
// 'clear' | 'humilis' | 'congestus' | 'stratocumulus' | 'cirrus' | 'fog' |
// 'drizzle' | 'monsoon' | 'supercell' | 'snow' | 'blizzard' | 'hail'
CloudPhysics3D.setRegime('supercell');
// 2. Or drive directly from live Open-Meteo WMO telemetry:
CloudPhysics3D.syncOpenMeteo({
wmoCode: 95,
tempC: 21,
humidity: 88,
windKmh: 54,
solarHour: 15.5
});
// 3. Trigger a 3D volumetric lightning discharge at any time:
CloudPhysics3D.triggerDischarge();