Snowline Pass: Alpine Mountains and Pine Forest to Walk, with a Mountain Builder
README.md
ConiferBake
Tool code that bakes the alpineProps conifers (ConiferGen) into .mesh assets under the package's meshes/conifers/ folder and regenerates BakedConifers, the literal index the catalog reads. Run it inside a task when a generator changes:
local Bake = require("alpineProps.ConiferBake")
Bake.bakeKind("spruce") -- every age and variant of one kind (or a dead/odd kind)
Bake.writeIndex() -- regenerate BakedConifers from meshes/conifers_manifest.json
Bake.prune() -- delete meshes the manifest no longer names
Bake.bakeAll() -- everything (about three minutes)
Re-runnable: bakes overwrite the same assets. Paths come from where the package sits, so it also bakes in a world that installed alpineProps under deps/. The manifest records triangle counts and the measured size (radius, height, trunk radius, length) of every kind and age, which the catalog uses for spacing and colliders.