Skip to content

Snow and Wet Ground

Roi Horowitz edited this page Nov 23, 2026 · 9 revisions

Snow and wet ground

Weather leaves its mark on the ground, and the mark stays after the weather has passed. It's drawn on each screen and kept per scene.

All of this follows the game clock, so nothing changes while the clock stands still.

Lying snow

Falling snow whitens the open ground within minutes of game time, first in patches.

Changed in 4.4.3: it then goes at a thaw's pace, which is days rather than hours. Snowmelt has a standard measure — the degree-day factor, millimetres of water melted per degree above freezing per day, which runs about 3.5 in the open — and against that a thaw at three degrees takes the better part of two days, while a warm day with sun clears a cover in several hours. Below freezing it does not go at all. Snow clears in (game hours) sets the pace, and in the 4.9.0 code it always applies. (The code notes that an earlier build let a quick twenty-minute thaw take over and never reached this setting.) Snow still settles within about ten game minutes of a fall starting. Read from the code, not tested live.

  • Each scene gets its own drifts and small mounds, with torn edges where the snow thins out.
  • Slopes are lit from where the sun or moon is now, every rise throws a shadow, and snow sparkles on the slopes facing the light.
  • Nearby lamps and fires catch the side of each rise that faces them.
  • A river's frozen look or any ice floor only takes a dusting, so its own look still shows.

Fire melts snow. New in 3.3.0, and not tested live. An Energy blast of fire melts the lying snow where it lands, with an uneven edge. The patch clears in about a second of real time. It's only a look and nothing is saved. The patch then comes back by the game clock. Changed in 3.3.1, read from the code and not tested live.

  • It fills back in at the same rate snow is settling in that weather, only while snow is falling and it's cold enough to stay. Nothing changes while the clock stands still.
  • If the weather has changed, it stays melted until snow falls again or the lying snow goes. When the snow goes, the patch goes with it.
  • Winding the clock back to before the blast restores the snow at once.

Snow on roofs and trees follows the ground: a roof under a blanket, a tree's leaves caught white on top, less in a wind. A roof fading for a creature inside takes its snow with it.

Snow and rain on buildings you draw. New in 4.7.0. The painted roofs of the Structures tab take the same ground's snow, building up on them, and rain darkens them. A roof keeps the rain and snow out of the room under it. See Buildings.

Snow and wet on cliffs and crossings. New in 4.2.0. Raised ground, bridges, ladders and ropes from the Heights tab take the ground's lying snow and wetness: wet rock and wood go darker with runs and a sheen, and snow lies on the rim, ledges, stones, planks, rungs and coils of rope. Not on an underground scene. See Map Painting.

Snow and rain on tiles. New in 4.8.0. Tiles that stand as objects (a barrel or cart laid as a tile) take the ground's snow and rain too, except one named as a burning fire. See Sun Moon and Shadows.

Snow on decorations. New in 4.0.0. Painted rocks, trees, stalls and the rest from a region's Decorations take the ground's snow too: a dusting on top at first, capped white once it lies deep, melting as the ground's does. A brazier's or lamp's fire keeps its own clear. Rain darkens their wood, cloth and stone until they dry. See Decorations.

Lamps on the snow. New in 4.0.0. Out of doors, a lamp or torch lights the snow only as much as it shows against the daylight: not at all at noon, more from dusk, fully at night. See Sun Moon and Shadows.

Wet ground and puddles

Rain darkens the open ground and gathers real puddles, spreading and joining as it gets wetter. They hold a pale sheen of the sky and mirror nearby lamps and torches in their colour, only where the light reaches past the walls. An opening in a roof always gathers a pool.

The ground dries at the pace the sky allows. Changed in 4.4.3: sunlight does nearly all of the work, so a soaking goes in about three hours on a sunny, warm day, while the same ground under cloud at ten degrees holds its water for most of a day. Nothing dries at all while rain or snow is still falling — the air above the ground is saturated — or within a couple of degrees of freezing, where what is there turns to ice instead.

These are the real figures rather than invented ones: pan evaporation runs about six times higher in July than in January, and the energy says a millimetre of water over a square metre needs about 2.45 MJ, which is roughly an hour of full sun. Wet ground dries in (game hours) sets the pace against that, and everything else keeps its proportion to it.

Puddle size and Splash size in the Weather Panel set how big this map's puddles and the splashes where drops land are, down to none. New in 3.7.0. Smaller puddles stay apart, for a town map where a big one could run across painted roofs.

Ground gets wet in (game minutes) is how long the hardest rain takes to soak the ground. Ordinary rain takes about half as long again, a drizzle about four times as long.

Rain on water spreads rings on water and on wet ground, clearly in puddles and faintly elsewhere.

Water that freezes

In a hard frost water freezes over, the ice creeping in from the banks.

  • It freezes from −3 °C, faster the colder, and thaws above freezing.
  • With no temperature known, deep snow lying for long freezes it.
  • Each scene takes its own time between Water freezes in at least and Water freezes in at most. Set them the same and every scene takes exactly that long.
  • Turning off Freezes in the cold in the region's right-click panel (Water) keeps a hot spring or a fast river open.
  • Ducks, herons, frogs and fish leave water that has frozen over and come back when it thaws.
  • Freezing weather stills moving water.

Setting the temperature yourself

Use the Temperature slider in the Weather Panel. It works in any weather, so you can have snow lying under a clear sky.

The seasons

The season comes from Calendaria or Simple Calendar Reborn. Without one, the seasonal features have no season to go by. Exactly what shows with no calendar wasn't confirmed.

  • The ground through the seasons colours the open ground, most on grass, and lays fallen leaves under the trees in autumn. A grassy region can opt out with Affected by season. See Region Steps and Painted Floors.
  • Season colours on the ground in Scene configuration → Animater turns it off for one scene. New in 3.8.5. Off (the map keeps its own colours) suits a scene whose floor is set to Grass, where the season's colour would otherwise cover the whole map, its painted paths and trees too.
  • Falling leaves drift from tree tiles: a few in summer, many in autumn, pale blossom in spring, none in winter. A Blossom or fruit tree drops pink and white petals instead (new in 4.0.0). See Sun Moon and Shadows.
  • Trees in the wind sway the tree tiles.

Settings

Setting Everyone (GM) My screen Choices or range What it does
Snow cover On On — Falling snow whitens the open ground within minutes of game time, first in patches, and melts within minutes once it is above freezing. Kept per scene. Drawn at Balanced quality or better. The setting's own hint still says minutes; since 4.4.3 it melts at the pace of Snow clears in.
Snow on roofs and trees On On — Snow lying on the ground lies on the roofs and in the trees too (the roof and tree tiles): a roof under a blanket, a tree's leaves caught white on top, less in a wind. It melts with the ground's. A roof fading for a creature inside takes its snow with it. Drawn at Balanced quality or better.
Wet ground dries in (game hours) 3 — 0.5 to 48 New in 4.4.3. How long a soaking takes to dry on a sunny, warm day. Everything else keeps its proportion: no sun and ten degrees holds its water for most of a day, and under rain or near freezing it does not dry at all. Three hours is roughly life.
Snow clears in (game hours) 34 — 2 to 240 New in 4.4.3. How long a full cover takes to go in a thaw at three degrees with no sun. Warmth and sun quicken it; below freezing it does not go. Thirty-four hours is roughly life.
Wet ground after rain On On — Rain darkens the open ground and leaves puddles that catch the sky; it dries over a few hours of game time, faster in sun and heat. Kept on each screen per scene. Drawn at Balanced quality or better.
Ground gets wet in (game minutes) 5 — 1 to 60 How long the hardest rain takes to soak the ground, by the game clock. Lighter rain takes longer: ordinary rain about half as long again, a drizzle about four times as long.
Rain on water On On — While it rains (Calendaria's weather or the scene's), rings spread where the drops land on water and on the puddles of wet ground, more the harder it rains. Drawn at Balanced quality or better.
Water freezes On On — In a hard frost the water freezes over, the ice creeping in from the banks: pale and matte with fine cracks, sparkling, snow lying on it, and ice underfoot. It freezes from −3 °C over some hours (faster the colder) and thaws above freezing; with no temperature known, deep snow lying for long freezes it. Turning off Freezes in the cold (the region's right-click panel → Water) keeps a hot spring open. Kept on each screen per scene. Drawn at Balanced quality or better.
Water freezes in at least (game hours) 24 — 1 to 240 How long water takes to freeze over, and to thaw, the whole way. Each scene takes its own time between this and the most below, by the game clock.
Water freezes in at most (game hours) 48 — 1 to 240 See above. The same as the least: every scene takes just that long.
The ground through the seasons On On — The open ground takes the season's colour, most on grass: fresh green in spring, sun-bleached in summer, brown in autumn, dull and grey in winter; and fallen leaves lie under the trees in autumn, blown off in a wind. The season from Calendaria or Simple Calendar Reborn. Drawn at Balanced quality or better.
Falling leaves On On — Now and then a leaf falls from the trees (the tree tiles) and drifts away on the wind: a few in summer, many and golden red in autumn, pale blossom in spring, none in winter. The season from Calendaria or Simple Calendar Reborn. Drawn at Balanced quality or better.
Trees in the wind On On — The tree tiles sway with the wind, each out of step with the next, their leaves fluttering: barely in still air, a good deal in a gale. From Calendaria's weather or the scene's wind. Drawn at Balanced quality or better.
Morning mist On On — Mist gathers before sunrise, thickest over water and low ground, and burns off as the sun climbs; in fog it lies all day. Drawn at Balanced quality or better.
Heat shimmer On On — The air shimmers over hot ground at midday under a clear sky: over sand, or the whole map in a heat wave (Calendaria's temperature from 30 °C). Drawn at Full quality, with map distortion on.

Limits

  • Roofs (regions that suppress weather, the rooms under painted roofs, and every walled room on a scene with Buildings here are roofed on) keep all of this out, unless a region is marked Open to the sky. Since 3.7.0 the edge of a roof fades in over about half a square rather than a hard line; each region's Weather edge sets it. See Region Steps and Painted Floors.
  • No weather on this scene clears what lay on the ground.

See also

Weather Panel · Water · Movement Effects · Buildings · Map Painting

Technical details

For developers and the curious. Read from the 3.2.2 code, with the 3.3.0 and 3.3.1 changes added, and not run or measured.

Source: the look is in scripts/engines/motion/sky-light.mjs, and the simulation is createGroundWeather in ambient-life.mjs.

Ground state

The state is { wet, snow, ice, at }, advanced by the game clock on each lookSky.

  • Limits: at most 48 game hours per step, and a jump over 30 days counts as no time.
  • Wetting: rain * 60 / wetMinutes per hour.
  • Snow and ice: snow lies in 10 game minutes. Ice takes the scene's own pace, between iceHoursLeast and iceHoursMost.
  • Drying and melting (4.4.3, read from the 4.9.0 code): dryingRate is 0 while rain or snow is above 0.05 or at 2 °C or less, else 0.12 + 2 * sun + 0.6 * warmth, scaled so a soaking goes in dryHours (default 3.1 internally, the setting 3) in full sun. meltRate is 0.0097 * temperature * (1 + 0.6 * sun) per hour, scaled by 34 / thawHours; with no temperature known, the sun alone melts it. A set thawHours now always wins over the old 20-minute thaw (SNOW_GOES_HOURS), which was reached only when the setting had no number.
  • Saved: the lead GM writes flags.animater.ground, batched after 2000 ms and only after a 0.01 change or 900 game seconds. Every client also keeps a localStorage copy. On load, the scene flag wins.

Comment and code differ: the setting text says water freezes "faster the colder", but with a pace set, which is the default, ice time doesn't depend on temperature. The panel's Amount tooltip says it sets "how fast snow lies", but the timed path doesn't use amount once snow is past 0.05. That comes from reading the code and wasn't tested.

Wet ground and puddles

Drawn in surface light modes 0 and 1, with no mesh of their own.

  • Mode 0 darkens with alpha min(1, uWet * 0.2 + puddleAt * 0.34).
  • puddleAt thresholds an fbm noise that lowers as wetness rises, and lowers further under roof openings, which are uFreeze.b.
  • Mode 1 adds a sun sheen, a cool sheen, lamp reflections and rain rings. Each ring scan covers a 3×3 cell neighbourhood.

Snow

Relief bake. SNOW_SHAPE is a filter over a white sprite, rendered to a texture of up to 2048 px on the long side. Red and green hold slope and blue holds height. It's baked at the first snow after each build(), so although a comment says "once", a rebuild makes it again.

Drawing. Mode 2 draws it with snowField, 5 octaves using a sine-free hash so the CPU's snowPatchAt can nearly agree on where creature tracks show. It adds slope lighting from uSnowSun, one shadow sample toward the sun, tree shade and up to 3 lamps clipped by uLampReach. The two aren't identical: the shader adds extra edge terms and a narrower band.

Sparkle. Mode 1 tests frostGlint first, and reads the relief only for the few cells that pass.

Lights. snowLights runs at most every 250 ms. uLampReach holds up to 3 lights' reach, one per colour channel, and is redrawn only when positions change or walls and regions do. Lamp count is 3 at Full and Light, 2 at Balanced and 0 below.

Snow on roofs and trees

createTileSnow makes one PIXI.Mesh per roof or tree tile, with a shader reading the tile's own texture as uTile and an optional tiled uSnowTile, so 2 samplers. Corners are rotated about the tile's anchor to match Foundry. It lives on snowRoot, sortLayer 1099, just above the highest tile.

Per frame it updates uniforms only, and rebuilds are debounced by 200 ms on tile, region and setting changes. A roof takes the ground's snow, and a tree snow * 0.85 * (1 - 0.4 * wind). Up to 4 lights are used at Full, not clipped by walls.

Tile snow and tree sway read weather.wind, not the panel's tuned wind, so the panel's Wind slider doesn't reach them. That comes from reading the code and wasn't tested.

Heat shimmer

createHeatShimmer is one PIXI.Filter pushed last on canvas.primary.filters, detached below heat 0.03. Its mask is baked at min(0.125, 1024 / longest side), and uAmp = 5.5 * heat. It's Full only.

Comment and code differ: the hint says "with map distortion on", but the check reads heatShimmerLocal, not mapDistortionLocal. It also shows over lava at a fixed strength and at night for drawn heat, which the hint doesn't mention.

Rainbow, leaves and the rest

Rainbow, morning mist and ice are branches of mode 2, and season colour and fallen leaves of mode 0. They need no extra meshes. Falling leaves are uMode 2 of the canopy shader. See Sun Moon and Shadows.

Fire melting snow (new in 3.3.0, changed in 3.3.1)

Checked against the 3.3.1 code. Not tested live.

meltsSnow in energy-blast.mjs is true only for fire. playBlast in main.mjs records radius * 1.1 and the time, on each screen, with world, the game time of the blast, and left, from 1 to 0. meltsFilled adds was, the clock last seen. meltSpots keeps the latest 4, with strength min(1, (now - at) / 1000, left), so the clearing second is real time. It's updated at most every 100 ms and clears at canvasTearDown. Nothing is saved.

The weather update calls meltsFilled(spots, worldTime, snowRate). It drops a spot whose world is ahead of the clock, and takes hours * perHour off left, dropping the spot at 0. hours never goes below 0, so a partly filled patch doesn't melt again when the clock is wound back to a time after the blast.

snowRate calls snowLiesRate in ambient-life.mjs, the same function that adds to lying snow. It's 0 unless snow is above 0.05 and the temperature is 2 °C or less, or unknown. Otherwise, per game hour, it's 1 / SNOW_LIES_HOURS (10 game minutes) when pace() is set, or snow / SNOWS_HOURS * 2, so an hour in the heaviest snow and longer in lighter. All spots are cleared once ground.snow isn't above 0.

In sky-light.mjs, surfaceLight.melt writes uMelt[4], a uniform array, so it uses no new sampler. meltAt loops over the 4 spots with a patchNoise edge, and its result raises the snow line by meltAt(px) * 1.6 in modes 2 (lying snow) and 1 (sparkle).

The roof and tree snow shader has no melt uniform, so those should stay white. Read from the code, not tested.

Clone this wiki locally