▣
module · drop-in viewer
kit
The vale's surfaces and its ground — the two things every other `vale` submodule needs.
by·posted 1mo ago
What it does
kit
The vale's surfaces and its ground — the two things every other vale
submodule needs.
Exports
kit.mintMaterials()— mints the fourteen vale materials (ragstone, limestone, lichen, slate, iron, brass, yew, bark, turf, gravel, water, void, distance, rook) fromfilm.PAL. Idempotent.kit.id(name)— the dotted identity of one of them, which is how aModelwears it.kit.has(name)asks whether it has been minted yet.kit.ground(x, z)— the height function. The terrain mesh, the path, the monuments and the yews all sample this one function, so nothing in the vale floats or sinks. Banks rise quadratically either side of the avenue, the floor lifts toward the lodge gate, and there is a crest behind the chapel as well as the far one at 900 m.kit.pathY(z),kit.gutterY(z, t)— the metalled avenue and the water standing in its gutter.kit.qAxis,kit.qYaw,kit.qMul— an entity'srotationis a quaternion table; these are the three constructors the vale needs.
Anchors it honours
kit.ground(0, 0) is 0 (film.PLACES.chapelDoor) and kit.ground(0, 96) is
1.2 (film.PLACES.lodgeGate) exactly — the far shoulder and ridge terms are
held off the vale floor so those two stay true.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.