Mirage Wells: Desert Dunes, Oasis and Ruins Kit
README.md
DesertMaterialsBuild
Authoring-time steps of the desertMaterials package (edit mode only; nothing at runtime calls it). importTile(name, pbrFolder, opts) turns a generated PBR tile into the package's <name>_albedo / _normal / _rm / _mask textures: grades the colour to a target mean, flattens the normal (slip faces) and bakes tiling procedural wind ripples into the normal and terrain-mask height (crest count per tile, asymmetric stoss/lee profile, wandering crests, trough shading, coarse grit on crests). bakeCard(name, picture, opts) keys a leaf or tuft painted on magenta into a fitted, graded, halo-free card with a normal map (tropicalMaterials' CardBaker does the keying). writeMaterials() authors materials/<own>.material from the resolver's real-look recipe, writeTable() regenerates DesertMaterialsTable, bakeTerrainLooks(only?) bakes the painted / toon / lowpoly / pixel albedos of the 14 terrain layers, swatches(opts) / clearSwatches() lay out a temporary swatch board (default at x = 5000), and textureMemory() counts the GPU memory of the package's textures. Build order: textures, then materials, then the table. It finds the package's folder from its own location, so it runs wherever the package is installed.