Decoder for Mapbox Terrain images.

Hierarchy (view full)

Constructors

Properties

dataType: TextureDataType
flipY: boolean
isImageFormat: boolean = true
isMapboxTerrainFormat: boolean = true
type: string

Methods

  • Decode a Mapbox Terrain blob into a DataTexture containing the elevation data.

    Parameters

    • blob: Blob

      the data to decode

    • Optional options: DecodeOptions

      the decoding options

    Returns Promise<{
        max: number;
        min: number;
        texture: Texture | DataTexture;
    }>