TechniquesNewLit arena: 2D light, soft shadows, smoke and fire that answer play
A 2D scene lit only by what happens in it.

The HaTac engine’s weather as one kit, in raw WebGPU.
A seeded grid over the valley in world metres carries fronts on the prevailing wind; each climate (by biome) and its season set the air, and the air turns the fronts’ rain to snow. The grid is the CPU authority, on fixed steps, and saves: wet ground that dries, puddles that fill only below their lowest outlet, snow that builds and melts on the ground and on roofs (a roof keeps the ground under it dry), runoff that raises the rivers without ever compounding, storms that announce themselves once, and a seasonal ice sheet on the water that grows from a cold bank, joins a calm shelf to the lake while a fast river keeps its open centre, holds a load once thick enough and opens in a thaw. Round the viewer the rain and snow are drawn in two moving volumes on the engine’s particle runtime (a close one of impacts, a wide one of streaks and flakes out to 150 m on High), born only where the grid rains, stopped by roofs and water, ringing the water where they land; the ground, roofs, trees and water read the same grid in their shaders (a wet sheen, puddles that mirror the sky, snow on what faces up, snow shaken off the trees by gusts) and veil what lies beyond the rain along the sightline; the cloud lid takes its cover from the fronts. The demo is a small valley through a compressed day and year: a hamlet of timber cabins, a river from a tarn down two steep runs into a lake, spruces on the slopes, with the season, the hour, the sky and the wind to set.
Measured 28 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 158, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged GPU 7.43–7.45, CPU 0.34–0.34 ms). What ran: Alone: the weather over the bare valley at 16:12 in early winter under a passing front: the weather lattice (129² samples at 6 m) stepped at 5 Hz, its fields uploaded, the precipitation’s two moving volumes on the particle runtime, rain rings in the water, the ice on the lake, the wet and snowy ground and the sightline veil in terrain-world’s clipmap valley under sky-atmosphere’s sky, the lid driven by the weather’s cover; no cabins or trees. The camera turns slowly. Phones: tiers are being measured next.
Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.
install("valley-weather")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it upFrom HaTac. Adapted from published work, named below.
Hannes Andersson: The HaTac engine’s weather, ice, water and particle modules and their decisions (built for his game and proven there), the library host and the demo’s valley.
The library’s living-water, terrain-world, sky-atmosphere and material-bake: The demo’s valley, river and lake, its ground, its sky and its materials are their demo copies.