fabricsMaterials.package
This package holds more than this page lists. See all of its files in its world.
README.md
FabricDrape
Real-size UVs for cloth that moves. Fabrics repeat once per UV unit (materialLibraryKit's convention), so a soft cloth needs UVs running metres / tileSize. This module bakes those meshes as assets, so every player resolves the same one: meshes/drapeSheet_<mm> (a 1.6 x 1.6 m sheet, 48 x 48 quads, in the unit XZ square a SoftBody cloth fills) and meshes/cushion_<mm> (a 0.45 x 0.14 x 0.45 m stuffed cushion in the unit box), for tile sizes 64, 72, 96, 100, 120, 128, 200, 250, 300 and 400 mm, all with tangents for the anisotropic fabrics. meshFor(shape, tileSize) names the nearest one; MESHES lists them as literal identities; sheetGeometry, cushionGeometry and bakeMesh make other sizes (tool code).