Webgpu snow physics
Build a single self-contained HTML file that renders a real-time snow simulation in the browser with WebGPU compute (fall back to WebGL2 if WebGPU is missing).
More
1 test · 1 finished runs (1 agent, 0 raw one-shot) · 1 live demo
The prompt
Build a single self-contained HTML file that renders a real-time snow simulation in the browser with WebGPU compute (fall back to WebGL2 if WebGPU is missing). Requirements: at least 200k particles simulated on the GPU; wind field the user can change with the mouse; snow accumulates on a simple terrain heightmap and on two primitive objects (a box and a sphere) so drifts visibly build up over time; a footprint/trail when the user drags across the ground; on-screen FPS and particle count; a reset button. No external assets; CDN imports allowed. Aim for 60 FPS on a laptop GPU. Save the main page as index.html in the current directory (plus any local asset files you create), with no build step. You may serve it locally and open it in headless chromium (/usr/bin/chromium, software WebGL, no GPU, no WebGPU) to screenshot and inspect your own output, and iterate on your own before finishing. Close any browser you open as soon as you've taken your screenshot. Finish with a short README.md describing the controls.
Same prompt, all models: step through 1 runsIn the gallery: one player, arrow keys or swipe.