ConstructorOptions

sealed interface ConstructorOptions(source)

Properties

Link copied to clipboard
abstract var buffer: TypedArray<*, *>

The buffer containing height data.

Link copied to clipboard
abstract var childTileMask: Int?

A bit mask indicating which of this tile's four children exist. If a child's bit is set, geometry will be requested for that tile as well when it is needed. If the bit is cleared, the child tile is not requested and geometry is instead upsampled from the parent. Default value - 15

Link copied to clipboard

True if this instance was created by upsampling another instance; otherwise, false. Default value - false

Link copied to clipboard

The encoding that is used on the buffer. Default value - HeightmapEncoding.NONE

Link copied to clipboard
abstract var height: Double

The height (latitude direction) of the heightmap, in samples.

Link copied to clipboard

An object describing the structure of the height data.

Link copied to clipboard
abstract var waterMask: Uint8Array?

The water mask included in this terrain data, if any. A water mask is a square Uint8Array or image where a value of 255 indicates water and a value of 0 indicates land. Values in between 0 and 255 are allowed as well to smoothly blend between land and water.

Link copied to clipboard
abstract var width: Double

The width (longitude direction) of the heightmap, in samples.