Open-source project
Noniv/snowflow_demo avatar
Noniv/snowflow_demo

Noniv/snowflow_demo: a WebGPU snow rendering demo with no assets

A real-time procedural snow rendering demo built with WebGPU, Babylon.js and hand-written WGSL. Features GPU-generated terrain, snow deformation, procedural characters, cloth, surf wakes, water spells, atmosphere and post-processing—without textures, meshes, HDRIs or animation assets.

629 stars161 forksJavaScriptMIT

At a glance

What is it?
Snowflow generates its terrain, character, cloth and surf wake on the GPU at load time, with no textures, meshes or animation files in the repository. The trick is real, the browser requirement is strict, and the settings overlay is where most of the learning happens.
Who is it for?
Adopt it if you write WGSL or Babylon.js shaders and want a working reference for clipmap terrain, persistent deformation buffers or swept-mesh wakes, and if you have a WebGPU-capable desktop browser to run it in. Skip it if you need a WebGL fallback, a mobile target, or a game to build on: this is a tech demo, not a framework, and the README documents no API surface for reuse.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 120 days ago.
What is it written in?
Mainly JavaScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • Noniv/snowflow_demo629 ★ · +55
Star history
Repository2026-09-172026-11-25
Noniv/snowflow_demo574629

55 Stars in the last 69 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What Snowflow actually is, and who it is written for

Snowflow is a rendering tech demo, not a library. The repository holds an index.html, a src/ directory, a Vite config and a package.json whose only runtime dependencies are @babylonjs/core and @babylonjs/materials. Everything the demo shows is generated on the GPU at load time: the README states plainly that there are no textures, no meshes, no HDRIs and no animation data in the repository. That single constraint is the point of the project.

The audience is narrow and specific. If you write WGSL, or you are trying to understand how a geometry clipmap, a persistent deformation buffer or a swept wake mesh is put together in a real Babylon.js application, the source is the artefact. If you want a snow game, or a drop-in snow material, this is the wrong repository. The README never presents an API, a plugin interface or a documented extension point, and the package name is snowflow with type module, which describes an application, not a published module.

The mechanism: one static mesh, GPU-side placement, and a toroidal state buffer

The terrain is a nested-ring geometry clipmap: 8 rings, 8.5 cm inner spacing, roughly 870 m radius, 333k triangles, drawn as one static mesh in one draw call. Vertices carry only (gridIndex, ringLevel). World placement, CDLOD morphing and displacement all happen in the vertex shader, so there is no CPU rebuild and no per-frame upload. The heightfield is layered gradient noise with analytic derivatives, anisotropic about a single prevailing wind, baked once into a 4096² RG32F texture and mirrored back to the CPU so character grounding samples the same surface that is drawn.

The deformation system is the part worth studying. It is a persistent, additive terrain state buffer: two 2048² RGBA16F targets covering 80 m at 3.9 cm texels, ping-ponged by a single full-screen pass per frame that scrolls, relaxes and splats in one dispatch. Addressing is toroidal, with a texel's UV computed as fract(worldXZ / size), so the window follows the player without copying the buffer, and newly exposed texels are zeroed by the same pass. Channels are depression depth, displaced mass, compression and ice. The README notes that the second channel is what separates a trail with raised berms from a flat footprint decal. Feet, the surf wake and all five spells write through one brush() call into that same buffer, and the displacement is real geometry in the beauty pass and in all three shadow cascades through one shared include.

Shadows are three hand-rolled cascades with world-space PCSS: blocker search, penumbra estimate, rotated Poisson filter, texel-snapped in world space. The README gives a concrete reason Babylon's own cascade generator is not used here: the terrain has no CPU geometry matching what is drawn, so every caster registers the vertex program it is actually rendered with. That is a design constraint other people copying the approach will hit immediately.

Running Snowflow locally: install, dev server, and a first carve

The repository ships no install instructions beyond the package scripts, so the shortest path is the standard Vite flow. From the repository root, install the two Babylon packages and Vite, then start the dev server:

bash
npm install
npm run dev

Vite serves index.html and prints a local URL in the terminal. Open it in a WebGPU-capable desktop browser. The README lists Chrome/Edge 113+, Firefox 141+ and Safari 26+, and states there is no WebGL fallback by design: if navigator.gpu is missing, the page says so and stops. If you see that message, the problem is the browser or the GPU, not the build.

Once the scene loads, click to capture the pointer. Movement is WASD relative to the camera, the mouse looks and the wheel zooms, and Shift sprints. The first thing worth doing is a carve: hold the right mouse button and drag across the field. The README describes the result as a wake thrown up behind the board, with the outside of a turn taking nearly all the snow. Then press F1 or the backtick key.

bash
# no configuration file is required; the overlay is the control surface
# F1 or ` toggles settings and the performance overlay

The overlay exposes every art parameter as a live slider, including sun angle, wind bearing, subsurface radius, deformation depth, tonemap curve and exposure, plus a frame-time graph with median, 95th and 1% low, draw calls, triangles and a per-system CPU breakdown. Each system can be toggled off individually, and there are debug views for normals, depth, cascade coverage, the deformation buffer and the raw shadow map. For a demo whose documentation is a README, that overlay is the real documentation: turning off the deformation system and watching the trail vanish is faster than reading about it.

Where Snowflow stops: no fallback, no mobile, no reusable interface

The hard boundary is WebGPU. The README is explicit that there is no WebGL fallback by design, and that the demo requires a discrete or recent integrated GPU. Anyone evaluating this for production work should read that as a statement about the target audience: desktop, recent hardware, modern browser. A phone or a laptop with an old integrated GPU is not a supported case, and the page will tell the user so rather than degrade.

The second limitation is scope. The README documents controls, systems and internals, but it does not document an API, a package export, a configuration file or a versioning policy. There are no releases in the repository. If you want the deformation buffer in your own project, you are reading src/ and porting it, not importing it. The README also notes that Babylon's own cascade generator cannot be used with this terrain, which means a team adopting the clipmap approach inherits the same shadow workaround.

A third constraint is content. Because there are no animation assets, the character is solved from motion state: an 18-bone skeleton whose bind pose is a table of numbers, geometry lofted at load, feet planted by a distance-driven stance/swing machine, and Verlet cloth on four panels with nine body collision capsules. That is elegant, and it is also a lot of code that exists because the project refuses assets. If your project is fine with an imported rig and a cloth asset, most of this section is not applicable to you.

Snowflow compared with a Babylon.js particle-and-material snow scene

The obvious alternative is what most Babylon.js developers already do: a heightmap or ground mesh, a PBR snow material with a normal map, a particle system for spray, and a decal or render-target trail for footprints. That approach is faster to stand up and works on WebGL, which means it runs on phones and older laptops. Its costs are asset authoring, texture memory, and the fact that a particle wake and a deformation decal are not the same object as the snow surface.

Snowflow takes the opposite position on each of those points. The wake is a swept mesh, not a particle effect: its spine is the path the board has taken, resampled every 30 cm into a 96×3 data texture, and the mesh is a static lattice of (column, row, side) with every vertex placed in the vertex shader. The README states that a 19-metre wake and a 2-metre one cost the same buffer and the same 4.6 KB upload. Peak wall is 2.4 m at a full-speed carve and collapses 0.88 s after it is laid, so wake length is life × speed. Two spray populations come off the same spine, emitted at fractional positions along it.

That is a real difference in kind, not in degree. A particle wake is a visual effect layered over the terrain. Snowflow's wake is geometry derived from the same spine the deformation writes into, and its normals are differenced out of the same wakePoint the geometry uses, so they cannot disagree with it. If your scene can accept a WebGPU-only target, the swept-mesh construction is the more coherent one. If it cannot, nothing here ports cheaply to WebGL.

Maintenance, licence and what upgrading costs you

The last push to the default branch was on 2026-07-28, so the repository is not stale, but it is also not a project with a release cadence: it has no published GitHub releases, and package.json pins the version at 1.0.0. Treat it as a reference implementation that happens to be current, not as a dependency with a support window.

Upgrade cost sits almost entirely in the Babylon.js version. The dependencies are @babylonjs/core ^9.18.0 and @babylonjs/materials ^9.18.0, with Vite ^8.1.5 as the only dev dependency. Because the project hand-rolls its shadow cascades, its terrain placement and its deformation buffer, the surface area exposed to a Babylon upgrade is smaller than in a typical scene, but the shadow path is the exception: it registers the vertex program each caster is actually rendered with, and that is the kind of code a major engine version can break. Pin the Babylon version if you port anything.

The licence is MIT, which is permissive and places few conditions on reuse of the source. This is not legal advice; if you plan to ship code derived from src/, read the LICENSE file in the repository root and take your own advice on attribution.

Editorial conclusion

Adopt it if you write WGSL or Babylon.js shaders and want a working reference for clipmap terrain, persistent deformation buffers or swept-mesh wakes, and if you have a WebGPU-capable desktop browser to run it in. Skip it if you need a WebGL fallback, a mobile target, or a game to build on: this is a tech demo, not a framework, and the README documents no API surface for reuse. Before you spend time on it, open the deployed page and confirm the overlay reports your GPU, then clone the repository and check that npm run dev serves index.html without a WebGPU capability error.

Frequently asked questions

Can Snowflow provide a demo I can look at?

Yes. The README links a deployed build at snowflow-lilac.vercel.app, and the demo runs entirely in the browser with nothing to install. It requires a WebGPU-capable desktop browser and a discrete or recent integrated GPU.

What is Snowflow and what is it used for?

It is a real-time procedural snow rendering tech demo built with WebGPU, Babylon.js and hand-written WGSL. It is used as a reference for techniques such as geometry clipmap terrain, a persistent deformation buffer and swept-mesh surf wakes, rather than as a library you import.

How do I install and run Snowflow locally?

The repository uses Vite, so npm install followed by npm run dev starts the dev server from the repository root. The README does not document any other install path, and there is no configuration file to edit before running it.

Does Snowflow work without WebGPU?

No. The README states there is no WebGL fallback by design, and that if navigator.gpu is missing the page says so and stops. Chrome/Edge 113+, Firefox 141+ and Safari 26+ are the listed browser requirements.

Official sources

  1. Issues
  2. License: MIT
  3. Noniv/snowflow_demo on GitHub
  4. Project website
  5. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/noniv-snowflow-demo.svg)](https://hysenlabs.com/projects/noniv-snowflow-demo)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/noniv-snowflow-demo.svg)](https://hysenlabs.com/projects/noniv-snowflow-demo)

Was this useful?