@babylonjs/loaders
Version:
For usage documentation please visit https://doc.babylonjs.com/features/featuresDeepDive/importers/loadingFileTypes/.
40 lines (39 loc) • 1.35 kB
TypeScript
import type { TransformNode } from "@babylonjs/core/Meshes/transformNode.js";
import type { Nullable } from "@babylonjs/core/types.js";
import { GLTFLoader } from "../glTFLoader";
import type { IGLTFLoaderExtension } from "../glTFLoaderExtension";
import type { INode } from "../glTFLoaderInterfaces";
import "@babylonjs/core/Meshes/thinInstanceMesh.js";
declare module "../../glTFFileLoader" {
interface GLTFLoaderExtensionOptions {
/**
* Defines options for the EXT_mesh_gpu_instancing extension.
*/
["EXT_mesh_gpu_instancing"]: {};
}
}
/**
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_mesh_gpu_instancing/README.md)
* [Playground Sample](https://playground.babylonjs.com/#QFIGLW#9)
*/
export declare class EXT_mesh_gpu_instancing implements IGLTFLoaderExtension {
/**
* The name of this extension.
*/
readonly name = "EXT_mesh_gpu_instancing";
/**
* Defines whether this extension is enabled.
*/
enabled: boolean;
private _loader;
/**
* @internal
*/
constructor(loader: GLTFLoader);
/** @internal */
dispose(): void;
/**
* @internal
*/
loadNodeAsync(context: string, node: INode, assign: (babylonTransformNode: TransformNode) => void): Nullable<Promise<TransformNode>>;
}