Basic WebGPU Particles
10,000 particles bouncing around, written as the smallest number of WebGPU steps.
10,000 particles bouncing around, written as the four basic WebGPU steps. The page's own source is meant to be read alongside it.
Related
- Three Houses
One cottage drawn three ways: raw WebGL, raw WebGPU and Three.js, with a shared camera and the code for each shown.
- Pocket Galaxy
Up to 250K stars simulated on your GPU. Press and drag to pull them; every extra finger adds a gravity well.
- GPU Terrarium
Four WebGPU compute simulations in one page: slime mold, reaction diffusion, flow field and galaxy collision.
- Self-Printing Code Block
A code block that contains the code that drew it, with an explanation of the trick.