fabricsMaterials.testSuite
README.md
fabricsMaterials tests
A quick suite (about a minute) that checks the collection through materialLibraryKit's own API and checks:
- all 25 fabrics are listed, fully tagged (category, kind, style, tile size, roughness and metal ranges, texture cost, not animated, two-sided, search words) and found by the library's filters;
Checks.budgetpasses for all 25 (web limits), eachtextureKBmatches the measured memory, and the collection stays under 40 MB;- physical values (metallic 0, smooth satin and silk with the anisotropic lobe, sheen on velvet, suede, satin, silk and toon velvet, fibre highlights on fur, two-sided materials) and green-up normals proved on a synthetic bump;
Checks.seamsandChecks.shimmeron denim, velvet, faux fur and toon velvet, one per shader path (the full 25-fabric sweep is in the package README);- apply, swap and clear by name;
FabricClothswapping a sheet's and a cushion's mesh to the fabric's tile size; - reference pictures and boards, the picker listing all 25, and all 25 on one gallery ring;
- the README in step with the package version and listing every fabric.
Each test runs inside Sync.isolate(), so nothing it does reaches other players. It leaves alone the library's own behaviour (its suites test that) and two-player sync, which one engine cannot drive (gh#19114). Run it with asset.resolve("fabricsMaterials.tests.fabricsMaterials", "testSuite"):run().