Class EXT_mesh_gpu_instancing
Implements
- IGLTFExporterExtensionV2
Index
Constructors
constructor
-
Parameters
- exporter: GLTFExporter
Returns EXT_mesh_gpu_instancing
Properties
enabled
enabled: boolean = true
Defines whether this extension is enabled
Readonlyname
name: "EXT_mesh_gpu_instancing" = NAME
Name of this extension
required
required: boolean = false
Defines whether this extension is required
Methods
dispose
-
Returns void
post Export Node Async
-
postExportNodeAsync(
context: string,
node: Nullable<INode>,
babylonNode: Node,
nodeMap: Map<Node, number>,
convertToRightHanded: boolean,
bufferManager: BufferManager,
): Promise<Nullable<INode>>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
- context: string
Specification