Explorar o código

Merge pull request #9415 from bghgary/gltf-updates

Minor updates to glTF loader
David Catuhe %!s(int64=4) %!d(string=hai) anos
pai
achega
261724d326

+ 1 - 1
loaders/src/glTF/2.0/Extensions/KHR_materials_sheen.ts

@@ -11,7 +11,7 @@ import { IKHRMaterialsSheen } from 'babylonjs-gltf2interface';
 const NAME = "KHR_materials_sheen";
 
 /**
- * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1688)
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Khronos/KHR_materials_sheen/README.md)
  * [Playground Sample](https://www.babylonjs-playground.com/frame.html#BNIZX6#4)
  * !!! Experimental Extension Subject to Changes !!!
  */

+ 1 - 2
loaders/src/glTF/2.0/Extensions/KHR_materials_transmission.ts

@@ -250,8 +250,7 @@ class TransmissionHelper {
 const NAME = "KHR_materials_transmission";
 
 /**
- * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1698)
- * !!! Experimental Extension Subject to Changes !!!
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Khronos/KHR_materials_transmission/README.md)
  */
 export class KHR_materials_transmission implements IGLTFLoaderExtension {
     /**

+ 1 - 2
loaders/src/glTF/2.0/Extensions/KHR_materials_variants.ts

@@ -21,8 +21,7 @@ interface IExtensionMetadata {
 }
 
 /**
- * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1681)
- * !!! Experimental Extension Subject to Changes !!!
+ * [Specification](https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Khronos/KHR_materials_variants/README.md)
  */
 export class KHR_materials_variants implements IGLTFLoaderExtension {
     /**

+ 3 - 3
loaders/src/glTF/2.0/glTFLoader.ts

@@ -2073,17 +2073,17 @@ export class GLTFLoader implements IGLTFLoader {
 
         if (Tools.IsBase64(uri)) {
             const data = new Uint8Array(Tools.DecodeBase64(uri));
-            this.log(`Decoded ${uri.substr(0, 64)}... (${data.length} bytes)`);
+            this.log(`${context}: Decoded ${uri.substr(0, 64)}... (${data.length} bytes)`);
             return Promise.resolve(data);
         }
 
-        this.log(`Loading ${uri}`);
+        this.log(`${context}: Loading ${uri}`);
 
         return this._parent.preprocessUrlAsync(this._rootUrl + uri).then((url) => {
             return new Promise((resolve, reject) => {
                 this._parent._loadFile(url, this._babylonScene, (data) => {
                     if (!this._disposed) {
-                        this.log(`Loaded ${uri} (${(data as ArrayBuffer).byteLength} bytes)`);
+                        this.log(`${context}: Loaded ${uri} (${(data as ArrayBuffer).byteLength} bytes)`);
                         resolve(new Uint8Array(data as ArrayBuffer));
                     }
                 }, true, (request) => {