The objective of this project is to replicate a "slime simulation" similar to the one demonstrated in the coding adventure's video using taichi.js for parallelizing computations on the GPU. This project was meticulously crafted on a GTX 1080ti, but fear not if your GPU boasts different specifications. Adjust the simulation size, the number of tracers, and the update frequency per frame to your hardware.
Ensure your browser supports WebGPU API. Powered by taichi.js
- Clone the repository.
- Run
pnpm run install
to set the stage for your adventure.
pnpm run dev
- open http://localhost:5173/