Snowline Pass: Alpine Mountains and Pine Forest to Walk, with a Mountain Builder
README.md
AlpineBaker
The texture baker behind alpineMaterials. It is tool code, run from a task, a test or an execute call, never from a component. It turns a generated source picture into game-ready maps:
- tile: the picture is made to tile with no seam, de-lit and brought to a measured mean albedo. Height is read off its luminance at two scales and spread over the surface's real relief in metres, and the normal map (green up) and cavity AO are drawn from that height. Terrain gets the engine's terrain mask (R metallic, G AO, B height, A smoothness); solids get an ORM (R AO, G roughness, B metallic, with rust kept non-metal). An optional trough tint gives snow its blue hollows.
- card: a plant generated on a flat magenta or cyan screen is keyed into alpha. Edge colour is un-mixed from the screen, spill is removed and coverage boosted so thin needles survive the cut, then transparent texels are filled with the nearby foliage colour so mips never halo. A soft normal is added.
- atlas: several keyed plants are packed into a cols × rows sheet (row 0 is the top row).
- recolour / saveSeason: green texels are mapped onto a seasonal palette ramp (spring, autumn gold, winter straw), leaving twigs and flowers alone.
It uses groundMaterials' GroundBaker (Terra Firma) for the periodic field toolkit. AlpineBaker.paths() finds the package wherever it is installed. Bake inputs are read from <world source>/local/alpineSources/.