cloth_vertices.computeShader
- .metadata229 B
- README.md474 B
- bindings.yaml275 B
- shader.wgsl3.5 KB
README.md
cloth_vertices
Cloth vertex-write pass for the cloth module's GPU simulation. Reads one
cloth's simulated particle grid and writes the mesh's GPU vertex buffer in the
engine Vertex layout (23 u32 per vertex): particle positions, smooth normals
from central differences, grid UVs, and a procedural per-vertex fabric pattern
colour (solid / bands / checker / gradient / border). Dispatched once per
cloth per frame with that cloth's own vertex buffer bound positionally.