In Frost Kin, a footprint gives the player both a route to follow and an easier place to walk. The protagonist slows as she wades through deep snow but can walk normally in fresh tracks. Fabian, the solo developer working as Studio Flugmaschine, explained how he built that behavior in Godot 4.3 without making the entire Arctic landscape detailed enough to model every step.
Fabian first tried deforming a dense terrain mesh with a vertex shader. That required a high polygon count even where nobody had walked. His replacement separates the record of a track from the way it appears on screen: one texture remembers each depression, while distance determines whether the player sees a geometric dent or a change in shading.
What a footprint records
The trail map is a 1,024 × 1,024 texture with one texel per 12.5 cm of ground, enough to cover a 128 m tile. The texture wraps across the world, but each entry records which tile it belongs to, so a footprint does not repeat 128 m away. It also stores when the snow was disturbed and by how much, including the height of snow pushed up around a print. The shader uses the timestamp to fill tracks over about two minutes without repeatedly updating old entries. Storms erase them much faster.
The shape of a trail depends on how a creature moves. A planted foot presses as deep as its sole reaches; a dragging foot cuts a shallow groove. A hare stamps the snow only where it lands, leaving gaps between hops. The raised rim catches light on one side and casts a shadow on the other, a detail Fabian credited with making the depression recognizable as a footprint.
Where geometry gives way to shading
Three nested square meshes form the nearby snow surface. Only the innermost mesh, which covers the first 10 m and has vertices spaced 10 cm apart, turns tracks into geometric dents. The next two rings use 20 cm and 40 cm spacing and show tracks through shading alone. Beyond the outer ring at 30 m, the low-poly terrain continues to show the trail out to 40 m: the shader tilts the surface normals along the depression and makes compressed snow slightly darker, bluer and smoother than fresh powder.
The meshes move together in 40 cm increments so their vertices stay aligned with fixed points in the world. They can sit up to 5 m ahead of the player in the camera’s viewing direction. To fit the snow to the ground, the system caches terrain heights sampled by raycasts on a 0.5 m grid. At a cliff, extra raycasts locate the lip rather than averaging heights across the drop, which would stretch the snow down the rock face.
What the bison herd revealed
Before optimization, Fabian reported about 60 milliseconds of script time in the worst frames with a bison herd in the game’s second level. In one frame, stamping feet touched about 17,000 texels. The system now checks how far a stamper has moved before processing its print and uploads only changed 256 × 256 chunks of the trail map, at most 30 times per second.
A separate cost came from tying the ground-height cache to the forward-looking snow mesh: turning the camera could trigger thousands of raycasts even when the player stood still. Centering the cache on the player removed that work from camera turns. Newly exposed ground is sampled nearest first, with a budget of 200 raycasts per frame. Fabian also capped physics processing at three steps per frame to prevent one slow frame from triggering repeated rounds of snow updates in the next.
The rendering shortcuts do not require separate guesses about where the snow is. The terrain, close-up mesh, character movement and camera all consult the same trail map and snow-depth rule. A track can lose its 3D shape with distance while remaining visible as a path the player can return to and walk through.

