Snowline Pass: Alpine Mountains and Pine Forest to Walk, with a Mountain Builder
README.md
StructureGen
Procedural geometry for the alpine huts and trail props: one builder per kind writes a Geometry per material key for a given variant and level of detail. StructureBake bakes its output, StructureCatalog registers it and Cabin lays it out using SG.DIM. Games do not call it at runtime except through the catalog's fallback for an unbaked part.
local SG = require("alpineProps.StructureGen")
local geos = SG.build("logWallSection", 1, 0) -- { [materialKey] = Geometry }
local boxes = SG.colliders("lookout", 1)
- Material keys map to alpineMaterials surfaces through
SG.SURFACE: logWall, woodShingles, roughTimber, stoneWall, slateRoof, ironWrought, lichenGranite, deadwoodSilver, mountainLake,paint(roughTimber with vertex colours for trail paint) andsnow(snowLoad, only drawn with snow). SG.ORDERlists every kind;SG.KINDS[kind].entryits catalog entry.- Units are metres, +Y up; wall parts run along local X with the outside at +Z and the base at y = 0, sized on the 0.5 m grid in
SG.DIM.