Physics

Rigid bodies run on Rapier (WASM, CPU). Boids, fluid, cloth and N-body run entirely on the GPU as TSL compute passes — no per-frame readback.

Verlet cloth — wind and mouse drag

Position-based dynamics on a 128 × 128 grid: Verlet integration, then colour-partitioned relaxation of structural, shear and bend constraints so no pass writes a vertex twice. Normals are recomputed on the GPU.

Poster: a terracotta cloth pinned along its top edge, billowing in the wind

Reduced motion is on — showing the poster instead of the live scene.

128 × 128 vertices on TSL compute. Drag the cloth to grab a vertex.