David Catuhe 7 سال پیش
والد
کامیت
a0b3b7aee3

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 846 - 833
dist/preview release/babylon.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2 - 2
dist/preview release/babylon.js


+ 23 - 3
dist/preview release/babylon.max.js

@@ -72859,6 +72859,15 @@ var BABYLON;
         return AbstractAssetTask;
     }());
     BABYLON.AbstractAssetTask = AbstractAssetTask;
+    var AssetsProgressEvent = /** @class */ (function () {
+        function AssetsProgressEvent(remainingCount, totalCount, task) {
+            this.remainingCount = remainingCount;
+            this.totalCount = totalCount;
+            this.task = task;
+        }
+        return AssetsProgressEvent;
+    }());
+    BABYLON.AssetsProgressEvent = AssetsProgressEvent;
     var MeshAssetTask = /** @class */ (function (_super) {
         __extends(MeshAssetTask, _super);
         function MeshAssetTask(name, meshesNames, rootUrl, sceneFilename) {
@@ -73035,6 +73044,7 @@ var BABYLON;
             this.onTaskSuccessObservable = new BABYLON.Observable();
             this.onTaskErrorObservable = new BABYLON.Observable();
             this.onTasksDoneObservable = new BABYLON.Observable();
+            this.onProgressObservable = new BABYLON.Observable();
             this.useDefaultLoadingScreen = true;
             this._scene = scene;
         }
@@ -73078,8 +73088,18 @@ var BABYLON;
             this.tasks.push(task);
             return task;
         };
-        AssetsManager.prototype._decreaseWaitingTasksCount = function () {
+        AssetsManager.prototype._decreaseWaitingTasksCount = function (task) {
             this.waitingTasksCount--;
+            try {
+                if (this.onProgress) {
+                    this.onProgress(this.waitingTasksCount, this.tasks.length, task);
+                }
+                this.onProgressObservable.notifyObservers(new AssetsProgressEvent(this.waitingTasksCount, this.tasks.length, task));
+            }
+            catch (e) {
+                BABYLON.Tools.Error("Error running progress callbacks.");
+                console.log(e);
+            }
             if (this.waitingTasksCount === 0) {
                 try {
                     if (this.onFinish) {
@@ -73102,7 +73122,7 @@ var BABYLON;
                         _this.onTaskSuccess(task);
                     }
                     _this.onTaskSuccessObservable.notifyObservers(task);
-                    _this._decreaseWaitingTasksCount();
+                    _this._decreaseWaitingTasksCount(task);
                 }
                 catch (e) {
                     error("Error executing task success callbacks", e);
@@ -73117,7 +73137,7 @@ var BABYLON;
                     _this.onTaskError(task);
                 }
                 _this.onTaskErrorObservable.notifyObservers(task);
-                _this._decreaseWaitingTasksCount();
+                _this._decreaseWaitingTasksCount(task);
             };
             task.run(this._scene, done, error);
         };

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 846 - 833
dist/preview release/babylon.module.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2 - 2
dist/preview release/babylon.worker.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 9192 - 9179
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 4 - 4
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 30 - 9
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -72859,6 +72859,15 @@ var BABYLON;
         return AbstractAssetTask;
     }());
     BABYLON.AbstractAssetTask = AbstractAssetTask;
+    var AssetsProgressEvent = /** @class */ (function () {
+        function AssetsProgressEvent(remainingCount, totalCount, task) {
+            this.remainingCount = remainingCount;
+            this.totalCount = totalCount;
+            this.task = task;
+        }
+        return AssetsProgressEvent;
+    }());
+    BABYLON.AssetsProgressEvent = AssetsProgressEvent;
     var MeshAssetTask = /** @class */ (function (_super) {
         __extends(MeshAssetTask, _super);
         function MeshAssetTask(name, meshesNames, rootUrl, sceneFilename) {
@@ -73035,6 +73044,7 @@ var BABYLON;
             this.onTaskSuccessObservable = new BABYLON.Observable();
             this.onTaskErrorObservable = new BABYLON.Observable();
             this.onTasksDoneObservable = new BABYLON.Observable();
+            this.onProgressObservable = new BABYLON.Observable();
             this.useDefaultLoadingScreen = true;
             this._scene = scene;
         }
@@ -73078,8 +73088,18 @@ var BABYLON;
             this.tasks.push(task);
             return task;
         };
-        AssetsManager.prototype._decreaseWaitingTasksCount = function () {
+        AssetsManager.prototype._decreaseWaitingTasksCount = function (task) {
             this.waitingTasksCount--;
+            try {
+                if (this.onProgress) {
+                    this.onProgress(this.waitingTasksCount, this.tasks.length, task);
+                }
+                this.onProgressObservable.notifyObservers(new AssetsProgressEvent(this.waitingTasksCount, this.tasks.length, task));
+            }
+            catch (e) {
+                BABYLON.Tools.Error("Error running progress callbacks.");
+                console.log(e);
+            }
             if (this.waitingTasksCount === 0) {
                 try {
                     if (this.onFinish) {
@@ -73102,7 +73122,7 @@ var BABYLON;
                         _this.onTaskSuccess(task);
                     }
                     _this.onTaskSuccessObservable.notifyObservers(task);
-                    _this._decreaseWaitingTasksCount();
+                    _this._decreaseWaitingTasksCount(task);
                 }
                 catch (e) {
                     error("Error executing task success callbacks", e);
@@ -73117,7 +73137,7 @@ var BABYLON;
                     _this.onTaskError(task);
                 }
                 _this.onTaskErrorObservable.notifyObservers(task);
-                _this._decreaseWaitingTasksCount();
+                _this._decreaseWaitingTasksCount(task);
             };
             task.run(this._scene, done, error);
         };
@@ -78173,7 +78193,7 @@ var BABYLON;
                 }
             };
             GLTFLoader.prototype._getMeshes = function () {
-                var meshes = [this._rootNode.babylonMesh || null];
+                var meshes = [this._rootNode.babylonMesh];
                 var nodes = this._gltf.nodes;
                 if (nodes) {
                     for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {
@@ -79078,14 +79098,14 @@ var BABYLON;
                 babylonMaterial.albedoColor = properties.baseColorFactor ? BABYLON.Color3.FromArray(properties.baseColorFactor) : new BABYLON.Color3(1, 1, 1);
                 babylonMaterial.metallic = properties.metallicFactor == null ? 1 : properties.metallicFactor;
                 babylonMaterial.roughness = properties.roughnessFactor == null ? 1 : properties.roughnessFactor;
-                if (properties.baseColorTexture && properties.baseColorTexture.texCoord) {
+                if (properties.baseColorTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.baseColorTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find base color texture " + properties.baseColorTexture.index);
                     }
                     babylonMaterial.albedoTexture = this._loadTexture("#/textures/" + texture.index, texture, properties.baseColorTexture.texCoord);
                 }
-                if (properties.metallicRoughnessTexture && properties.metallicRoughnessTexture.texCoord) {
+                if (properties.metallicRoughnessTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.metallicRoughnessTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find metallic roughness texture " + properties.metallicRoughnessTexture.index);
@@ -79124,7 +79144,7 @@ var BABYLON;
                     babylonMaterial.backFaceCulling = false;
                     babylonMaterial.twoSidedLighting = true;
                 }
-                if (material.normalTexture && material.normalTexture.texCoord) {
+                if (material.normalTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.normalTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find normal texture " + material.normalTexture.index);
@@ -79136,7 +79156,7 @@ var BABYLON;
                         babylonMaterial.bumpTexture.level = material.normalTexture.scale;
                     }
                 }
-                if (material.occlusionTexture && material.occlusionTexture.texCoord) {
+                if (material.occlusionTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.occlusionTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find occlusion texture " + material.occlusionTexture.index);
@@ -79147,7 +79167,7 @@ var BABYLON;
                         babylonMaterial.ambientTextureStrength = material.occlusionTexture.strength;
                     }
                 }
-                if (material.emissiveTexture && material.emissiveTexture.texCoord) {
+                if (material.emissiveTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.emissiveTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find emissive texture " + material.emissiveTexture.index);
@@ -79191,6 +79211,7 @@ var BABYLON;
             };
             GLTFLoader.prototype._loadTexture = function (context, texture, coordinatesIndex) {
                 var _this = this;
+                if (coordinatesIndex === void 0) { coordinatesIndex = 0; }
                 var sampler = (texture.sampler == null ? {} : GLTF2.GLTFUtils.GetArrayItem(this._gltf.samplers, texture.sampler));
                 if (!sampler) {
                     throw new Error(context + ": Failed to find sampler " + texture.sampler);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 9192 - 9179
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


+ 1 - 1
dist/preview release/loaders/babylon.glTF2FileLoader.d.ts

@@ -373,7 +373,7 @@ declare module BABYLON.GLTF2 {
         _createPbrMaterial(material: IGLTFMaterial): void;
         _loadMaterialBaseProperties(context: string, material: IGLTFMaterial): void;
         _loadMaterialAlphaProperties(context: string, material: IGLTFMaterial, colorFactor: number[]): void;
-        _loadTexture(context: string, texture: IGLTFTexture, coordinatesIndex: number): Texture;
+        _loadTexture(context: string, texture: IGLTFTexture, coordinatesIndex?: number): Texture;
         private _loadImage(context, image, onSuccess);
         _loadUri(context: string, uri: string, onSuccess: (data: ArrayBufferView) => void): void;
         _tryCatchOnError(handler: () => void): void;

+ 7 - 6
dist/preview release/loaders/babylon.glTF2FileLoader.js

@@ -481,7 +481,7 @@ var BABYLON;
                 }
             };
             GLTFLoader.prototype._getMeshes = function () {
-                var meshes = [this._rootNode.babylonMesh || null];
+                var meshes = [this._rootNode.babylonMesh];
                 var nodes = this._gltf.nodes;
                 if (nodes) {
                     for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {
@@ -1386,14 +1386,14 @@ var BABYLON;
                 babylonMaterial.albedoColor = properties.baseColorFactor ? BABYLON.Color3.FromArray(properties.baseColorFactor) : new BABYLON.Color3(1, 1, 1);
                 babylonMaterial.metallic = properties.metallicFactor == null ? 1 : properties.metallicFactor;
                 babylonMaterial.roughness = properties.roughnessFactor == null ? 1 : properties.roughnessFactor;
-                if (properties.baseColorTexture && properties.baseColorTexture.texCoord) {
+                if (properties.baseColorTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.baseColorTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find base color texture " + properties.baseColorTexture.index);
                     }
                     babylonMaterial.albedoTexture = this._loadTexture("#/textures/" + texture.index, texture, properties.baseColorTexture.texCoord);
                 }
-                if (properties.metallicRoughnessTexture && properties.metallicRoughnessTexture.texCoord) {
+                if (properties.metallicRoughnessTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.metallicRoughnessTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find metallic roughness texture " + properties.metallicRoughnessTexture.index);
@@ -1432,7 +1432,7 @@ var BABYLON;
                     babylonMaterial.backFaceCulling = false;
                     babylonMaterial.twoSidedLighting = true;
                 }
-                if (material.normalTexture && material.normalTexture.texCoord) {
+                if (material.normalTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.normalTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find normal texture " + material.normalTexture.index);
@@ -1444,7 +1444,7 @@ var BABYLON;
                         babylonMaterial.bumpTexture.level = material.normalTexture.scale;
                     }
                 }
-                if (material.occlusionTexture && material.occlusionTexture.texCoord) {
+                if (material.occlusionTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.occlusionTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find occlusion texture " + material.occlusionTexture.index);
@@ -1455,7 +1455,7 @@ var BABYLON;
                         babylonMaterial.ambientTextureStrength = material.occlusionTexture.strength;
                     }
                 }
-                if (material.emissiveTexture && material.emissiveTexture.texCoord) {
+                if (material.emissiveTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.emissiveTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find emissive texture " + material.emissiveTexture.index);
@@ -1499,6 +1499,7 @@ var BABYLON;
             };
             GLTFLoader.prototype._loadTexture = function (context, texture, coordinatesIndex) {
                 var _this = this;
+                if (coordinatesIndex === void 0) { coordinatesIndex = 0; }
                 var sampler = (texture.sampler == null ? {} : GLTF2.GLTFUtils.GetArrayItem(this._gltf.samplers, texture.sampler));
                 if (!sampler) {
                     throw new Error(context + ": Failed to find sampler " + texture.sampler);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2 - 2
dist/preview release/loaders/babylon.glTF2FileLoader.min.js


+ 1 - 1
dist/preview release/loaders/babylon.glTFFileLoader.d.ts

@@ -920,7 +920,7 @@ declare module BABYLON.GLTF2 {
         _createPbrMaterial(material: IGLTFMaterial): void;
         _loadMaterialBaseProperties(context: string, material: IGLTFMaterial): void;
         _loadMaterialAlphaProperties(context: string, material: IGLTFMaterial, colorFactor: number[]): void;
-        _loadTexture(context: string, texture: IGLTFTexture, coordinatesIndex: number): Texture;
+        _loadTexture(context: string, texture: IGLTFTexture, coordinatesIndex?: number): Texture;
         private _loadImage(context, image, onSuccess);
         _loadUri(context: string, uri: string, onSuccess: (data: ArrayBufferView) => void): void;
         _tryCatchOnError(handler: () => void): void;

+ 7 - 6
dist/preview release/loaders/babylon.glTFFileLoader.js

@@ -2626,7 +2626,7 @@ var BABYLON;
                 }
             };
             GLTFLoader.prototype._getMeshes = function () {
-                var meshes = [this._rootNode.babylonMesh || null];
+                var meshes = [this._rootNode.babylonMesh];
                 var nodes = this._gltf.nodes;
                 if (nodes) {
                     for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {
@@ -3531,14 +3531,14 @@ var BABYLON;
                 babylonMaterial.albedoColor = properties.baseColorFactor ? BABYLON.Color3.FromArray(properties.baseColorFactor) : new BABYLON.Color3(1, 1, 1);
                 babylonMaterial.metallic = properties.metallicFactor == null ? 1 : properties.metallicFactor;
                 babylonMaterial.roughness = properties.roughnessFactor == null ? 1 : properties.roughnessFactor;
-                if (properties.baseColorTexture && properties.baseColorTexture.texCoord) {
+                if (properties.baseColorTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.baseColorTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find base color texture " + properties.baseColorTexture.index);
                     }
                     babylonMaterial.albedoTexture = this._loadTexture("#/textures/" + texture.index, texture, properties.baseColorTexture.texCoord);
                 }
-                if (properties.metallicRoughnessTexture && properties.metallicRoughnessTexture.texCoord) {
+                if (properties.metallicRoughnessTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.metallicRoughnessTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find metallic roughness texture " + properties.metallicRoughnessTexture.index);
@@ -3577,7 +3577,7 @@ var BABYLON;
                     babylonMaterial.backFaceCulling = false;
                     babylonMaterial.twoSidedLighting = true;
                 }
-                if (material.normalTexture && material.normalTexture.texCoord) {
+                if (material.normalTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.normalTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find normal texture " + material.normalTexture.index);
@@ -3589,7 +3589,7 @@ var BABYLON;
                         babylonMaterial.bumpTexture.level = material.normalTexture.scale;
                     }
                 }
-                if (material.occlusionTexture && material.occlusionTexture.texCoord) {
+                if (material.occlusionTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.occlusionTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find occlusion texture " + material.occlusionTexture.index);
@@ -3600,7 +3600,7 @@ var BABYLON;
                         babylonMaterial.ambientTextureStrength = material.occlusionTexture.strength;
                     }
                 }
-                if (material.emissiveTexture && material.emissiveTexture.texCoord) {
+                if (material.emissiveTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.emissiveTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find emissive texture " + material.emissiveTexture.index);
@@ -3644,6 +3644,7 @@ var BABYLON;
             };
             GLTFLoader.prototype._loadTexture = function (context, texture, coordinatesIndex) {
                 var _this = this;
+                if (coordinatesIndex === void 0) { coordinatesIndex = 0; }
                 var sampler = (texture.sampler == null ? {} : GLTF2.GLTFUtils.GetArrayItem(this._gltf.samplers, texture.sampler));
                 if (!sampler) {
                     throw new Error(context + ": Failed to find sampler " + texture.sampler);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3 - 3
dist/preview release/loaders/babylon.glTFFileLoader.min.js


+ 7 - 6
dist/preview release/loaders/babylonjs.loaders.js

@@ -3581,7 +3581,7 @@ var BABYLON;
                 }
             };
             GLTFLoader.prototype._getMeshes = function () {
-                var meshes = [this._rootNode.babylonMesh || null];
+                var meshes = [this._rootNode.babylonMesh];
                 var nodes = this._gltf.nodes;
                 if (nodes) {
                     for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {
@@ -4486,14 +4486,14 @@ var BABYLON;
                 babylonMaterial.albedoColor = properties.baseColorFactor ? BABYLON.Color3.FromArray(properties.baseColorFactor) : new BABYLON.Color3(1, 1, 1);
                 babylonMaterial.metallic = properties.metallicFactor == null ? 1 : properties.metallicFactor;
                 babylonMaterial.roughness = properties.roughnessFactor == null ? 1 : properties.roughnessFactor;
-                if (properties.baseColorTexture && properties.baseColorTexture.texCoord) {
+                if (properties.baseColorTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.baseColorTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find base color texture " + properties.baseColorTexture.index);
                     }
                     babylonMaterial.albedoTexture = this._loadTexture("#/textures/" + texture.index, texture, properties.baseColorTexture.texCoord);
                 }
-                if (properties.metallicRoughnessTexture && properties.metallicRoughnessTexture.texCoord) {
+                if (properties.metallicRoughnessTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, properties.metallicRoughnessTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find metallic roughness texture " + properties.metallicRoughnessTexture.index);
@@ -4532,7 +4532,7 @@ var BABYLON;
                     babylonMaterial.backFaceCulling = false;
                     babylonMaterial.twoSidedLighting = true;
                 }
-                if (material.normalTexture && material.normalTexture.texCoord) {
+                if (material.normalTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.normalTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find normal texture " + material.normalTexture.index);
@@ -4544,7 +4544,7 @@ var BABYLON;
                         babylonMaterial.bumpTexture.level = material.normalTexture.scale;
                     }
                 }
-                if (material.occlusionTexture && material.occlusionTexture.texCoord) {
+                if (material.occlusionTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.occlusionTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find occlusion texture " + material.occlusionTexture.index);
@@ -4555,7 +4555,7 @@ var BABYLON;
                         babylonMaterial.ambientTextureStrength = material.occlusionTexture.strength;
                     }
                 }
-                if (material.emissiveTexture && material.emissiveTexture.texCoord) {
+                if (material.emissiveTexture) {
                     var texture = GLTF2.GLTFUtils.GetArrayItem(this._gltf.textures, material.emissiveTexture.index);
                     if (!texture) {
                         throw new Error(context + ": Failed to find emissive texture " + material.emissiveTexture.index);
@@ -4599,6 +4599,7 @@ var BABYLON;
             };
             GLTFLoader.prototype._loadTexture = function (context, texture, coordinatesIndex) {
                 var _this = this;
+                if (coordinatesIndex === void 0) { coordinatesIndex = 0; }
                 var sampler = (texture.sampler == null ? {} : GLTF2.GLTFUtils.GetArrayItem(this._gltf.samplers, texture.sampler));
                 if (!sampler) {
                     throw new Error(context + ": Failed to find sampler " + texture.sampler);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3 - 3
dist/preview release/loaders/babylonjs.loaders.min.js


+ 1 - 1
dist/preview release/loaders/babylonjs.loaders.module.d.ts

@@ -1018,7 +1018,7 @@ declare module BABYLON.GLTF2 {
         _createPbrMaterial(material: IGLTFMaterial): void;
         _loadMaterialBaseProperties(context: string, material: IGLTFMaterial): void;
         _loadMaterialAlphaProperties(context: string, material: IGLTFMaterial, colorFactor: number[]): void;
-        _loadTexture(context: string, texture: IGLTFTexture, coordinatesIndex: number): Texture;
+        _loadTexture(context: string, texture: IGLTFTexture, coordinatesIndex?: number): Texture;
         private _loadImage(context, image, onSuccess);
         _loadUri(context: string, uri: string, onSuccess: (data: ArrayBufferView) => void): void;
         _tryCatchOnError(handler: () => void): void;