Terrain · interface

TerrainHeightLayer

Explained in Terrain.

interface TerrainHeightLayer
import type { TerrainHeightLayer } from '@driftengine/terrain';

Properties

NameTypeDescription
graphreadonlyDecodeGraph
resourcesreadonlyDecodeResources
widthreadonlynumberSamples across x and z, which is also the latent's size in texels.
depthreadonlynumber
minMreadonlynumberMetres at the bottom of the encoded range.
rangeMreadonlynumberMetres the encoded range spans. Zero for a flat field.
spacingMreadonlynumberMetres between samples, carried so a rebuilt terrain cannot be given a different one.
originreadonlyFloat32ArrayWorld position of sample (0, 0), carried for the same reason.