Skip to content

Show HN: WebGPU + TypeScript Slime Mold Simulation

github.com/SuboptimalEng
1 pointSuboptimalEngdiscuss
On HN

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.

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.