This is a simple exploration of WebGPU applied to visualization of vector fields.
It allows you to control a spaceship and fly in a vector space. When you press the left mouse button new lines are emitted at the crosshair's coordinates and the vector field simulates the movement of those lines.
Entire computation is done on the GPU using compute shaders.
Note: WebGPU is supported only by the latest version of Chrome and Edge.
WASD
- move the spaceshipShift
- move upSpace
- move downMouse
- look around. When pointer is locked, hitESC
to unlock it.
git clone https://github.com/anvaka/vector-space-adventure
cd vector-space-adventure
npm install
npm run dev
Don't hesitate to reach out with any questions either here or on twitter.
If you like this project, consider supporting it. Thank you!
MIT