Log inGet started
Package

TreeBake.module

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

README.md

TreeBake

Tool-time bake of every forestProps tree: runs TreeGen for each species x age x variant (and the dead kinds), writes each LOD part as a .mesh under meshes/trees/, records triangle counts in meshes/trees_manifest.json, and regenerates BakedTrees.module: the literal mesh lookup TreeCatalog reads at runtime. Re-runnable: meshes are overwritten in place and stale ones are removed by prune.

Each part is written through Geo.bake, which makes triangle winding agree with the vertex normals (counter-clockwise front faces) and, for every part that is not a foliage card (TreeCatalog.isFoliagePart: only leaf and toon are), sets vertex alpha to 1 so bark, dead wood and soil draw opaque. See the package README's Mesh contract.