Computed Torus Knot
· 1 min

Explore the live demo
The WebAssembly renderer loads only after you choose to run it.
This twisty little torus knot is cooked up entirely on the GPU using a compute shader—no pre-made mesh, just maths fun 🪢✨
Built with Rust, wGPU, and bevy_ecs, it is a tiny experiment in procedural geometry, real-time rendering, and making the GPU do all the knotty work 😄
Press
`(backtick) to open Debug UI to explore the demo.
This project was to understand Compute shaders, and procedurally generating Mesh and Textures using it. It’s a port of 3D Graphics Rendering Cookbook’s torus-knot computed mesh generation section into WebGPU. You can find a few more details on my X (Twitter) handle.