Log inGet started
Package

terrainBake.module

README.md

skirmishMapBuilder.terrainBake

Bakes a skirmish map's landscape into a .terrainData asset that skirmishMapBuilder.builder puts under the map: height layers (relief, frame hills round the field, flat pads for the bases, carved basins for water, paths) and material masks (grass, paths, shores, rock), from the map module's TERRAIN table.

Tool code: run it in edit mode after changing a map's ground, for example require("skirmishMapBuilder.terrainBake").bake(require("myMaps.alpineRidge").TERRAIN). The builder only references the baked asset, so nothing bakes while a game runs. Called by map authors (and by Warfront's own map modules when their ground changes); rtsSkirmishKit.maps.terrainBake forwards here.