Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

landscape (procRecord)

The landscape record kind: the ground a raster becomes, with every texture it needs read back from the device (the heightfield, the holes mask, the water surface and its shade, one control texture per four surface layers), the surfaces it declares, and the rect it covers. terrain.landscape answers one, held on one element as Terrain = { terrain = <record>, ... }.

Live, a record becomes a .terrainData written in the session's scratch folder, the asset the Terrain component's terrain field stands on; it is removed once nothing stands on it. Saved, it is a .terrainData container with its textures as .texture children inside it, written inside the folder of the asset being exported. terrain.write saves one under the name and folder it is given.

landscape.module is the writer both use: declare states the surfaces a layer list names, and writeLandscape writes the container.