@babylonjs/loaders 7.10.1 → 7.10.3
Sign up to get free protection for your applications and to get access to all the features.
package/glTF/2.0/glTFLoader.d.ts
CHANGED
@@ -53,7 +53,7 @@ export declare class ArrayItem {
|
|
53
53
|
/** @internal */
|
54
54
|
export interface IAnimationTargetInfo {
|
55
55
|
/** @internal */
|
56
|
-
target:
|
56
|
+
target: unknown;
|
57
57
|
/** @internal */
|
58
58
|
properties: Array<AnimationPropertyInfo>;
|
59
59
|
}
|
@@ -62,7 +62,7 @@ export interface IAnimationTargetInfo {
|
|
62
62
|
*/
|
63
63
|
export declare class GLTFLoader implements IGLTFLoader {
|
64
64
|
/** @internal */
|
65
|
-
readonly _completePromises: Promise<
|
65
|
+
readonly _completePromises: Promise<unknown>[];
|
66
66
|
/** @internal */
|
67
67
|
_assetContainer: Nullable<AssetContainer>;
|
68
68
|
/** Storage */
|
@@ -133,7 +133,7 @@ export declare class GLTFLoader implements IGLTFLoader {
|
|
133
133
|
/**
|
134
134
|
* @internal
|
135
135
|
*/
|
136
|
-
importMeshAsync(meshesNames:
|
136
|
+
importMeshAsync(meshesNames: string | readonly string[] | null | undefined, scene: Scene, container: Nullable<AssetContainer>, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
137
137
|
/**
|
138
138
|
* @internal
|
139
139
|
*/
|
@@ -316,7 +316,7 @@ export declare class GLTFLoader implements IGLTFLoader {
|
|
316
316
|
/**
|
317
317
|
* @internal
|
318
318
|
*/
|
319
|
-
_createTextureAsync(context: string, sampler: ISampler, image: IImage, assign?: (babylonTexture: BaseTexture) => void, textureLoaderOptions?:
|
319
|
+
_createTextureAsync(context: string, sampler: ISampler, image: IImage, assign?: (babylonTexture: BaseTexture) => void, textureLoaderOptions?: unknown, useSRGBBuffer?: boolean): Promise<BaseTexture>;
|
320
320
|
private _loadSampler;
|
321
321
|
/**
|
322
322
|
* Loads a glTF image.
|
@@ -379,7 +379,7 @@ export declare class GLTFLoader implements IGLTFLoader {
|
|
379
379
|
* @param actionAsync The action to run
|
380
380
|
* @returns The promise returned by actionAsync or null if the extension does not exist
|
381
381
|
*/
|
382
|
-
static LoadExtensionAsync<TExtension =
|
382
|
+
static LoadExtensionAsync<TExtension = unknown, TResult = void>(context: string, property: IProperty, extensionName: string, actionAsync: (extensionContext: string, extension: TExtension) => Nullable<Promise<TResult>>): Nullable<Promise<TResult>>;
|
383
383
|
/**
|
384
384
|
* Helper method called by a loader extension to load a glTF extra.
|
385
385
|
* @param context The context when loading the asset
|
@@ -388,7 +388,7 @@ export declare class GLTFLoader implements IGLTFLoader {
|
|
388
388
|
* @param actionAsync The action to run
|
389
389
|
* @returns The promise returned by actionAsync or null if the extra does not exist
|
390
390
|
*/
|
391
|
-
static LoadExtraAsync<TExtra =
|
391
|
+
static LoadExtraAsync<TExtra = unknown, TResult = void>(context: string, property: IProperty, extensionName: string, actionAsync: (extraContext: string, extra: TExtra) => Nullable<Promise<TResult>>): Nullable<Promise<TResult>>;
|
392
392
|
/**
|
393
393
|
* Checks for presence of an extension.
|
394
394
|
* @param name The name of the extension to check
|
package/glTF/2.0/glTFLoader.js
CHANGED
@@ -753,7 +753,7 @@ export class GLTFLoader {
|
|
753
753
|
const babylonMesh = new Mesh(name, this._babylonScene);
|
754
754
|
babylonMesh._parentContainer = this._assetContainer;
|
755
755
|
this._babylonScene._blockEntityCollection = false;
|
756
|
-
babylonMesh.
|
756
|
+
babylonMesh.sideOrientation = this._babylonScene.useRightHandedSystem ? Material.CounterClockWiseSideOrientation : Material.ClockWiseSideOrientation;
|
757
757
|
this._createMorphTargets(context, node, mesh, primitive, babylonMesh);
|
758
758
|
promises.push(this._loadVertexDataAsync(context, primitive, babylonMesh).then((babylonGeometry) => {
|
759
759
|
return this._loadMorphTargetsAsync(context, primitive, babylonMesh, babylonGeometry).then(() => {
|