WebGPU Boids Tutorial Code
Live Demo
Requires Chrome 113+ or Firefox 114.
Tutorial Slides
Updated April 2023 (compatible with shipping version of Chrome).
Talk Recording (with outdated slides)
Details
The interesting file in this repository is boids.ts. The rest is setup and configuration.
The boids.js
file is the compiler-generated output of boids.ts
.
For a live development server that keeps boids.js
up-to-date and live-reloads
the webpage, first npm install
then run npm start
.