Terrain · interface
TerrainHeightLayer
Explained in Terrain.
interface TerrainHeightLayerimport type { TerrainHeightLayer } from '@driftengine/terrain';Properties
| Name | Type | Description |
|---|---|---|
graphreadonly | DecodeGraph | |
resourcesreadonly | DecodeResources | |
widthreadonly | number | Samples across x and z, which is also the latent's size in texels. |
depthreadonly | number | |
minMreadonly | number | Metres at the bottom of the encoded range. |
rangeMreadonly | number | Metres the encoded range spans. Zero for a flat field. |
spacingMreadonly | number | Metres between samples, carried so a rebuilt terrain cannot be given a different one. |
originreadonly | Float32Array | World position of sample (0, 0), carried for the same reason. |