fabricsMaterials.package
This package holds more than this page lists. See all of its files in its world.
README.md
FabricRecipes
One procedural recipe per fabric, and the bake that writes its maps. bake(id) runs the recipe, matches the albedo's mean to the fabric's reference picture (times REFERENCE_GAIN, since a photograph already holds studio light), rolls the periodic maps so the texture edge falls on the calmest column and row, and saves textures/<id>_albedo (sRGB), <id>_normal (green-up) and <id>_rm (R = occlusion, G = roughness, B = metallic 0) at the catalog's sizes. bakeAll() bakes all 25 and rebuilds the collection (about a minute). Colour carries no light: gaps and pits darken through the occlusion channel and the normal map. Tool code.