DracoCompression

Draco compression (https://google.github.io/draco/)

Hierarchy

  • DracoCompression

Implements

Index

Constructors

constructor

Properties

Static Configuration

The configuration.

Static DecoderAvailable

DecoderAvailable: boolean

Returns true if the decoder is available.

Methods

decodeMeshAsync

  • decodeMeshAsync(data: ArrayBufferView, attributes: object): Promise<VertexData>
  • Decode Draco compressed mesh data to vertex data.

    Parameters

    • data: ArrayBufferView

      The array buffer view for the Draco compression data

    • attributes: object

      A map of attributes from vertex buffer kinds to Draco unique ids

      • [kind: string]: number

    Returns Promise<VertexData>

    A promise that resolves with the decoded vertex data

dispose

  • dispose(): void
  • Stop all async operations and release resources.

    Returns void

Generated using TypeDoc