Log inGet started
Package

GroundBake.module

This package holds more than this page lists. See all of its files in its world.

README.md

GroundBake

The re-runnable bake script for forestProps' ground props. Bake.run() builds every ground kind with GroundGen (every variant, geometry form and LOD), writes each draw as a .mesh under meshes/ground/<kind>/ (named <kind>[_<form>]_v<variant>_l<lod>_<part>), deletes meshes a kind no longer produces, and regenerates BakedGround.module: the bake manifest (triangles per part) plus one literal asset.resolve per baked mesh, which is all GroundCatalog reads at runtime. Bake.run({ kinds = { "boulder" } }) re-bakes a subset. Run it inside a task (it waits a frame between kinds); package authors call it after changing a generator, players never do.

Every part goes through Bake.finish(kind, part, mesh) before it is written: triangle winding is made to agree with the vertex normals (counter-clockwise front faces), parts that are not foliage cards get vertex alpha 1 (GroundCatalog.isFoliage), and parts whose surface has a forestMaterials ATLAS cell get their UVs remapped into it. The remap is not idempotent, so it runs once, on freshly generated geometry. See the package README's Mesh contract.