Log inGet started
World

Snowline Pass: Alpine Mountains and Pine Forest to Walk, with a Mountain Builder

README.md

StructureBake

Tool code that bakes the huts and trail props StructureGen describes into .mesh assets under meshes/structures and regenerates the BakedStructures index. Run it in edit mode when a structure's geometry changes; games never call it.

local Bake = require("alpineProps.StructureBake")
Bake.bakeKind("logWallSection")  -- every variant x LOD x material of one kind
Bake.writeIndex()                -- rewrite BakedStructures from the manifest
Bake.prune()                     -- delete meshes the manifest no longer names

Bake.bakeAll() bakes every kind then writes the index; it is heavy (hundreds of mesh writes), so prefer one kind per call. Mesh names are <kind>_v<variant>_lod<lod>_<materialKey>. Re-runnable: a bake overwrites the same assets. Paths come from where the package sits, so it bakes the same installed under deps/.