Hacker News new | ask | show | jobs
Show HN: WebGPU + TypeScript Slime Mold Simulation (github.com)
1 points by SuboptimalEng 530 days ago
I made this slime mold simulation to learn more about WebGPU and compute shaders. It's essentially a recreation of Sebastian Lague's coding adventure on the web with TypeScript.

I've linked a few video demos on the GitHub readme, and there is a playable demo on my website.

Using WebGPU has been great so far. The iteration loop (with Vite.js) is much faster than when working with Unity. This helps with quick prototyping, though Unity's editor scripts allow you to build more interesting user input tools.

I was also surprised by how good the WebGPU error logs were. They helped me debug most of my shader bugs pretty quickly.