Log inGet started
World

Turquoise Cay

README.md

TropicalMaterialsBuild

Authoring-time steps of the tropicalMaterials package, run in edit mode (or with durable writes). They find the package's own folder from where this module sits (ROOT), so they work wherever the package is installed.

importTile(name, generatedFolder, opts) turns a generated PBR tile (a pbr_gen material folder) into the package's <name>_albedo / _normal / _rm (and terrain _mask) textures, graded to a target colour. Its options: clampV for strips that run base to top (the pier post); roughnessRange to remap the generated roughness; glint to make the brightest grains glossy (black sand's glassy specks); heightMean to centre the terrain mask's height; shrink to box-filter chosen maps down by a power of two to stay in the texture budget. regradeTile(name, { target, contrast, maxValue }) re-grades an imported albedo in place, stretching its grain and capping its brightest channel (dry and pink sand keep visible grain in noon sun). writeMaterials() re-authors every shipped material in place (same guids); writeTable() regenerates TropicalMaterialsTable (one literal asset.resolve per material, texture and shader the resolver uses, so everything that calls TropicalMaterials stays publishable); writeCollection() regenerates the materialLibraryKit collection; bakeTerrainLooks(only?) writes the per-look terrain textures for all ten layers or the ones named; swatches(opts) lays out a temporary swatch board to capture; textureMemory() counts the package's texture memory.

Build order matters: textures first, then writeMaterials(), then writeTable() in a separate step (the table resolves the materials literally and fails to reload if one is missing), then writeCollection().