API

Class EXT_mesh_gpu_instancing

Implements

  • IGLTFExporterExtensionV2
Index
enabled: boolean = true

Defines whether this extension is enabled

name: "EXT_mesh_gpu_instancing" = NAME

Name of this extension

required: boolean = false

Defines whether this extension is required

  • After node is exported

    Parameters

    • context: string

      the GLTF context when loading the asset

    • node: Nullable<INode>

      the node exported

    • babylonNode: Node

      the corresponding babylon node

    • nodeMap: Map<Node, number>

      map from babylon node id to node index

    • convertToRightHanded: boolean

      true if we need to convert data from left hand to right hand system.

    • bufferManager: BufferManager

      buffer manager

    Returns Promise<Nullable<INode>>

    nullable promise, resolves with the node