TerrainInit
Everything a Terrain is rebuilt from, as plain data a worker can receive (postMessage structured-clones it; transfer heights.buffer to skip the copy). From terrainInit; rebuild with generateTerrain(init.params, init.seed, { heights: init.heights }).
Defined in: index.ts:120
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
heights | Int16Array | The ground heights, edits (levelled pads) included. | index.ts:126 |
params | TerrainParams | Complete params, defaults filled in (the terrain's params). | index.ts:122 |
seed | number | The seed the terrain was made with. | index.ts:124 |