Real-Time Deformable Snow lets characters wade through deep snow in Godot 4. As a character walks, the snow surface is cut into a trench, the shoved-aside snow rises into banks on both sides, and an optional detail layer adds broken snow chunks and a heap of snow pushed ahead of the walker. Trails stay while the character is near and settle back smoothly once it has gone far enough away.
Show full description...
It is made for developers of 3D games in Godot 4 who want snow that reacts to their characters: winter exploration, survival, adventure and walking games. Setup takes two nodes: a DeformableSnow node for the snow field, and a SnowDeformer node added as a child of your CharacterBody3D. No special character controller is needed.
This is a geometric model of deep snow, driven by a height field. It is not a fluid or physics simulation: snow volume is not conserved, and the snow has no general-purpose physics collision (see Known Limitations).
Features
- Real-time geometric snow deformation. A height field on the CPU drives the rendered surface (GPU vertex displacement), and every height query reads the same data. The deformation is real geometry, not a decal or a normal map.
- Deep trails and displaced snow banks. One continuous cross-section shapes the trench floor, its walls and the banks on both sides. Walking a trail again does not dig it deeper.
- Optional high-detail snow chunks. A detail layer, on by default, draws broken snow chunks, the full trench profile and the heap of snow ahead of the walker. It can be switched off for lower-end hardware.
- Automatic trail recovery. Snow further than a set distance from every character settles back to its untouched shape over a set time.
- Adjustable deformation parameters. Trail width, deformation strength (cut depth), snow bank height, minimum compressed thickness, recovery distance and time, snow depth and mesh resolution can all be set in the Inspector.
- CharacterBody3D integration. The SnowDeformer node, added as a child of your character, carves the trail after your character moves and holds the body at a natural wading depth in deep snow. It works with your existing movement code.
- Deep snow movement slowdown. The SnowDeformer's get_speed_multiplier() function returns a speed factor that is lower in deep snow, uphill and against snow walls. Multiply your walking speed by this factor.
- Procedural snow terrain. Choose rolling ground covered by wind-built drifts, ripples and hollows, or flat snow. A seed setting and scale settings vary the landscape, and custom terrain is possible through callbacks.
- Optional pixel-art grain. An optional pixel-grid look gives the snow's fine grain and glints a pixel-art or HD-2D style. The default look is smooth.
- Editor preview. The Godot editor shows a static preview of the untouched snow and the field's outline. The preview is not simulated and is never saved into scenes.
- High-quality and low-spec examples. The package includes a minimal integration example (about 15 lines of character script) and a low-spec example for integrated GPUs.
- Standalone demo, tests and benchmark tools. The package includes a playable demo with live toggles, 29 automated checks, and a benchmark script for measuring your own hardware.
Quick Start
- Copy the snow_system folder from the package into your Godot 4 project.
- Add a DeformableSnow node to your 3D scene and set its size in the Inspector.
- Add a SnowDeformer node as a child of your CharacterBody3D. If the body's origin is not at its feet, set the SnowDeformer's Foot Offset.
- Optional: multiply your character's walking speed by the value of get_speed_multiplier(direction), called on the SnowDeformer.
- Press Play and walk into the snow.
The package also includes the QUICK_START.md guide (setup from an empty project, with the full character script), the minimal example in the examples/minimal folder (the same setup, ready to open) and the demo scene.
Compatibility
Tested:
- Godot 4.7.2
- Windows 11
- Forward+ renderer (Vulkan; D3D12 was also used in comparisons)
- NVIDIA GeForce RTX 5070 Laptop GPU
- Intel UHD integrated graphics (Raptor Lake mobile); the low-spec settings are recommended
Not tested:
- Other Godot 4 versions
- Compatibility and Mobile renderers
- macOS, Linux, Android, iOS and Web
- AMD GPUs
The asset is written in GDScript and Godot shaders. It needs no plugins, GDExtensions or external libraries.
Performance
These numbers were measured on one laptop: an Intel Core i9-14900HX CPU, an NVIDIA GeForce RTX 5070 Laptop GPU, and the Intel UHD graphics built into the same CPU. Test conditions: Godot 4.7.2, Forward+ renderer (Vulkan), a 1600 x 900 window, and a character walking a fixed route. Your hardware will differ. Measure it with the included benchmark.
Results for a 40 x 40 m snow field. Each line gives the values with the detail layer on / off.
- Grid spacing 0.30 m: initialisation 0.12 / 0.09 s; CPU 0.10 / 0.04 ms per physics tick; GPU 1.9 / 1.0 ms per frame on the RTX 5070 Laptop, 28.8 / 15.4 ms per frame on the Intel UHD.
- Grid spacing 0.15 m (default): initialisation 0.29 / 0.27 s; CPU 0.34 / 0.09 ms per physics tick; GPU 3.4 / 1.3 ms per frame on the RTX 5070 Laptop, 42.0 / 17.8 ms per frame on the Intel UHD.
- Grid spacing 0.075 m: initialisation 1.0 / 0.97 s; CPU 1.28 / 0.39 ms per physics tick; GPU 6.2 / 2.0 ms per frame on the RTX 5070 Laptop, 68.4 / 24.5 ms per frame on the Intel UHD.
GPU time per frame in the 16 x 16 m example scenes:
- Minimal example (default settings): 24.8 ms on the Intel UHD, 1.45 ms on the RTX 5070 Laptop.
- Low-spec example (detail layer off, trail width 0.7 m): 12.5 ms on the Intel UHD, 0.95 ms on the RTX 5070 Laptop.
The detail layer is the main GPU cost. On integrated GPUs, use the low-spec settings.
Known Limitations
- The snow surface has no general-purpose physics collision. RigidBody3D and other physics objects are not held up by the snow; they rest on the generated ground below it.
- Snow interaction is provided through the SnowDeformer node, mainly for CharacterBody3D. On other Node3D parents it only carves trails.
- Multiple characters have not been fully tested. Several SnowDeformers can carve the same field, but testing covered single-character use.
- The heap of snow pushed ahead of the walker works only for the first registered character.
- One DeformableSnow node covers one finite rectangular area. It is not an infinite-world or streaming system.
- Initialisation can cause a short main-thread hitch. Measured: about 0.3 s for a 40 m field at 0.15 m grid spacing, and about 1 s at 0.075 m. Build snow fields during loading.
- The high-detail layer is expensive on low-end GPUs (see Performance).
- Scaling the snow node is not supported. Use the size and resolution settings instead. Moving the node and rotating it about the Y axis are supported.
- Untested platforms and renderers are not guaranteed to work (see Compatibility).
- It is not a fluid simulation or a full physical snow simulation. Snow volume is not conserved, and there is no melting or snowfall.
- Changing the trail parameters while trails exist also changes how the detail layer draws those trails. Set the trail parameters before play, or call reset_snow() on the DeformableSnow node after changing them.
- Without the detail layer, narrow trails look jagged on diagonal paths. The low-spec example uses a wider trail for this reason.
Package Contents
- snow_system folder: the asset itself. It contains the DeformableSnow node, the SnowDeformer component and four shader files (surface, detail layer, shared look and editor preview).
- demo folder: the playable demo (the project's main scene), with keyboard toggles for the detail layer, terrain, pixel grain, recovery and the trail parameters.
- examples/minimal folder: the smallest working setup, with no demo scripts.
- examples/low_spec folder: lower-cost settings for integrated GPUs.
- tests folder: run_tests.gd (29 automated checks) and benchmark.gd.
- Documentation: README.md, QUICK_START.md, docs/PERFORMANCE.md, CHANGELOG.md, LICENSE.md and AI_DISCLOSURE.md.
The package contains no third-party assets. The witch character in the store images and video comes from the author's own game and is not included in the package. The demo uses a simple capsule character.
License
One purchase licenses one individual or one team. You may use and modify the snow system in any number of your own commercial or non-commercial games and interactive projects. You may share it with authorised collaborators on the same project, and ship it inside your released games. Credit is not required.
You may not resell the snow system, redistribute it on its own or inside other assets, templates or tools, or publish its source code publicly. Projects whose source code is public (for example open-source games) need separate written permission from the author. The full terms are in LICENSE.md, included in the package.
AI Disclosure
This asset was developed with the assistance of generative AI (Anthropic's Claude, used through Claude Code), under the author's direction.
- Code (GDScript and shaders): developed with AI assistance.
- Documentation and this page's text: drafted with AI assistance.
- Package icon (icon.svg): written as SVG code by the AI assistant.
- Snow visuals: generated in real time by the shader code above. The package contains no AI-generated images, textures, 3D models, sounds or fonts.
- Store screenshots, GIFs and video: real renders and recordings from Godot of the scenes described on this page, captured by scripts. They are not images from an image-generation model. Titles and captions were added as text in Godot.
- Witch character (store media only, not in the package): the pixel-art witch from the author's own game was made with the help of generative AI. She appears only in the store images and video; the snow around her is the real-time system described on this page.
More Godot 4 Assets
Working on a Godot 4 game? Check out my other assets!
Cute Pixel Pets - 6 Animated Animals + Follow Pet
Ripple Water 2D – Interactive Water