Implementation of the GLTF 2.0 format exporter.

Hierarchy

  • CoreExporter
    • GltfExporter

Constructors

Methods

Constructors

Methods

  • Converts a hierarchy of entities to GLB format.

    Parameters

    • entity: Entity

      The root of the entity hierarchy to convert.

    • options: {
          maxTextureSize: number;
      } = {}

      Object for passing optional arguments.

      • maxTextureSize: number

        Maximum texture size. Texture is resized if over the size.

    Returns Promise<ArrayBuffer>

    • The GLB file content.