Cloth
A Verlet cloth simulation ported from the three.js WebGPU compute example.
The 31 by 31 particle sheet is held by seven fixed pins and connected by 3,660 structural and shear springs. Two ordered compute passes evaluate spring forces and update vertices at a fixed 360 Hz, including gravity, procedural wind, and collision with a moving sphere.
Credits: Ported from the three.js WebGPU Compute Cloth example (MIT)
Execution
Preview