Cloth and fabric
- ..
- .metadata271 B
- README.md445 B
- bindings.yaml272 B
- shader.wgsl3.6 KB
README.md
cloth_constrain
Cloth constraint pass for the cloth module's GPU simulation. Runs one Jacobi
relaxation iteration over the distance constraints of every cloth particle —
4 structural, 4 shear, and 4 bend springs against grid neighbours — then
projects the corrected position out of the cloth's colliders (ground plane +
spheres). The module dispatches this shader several times per frame,
ping-ponging between the two position buffers.