|
@@ -34,22 +34,16 @@ declare module "babylonjs-loaders/glTF/glTFFileLoader" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
|
import { Camera } from "babylonjs/Cameras/camera";
|
|
|
- import { AnimationGroup } from "babylonjs/Animations/animationGroup";
|
|
|
- import { Skeleton } from "babylonjs/Bones/skeleton";
|
|
|
- import { IParticleSystem } from "babylonjs/Particles/IParticleSystem";
|
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
|
import { Material } from "babylonjs/Materials/material";
|
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
- import { ISceneLoaderPluginFactory, ISceneLoaderPlugin, ISceneLoaderPluginAsync, ISceneLoaderProgressEvent, ISceneLoaderPluginExtensions } from "babylonjs/Loading/sceneLoader";
|
|
|
+ import { ISceneLoaderPluginFactory, ISceneLoaderPlugin, ISceneLoaderPluginAsync, ISceneLoaderProgressEvent, ISceneLoaderPluginExtensions, ISceneLoaderAsyncResult } from "babylonjs/Loading/sceneLoader";
|
|
|
import { AssetContainer } from "babylonjs/assetContainer";
|
|
|
import { Scene, IDisposable } from "babylonjs/scene";
|
|
|
import { WebRequest } from "babylonjs/Misc/webRequest";
|
|
|
import { IFileRequest } from "babylonjs/Misc/fileRequest";
|
|
|
import { IDataBuffer } from 'babylonjs/Misc/dataReader';
|
|
|
- import { Light } from 'babylonjs/Lights/light';
|
|
|
- import { TransformNode } from 'babylonjs/Meshes/transformNode';
|
|
|
import { RequestFileError } from 'babylonjs/Misc/fileTools';
|
|
|
- import { Geometry } from 'babylonjs/Meshes/geometry';
|
|
|
/**
|
|
|
* Mode that determines the coordinate system to use.
|
|
|
*/
|
|
@@ -129,19 +123,9 @@ declare module "babylonjs-loaders/glTF/glTFFileLoader" {
|
|
|
COMPLETE = 2
|
|
|
}
|
|
|
/** @hidden */
|
|
|
- export interface IImportMeshAsyncOutput {
|
|
|
- meshes: AbstractMesh[];
|
|
|
- geometries: Geometry[];
|
|
|
- particleSystems: IParticleSystem[];
|
|
|
- skeletons: Skeleton[];
|
|
|
- animationGroups: AnimationGroup[];
|
|
|
- lights: Light[];
|
|
|
- transformNodes: TransformNode[];
|
|
|
- }
|
|
|
- /** @hidden */
|
|
|
export interface IGLTFLoader extends IDisposable {
|
|
|
readonly state: Nullable<GLTFLoaderState>;
|
|
|
- importMeshAsync: (meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<IImportMeshAsyncOutput>;
|
|
|
+ importMeshAsync: (meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<ISceneLoaderAsyncResult>;
|
|
|
loadAsync: (scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<void>;
|
|
|
}
|
|
|
/**
|
|
@@ -343,12 +327,7 @@ declare module "babylonjs-loaders/glTF/glTFFileLoader" {
|
|
|
/** @hidden */
|
|
|
readFile(scene: Scene, file: File, onSuccess: (data: any) => void, onProgress?: (ev: ISceneLoaderProgressEvent) => any, useArrayBuffer?: boolean, onError?: (error: any) => void): IFileRequest;
|
|
|
/** @hidden */
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<{
|
|
|
- meshes: AbstractMesh[];
|
|
|
- particleSystems: IParticleSystem[];
|
|
|
- skeletons: Skeleton[];
|
|
|
- animationGroups: AnimationGroup[];
|
|
|
- }>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
|
|
/** @hidden */
|
|
|
loadAsync(scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
|
|
|
/** @hidden */
|
|
@@ -891,9 +870,9 @@ declare module "babylonjs-loaders/glTF/1.0/glTFLoader" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { Material } from "babylonjs/Materials/material";
|
|
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
|
- import { ISceneLoaderProgressEvent } from "babylonjs/Loading/sceneLoader";
|
|
|
+ import { ISceneLoaderAsyncResult, ISceneLoaderProgressEvent } from "babylonjs/Loading/sceneLoader";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
- import { IGLTFLoader, GLTFLoaderState, IGLTFLoaderData, IImportMeshAsyncOutput } from "babylonjs-loaders/glTF/glTFFileLoader";
|
|
|
+ import { IGLTFLoader, GLTFLoaderState, IGLTFLoaderData } from "babylonjs-loaders/glTF/glTFFileLoader";
|
|
|
/**
|
|
|
* Implementation of the base glTF spec
|
|
|
* @hidden
|
|
@@ -928,7 +907,7 @@ declare module "babylonjs-loaders/glTF/1.0/glTFLoader" {
|
|
|
* @param onProgress event that fires when loading progress has occured
|
|
|
* @returns a promise containg the loaded meshes, particles, skeletons and animations
|
|
|
*/
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void): Promise<IImportMeshAsyncOutput>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void): Promise<ISceneLoaderAsyncResult>;
|
|
|
private _loadAsync;
|
|
|
/**
|
|
|
* Imports all objects from a loaded gltf file and adds them to the scene
|
|
@@ -1403,12 +1382,12 @@ declare module "babylonjs-loaders/glTF/2.0/glTFLoader" {
|
|
|
import { TransformNode } from "babylonjs/Meshes/transformNode";
|
|
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
import { Mesh } from "babylonjs/Meshes/mesh";
|
|
|
- import { ISceneLoaderProgressEvent } from "babylonjs/Loading/sceneLoader";
|
|
|
+ import { ISceneLoaderAsyncResult, ISceneLoaderProgressEvent } from "babylonjs/Loading/sceneLoader";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
import { IProperty } from "babylonjs-gltf2interface";
|
|
|
import { IGLTF, ISampler, INode, IScene, IMesh, IAccessor, ICamera, IAnimation, IAnimationChannel, IBufferView, IMaterial, ITextureInfo, ITexture, IImage, IMeshPrimitive, IArrayItem as IArrItem } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
|
|
|
import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
|
|
|
- import { IGLTFLoader, GLTFFileLoader, GLTFLoaderState, IGLTFLoaderData, IImportMeshAsyncOutput } from "babylonjs-loaders/glTF/glTFFileLoader";
|
|
|
+ import { IGLTFLoader, GLTFFileLoader, GLTFLoaderState, IGLTFLoaderData } from "babylonjs-loaders/glTF/glTFFileLoader";
|
|
|
import { IAnimatable } from 'babylonjs/Animations/animatable.interface';
|
|
|
import { IDataBuffer } from 'babylonjs/Misc/dataReader';
|
|
|
import { Light } from 'babylonjs/Lights/light';
|
|
@@ -1500,7 +1479,7 @@ declare module "babylonjs-loaders/glTF/2.0/glTFLoader" {
|
|
|
/** @hidden */
|
|
|
dispose(): void;
|
|
|
/** @hidden */
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<IImportMeshAsyncOutput>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
|
|
/** @hidden */
|
|
|
loadAsync(scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
|
|
|
private _loadAsync;
|
|
@@ -2214,6 +2193,39 @@ declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_transmission
|
|
|
private _loadTransparentPropertiesAsync;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_translucency" {
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
+ import { Material } from "babylonjs/Materials/material";
|
|
|
+ import { IMaterial } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
|
|
|
+ import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
|
|
|
+ import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
|
|
|
+ /**
|
|
|
+ * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1825)
|
|
|
+ * !!! Experimental Extension Subject to Changes !!!
|
|
|
+ */
|
|
|
+ export class KHR_materials_translucency implements IGLTFLoaderExtension {
|
|
|
+ /**
|
|
|
+ * The name of this extension.
|
|
|
+ */
|
|
|
+ readonly name: string;
|
|
|
+ /**
|
|
|
+ * Defines whether this extension is enabled.
|
|
|
+ */
|
|
|
+ enabled: boolean;
|
|
|
+ /**
|
|
|
+ * Defines a number that determines the order the extensions are applied.
|
|
|
+ */
|
|
|
+ order: number;
|
|
|
+ private _loader;
|
|
|
+ /** @hidden */
|
|
|
+ constructor(loader: GLTFLoader);
|
|
|
+ /** @hidden */
|
|
|
+ dispose(): void;
|
|
|
+ /** @hidden */
|
|
|
+ loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
|
|
|
+ private _loadTranslucentPropertiesAsync;
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_mesh_quantization" {
|
|
|
import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
|
|
|
import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
|
|
@@ -2286,37 +2298,6 @@ declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_texture_transform" {
|
|
|
loadTextureInfoAsync(context: string, textureInfo: ITextureInfo, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
|
|
|
}
|
|
|
}
|
|
|
-declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_xmp" {
|
|
|
- import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
|
|
|
- import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
|
|
|
- /**
|
|
|
- * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1553)
|
|
|
- * !!! Experimental Extension Subject to Changes !!!
|
|
|
- */
|
|
|
- export class KHR_xmp implements IGLTFLoaderExtension {
|
|
|
- /**
|
|
|
- * The name of this extension.
|
|
|
- */
|
|
|
- readonly name: string;
|
|
|
- /**
|
|
|
- * Defines whether this extension is enabled.
|
|
|
- */
|
|
|
- enabled: boolean;
|
|
|
- /**
|
|
|
- * Defines a number that determines the order the extensions are applied.
|
|
|
- */
|
|
|
- order: number;
|
|
|
- private _loader;
|
|
|
- /** @hidden */
|
|
|
- constructor(loader: GLTFLoader);
|
|
|
- /** @hidden */
|
|
|
- dispose(): void;
|
|
|
- /**
|
|
|
- * Called after the loader state changes to LOADING.
|
|
|
- */
|
|
|
- onLoading(): void;
|
|
|
- }
|
|
|
-}
|
|
|
declare module "babylonjs-loaders/glTF/2.0/Extensions/MSFT_audio_emitter" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
|
import { AnimationGroup } from "babylonjs/Animations/animationGroup";
|
|
@@ -2514,10 +2495,10 @@ declare module "babylonjs-loaders/glTF/2.0/Extensions/index" {
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_ior";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_variants";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_transmission";
|
|
|
+ export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_translucency";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_mesh_quantization";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_texture_basisu";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_texture_transform";
|
|
|
- export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_xmp";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/MSFT_audio_emitter";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/MSFT_lod";
|
|
|
export * from "babylonjs-loaders/glTF/2.0/Extensions/MSFT_minecraftMesh";
|
|
@@ -2579,11 +2560,7 @@ declare module "babylonjs-loaders/OBJ/mtlFileLoader" {
|
|
|
}
|
|
|
declare module "babylonjs-loaders/OBJ/objFileLoader" {
|
|
|
import { Vector2 } from "babylonjs/Maths/math.vector";
|
|
|
- import { AnimationGroup } from "babylonjs/Animations/animationGroup";
|
|
|
- import { Skeleton } from "babylonjs/Bones/skeleton";
|
|
|
- import { IParticleSystem } from "babylonjs/Particles/IParticleSystem";
|
|
|
- import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
|
- import { ISceneLoaderPluginAsync, ISceneLoaderProgressEvent, ISceneLoaderPluginFactory, ISceneLoaderPlugin } from "babylonjs/Loading/sceneLoader";
|
|
|
+ import { ISceneLoaderPluginAsync, ISceneLoaderProgressEvent, ISceneLoaderPluginFactory, ISceneLoaderPlugin, ISceneLoaderAsyncResult } from "babylonjs/Loading/sceneLoader";
|
|
|
import { AssetContainer } from "babylonjs/assetContainer";
|
|
|
import { Scene } from "babylonjs/scene";
|
|
|
/**
|
|
@@ -2740,12 +2717,7 @@ declare module "babylonjs-loaders/OBJ/objFileLoader" {
|
|
|
* @param fileName Defines the name of the file to load
|
|
|
* @returns a promise containg the loaded meshes, particles, skeletons and animations
|
|
|
*/
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<{
|
|
|
- meshes: AbstractMesh[];
|
|
|
- particleSystems: IParticleSystem[];
|
|
|
- skeletons: Skeleton[];
|
|
|
- animationGroups: AnimationGroup[];
|
|
|
- }>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
|
|
/**
|
|
|
* Imports all objects from the loaded OBJ data and adds them to the scene
|
|
|
* @param scene the scene the objects should be added to
|
|
@@ -3012,19 +2984,9 @@ declare module BABYLON {
|
|
|
COMPLETE = 2
|
|
|
}
|
|
|
/** @hidden */
|
|
|
- export interface IImportMeshAsyncOutput {
|
|
|
- meshes: AbstractMesh[];
|
|
|
- geometries: Geometry[];
|
|
|
- particleSystems: IParticleSystem[];
|
|
|
- skeletons: Skeleton[];
|
|
|
- animationGroups: AnimationGroup[];
|
|
|
- lights: Light[];
|
|
|
- transformNodes: TransformNode[];
|
|
|
- }
|
|
|
- /** @hidden */
|
|
|
export interface IGLTFLoader extends IDisposable {
|
|
|
readonly state: Nullable<GLTFLoaderState>;
|
|
|
- importMeshAsync: (meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<IImportMeshAsyncOutput>;
|
|
|
+ importMeshAsync: (meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<ISceneLoaderAsyncResult>;
|
|
|
loadAsync: (scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<void>;
|
|
|
}
|
|
|
/**
|
|
@@ -3226,12 +3188,7 @@ declare module BABYLON {
|
|
|
/** @hidden */
|
|
|
readFile(scene: Scene, file: File, onSuccess: (data: any) => void, onProgress?: (ev: ISceneLoaderProgressEvent) => any, useArrayBuffer?: boolean, onError?: (error: any) => void): IFileRequest;
|
|
|
/** @hidden */
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<{
|
|
|
- meshes: AbstractMesh[];
|
|
|
- particleSystems: IParticleSystem[];
|
|
|
- skeletons: Skeleton[];
|
|
|
- animationGroups: AnimationGroup[];
|
|
|
- }>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
|
|
/** @hidden */
|
|
|
loadAsync(scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
|
|
|
/** @hidden */
|
|
@@ -3794,7 +3751,7 @@ declare module BABYLON.GLTF1 {
|
|
|
* @param onProgress event that fires when loading progress has occured
|
|
|
* @returns a promise containg the loaded meshes, particles, skeletons and animations
|
|
|
*/
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void): Promise<IImportMeshAsyncOutput>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void): Promise<ISceneLoaderAsyncResult>;
|
|
|
private _loadAsync;
|
|
|
/**
|
|
|
* Imports all objects from a loaded gltf file and adds them to the scene
|
|
@@ -4313,7 +4270,7 @@ declare module BABYLON.GLTF2 {
|
|
|
/** @hidden */
|
|
|
dispose(): void;
|
|
|
/** @hidden */
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<IImportMeshAsyncOutput>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, forAssetContainer: boolean, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
|
|
/** @hidden */
|
|
|
loadAsync(scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
|
|
|
private _loadAsync;
|
|
@@ -4959,6 +4916,34 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
}
|
|
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
/**
|
|
|
+ * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1825)
|
|
|
+ * !!! Experimental Extension Subject to Changes !!!
|
|
|
+ */
|
|
|
+ export class KHR_materials_translucency implements IGLTFLoaderExtension {
|
|
|
+ /**
|
|
|
+ * The name of this extension.
|
|
|
+ */
|
|
|
+ readonly name: string;
|
|
|
+ /**
|
|
|
+ * Defines whether this extension is enabled.
|
|
|
+ */
|
|
|
+ enabled: boolean;
|
|
|
+ /**
|
|
|
+ * Defines a number that determines the order the extensions are applied.
|
|
|
+ */
|
|
|
+ order: number;
|
|
|
+ private _loader;
|
|
|
+ /** @hidden */
|
|
|
+ constructor(loader: GLTFLoader);
|
|
|
+ /** @hidden */
|
|
|
+ dispose(): void;
|
|
|
+ /** @hidden */
|
|
|
+ loadMaterialPropertiesAsync(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
|
|
|
+ private _loadTranslucentPropertiesAsync;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
+ /**
|
|
|
* [Specification](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization)
|
|
|
*/
|
|
|
export class KHR_mesh_quantization implements IGLTFLoaderExtension {
|
|
@@ -5019,35 +5004,6 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
}
|
|
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
/**
|
|
|
- * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1553)
|
|
|
- * !!! Experimental Extension Subject to Changes !!!
|
|
|
- */
|
|
|
- export class KHR_xmp implements IGLTFLoaderExtension {
|
|
|
- /**
|
|
|
- * The name of this extension.
|
|
|
- */
|
|
|
- readonly name: string;
|
|
|
- /**
|
|
|
- * Defines whether this extension is enabled.
|
|
|
- */
|
|
|
- enabled: boolean;
|
|
|
- /**
|
|
|
- * Defines a number that determines the order the extensions are applied.
|
|
|
- */
|
|
|
- order: number;
|
|
|
- private _loader;
|
|
|
- /** @hidden */
|
|
|
- constructor(loader: GLTFLoader);
|
|
|
- /** @hidden */
|
|
|
- dispose(): void;
|
|
|
- /**
|
|
|
- * Called after the loader state changes to LOADING.
|
|
|
- */
|
|
|
- onLoading(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
- /**
|
|
|
* [Specification](https://github.com/najadojo/glTF/tree/MSFT_audio_emitter/extensions/2.0/Vendor/MSFT_audio_emitter)
|
|
|
*/
|
|
|
export class MSFT_audio_emitter implements IGLTFLoaderExtension {
|
|
@@ -5390,12 +5346,7 @@ declare module BABYLON {
|
|
|
* @param fileName Defines the name of the file to load
|
|
|
* @returns a promise containg the loaded meshes, particles, skeletons and animations
|
|
|
*/
|
|
|
- importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<{
|
|
|
- meshes: AbstractMesh[];
|
|
|
- particleSystems: IParticleSystem[];
|
|
|
- skeletons: Skeleton[];
|
|
|
- animationGroups: AnimationGroup[];
|
|
|
- }>;
|
|
|
+ importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
|
|
/**
|
|
|
* Imports all objects from the loaded OBJ data and adds them to the scene
|
|
|
* @param scene the scene the objects should be added to
|