Showcase · Systems
MLS-MPM
A continuum physics simulation — the Moving Least Squares Material Point Method — running entirely in WGSL compute shaders on WebGPU. Tens of thousands of particles for snow, sand, and elastic bodies, with the whole solver on the GPU. The hard part is the particle-to-grid scatter: many particles write to the same grid node, so mass and momentum are accumulated with atomics — in fixed-point, since WGSL atomics are integer-only — and kept stable at interactive rates. Drag to push the material.
View source on GitHubNeeds a browser and GPU with WebGPU (recent Chrome/Edge, or a Chromium-based browser with a working GPU driver). The solver is compute shaders end to end — there is no CPU fallback by design; without WebGPU the app shows a notice.