David Catuhe 7 years ago
parent
commit
1ec47840e9

File diff suppressed because it is too large
+ 766 - 766
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 27 - 27
dist/preview release/babylon.js


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

@@ -8624,8 +8624,12 @@ var BABYLON;
             }
             }
             // Constants
             // Constants
             this._gl.HALF_FLOAT_OES = 0x8D61; // Half floating-point type (16-bit).
             this._gl.HALF_FLOAT_OES = 0x8D61; // Half floating-point type (16-bit).
-            this._gl.RGBA16F = 0x881A; // RGBA 16-bit floating-point color-renderable internal sized format.
-            this._gl.RGBA32F = 0x8814; // RGBA 32-bit floating-point color-renderable internal sized format.
+            if (this._gl.RGBA16F !== 0x881A) {
+                this._gl.RGBA16F = 0x881A; // RGBA 16-bit floating-point color-renderable internal sized format.
+            }
+            if (this._gl.RGBA32F !== 0x8814) {
+                this._gl.RGBA32F = 0x8814; // RGBA 32-bit floating-point color-renderable internal sized format.
+            }
             this._gl.DEPTH24_STENCIL8 = 35056;
             this._gl.DEPTH24_STENCIL8 = 35056;
             // Extensions
             // Extensions
             this._caps.standardDerivatives = this._webGLVersion > 1 || (this._gl.getExtension('OES_standard_derivatives') !== null);
             this._caps.standardDerivatives = this._webGLVersion > 1 || (this._gl.getExtension('OES_standard_derivatives') !== null);
@@ -22365,7 +22369,7 @@ var BABYLON;
                     source._geometry.applyToMesh(_this);
                     source._geometry.applyToMesh(_this);
                 }
                 }
                 // Deep copy
                 // Deep copy
-                BABYLON.Tools.DeepCopy(source, _this, ["name", "material", "skeleton", "instances", "parent", "uniqueId"], ["_poseMatrix"]);
+                BABYLON.Tools.DeepCopy(source, _this, ["name", "material", "skeleton", "instances", "parent", "uniqueId", "source"], ["_poseMatrix", "_source"]);
                 // Tags
                 // Tags
                 if (BABYLON.Tags.HasTags(source)) {
                 if (BABYLON.Tags.HasTags(source)) {
                     BABYLON.Tags.AddTagsTo(_this, BABYLON.Tags.GetTags(source, true));
                     BABYLON.Tags.AddTagsTo(_this, BABYLON.Tags.GetTags(source, true));

File diff suppressed because it is too large
+ 766 - 766
dist/preview release/babylon.module.d.ts


File diff suppressed because it is too large
+ 27 - 27
dist/preview release/babylon.worker.js


File diff suppressed because it is too large
+ 6138 - 6138
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


File diff suppressed because it is too large
+ 27 - 27
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 7 - 3
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -8624,8 +8624,12 @@ var BABYLON;
             }
             }
             // Constants
             // Constants
             this._gl.HALF_FLOAT_OES = 0x8D61; // Half floating-point type (16-bit).
             this._gl.HALF_FLOAT_OES = 0x8D61; // Half floating-point type (16-bit).
-            this._gl.RGBA16F = 0x881A; // RGBA 16-bit floating-point color-renderable internal sized format.
-            this._gl.RGBA32F = 0x8814; // RGBA 32-bit floating-point color-renderable internal sized format.
+            if (this._gl.RGBA16F !== 0x881A) {
+                this._gl.RGBA16F = 0x881A; // RGBA 16-bit floating-point color-renderable internal sized format.
+            }
+            if (this._gl.RGBA32F !== 0x8814) {
+                this._gl.RGBA32F = 0x8814; // RGBA 32-bit floating-point color-renderable internal sized format.
+            }
             this._gl.DEPTH24_STENCIL8 = 35056;
             this._gl.DEPTH24_STENCIL8 = 35056;
             // Extensions
             // Extensions
             this._caps.standardDerivatives = this._webGLVersion > 1 || (this._gl.getExtension('OES_standard_derivatives') !== null);
             this._caps.standardDerivatives = this._webGLVersion > 1 || (this._gl.getExtension('OES_standard_derivatives') !== null);
@@ -22365,7 +22369,7 @@ var BABYLON;
                     source._geometry.applyToMesh(_this);
                     source._geometry.applyToMesh(_this);
                 }
                 }
                 // Deep copy
                 // Deep copy
-                BABYLON.Tools.DeepCopy(source, _this, ["name", "material", "skeleton", "instances", "parent", "uniqueId"], ["_poseMatrix"]);
+                BABYLON.Tools.DeepCopy(source, _this, ["name", "material", "skeleton", "instances", "parent", "uniqueId", "source"], ["_poseMatrix", "_source"]);
                 // Tags
                 // Tags
                 if (BABYLON.Tags.HasTags(source)) {
                 if (BABYLON.Tags.HasTags(source)) {
                     BABYLON.Tags.AddTagsTo(_this, BABYLON.Tags.GetTags(source, true));
                     BABYLON.Tags.AddTagsTo(_this, BABYLON.Tags.GetTags(source, true));

File diff suppressed because it is too large
+ 6138 - 6138
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


+ 7 - 3
src/Engine/babylon.engine.ts

@@ -1109,9 +1109,13 @@
             }
             }
 
 
             // Constants
             // Constants
-            this._gl.HALF_FLOAT_OES = 0x8D61; // Half floating-point type (16-bit).
-            (<any>this._gl.RGBA16F) = 0x881A; // RGBA 16-bit floating-point color-renderable internal sized format.
-            (<any>this._gl.RGBA32F) = 0x8814; // RGBA 32-bit floating-point color-renderable internal sized format.
+            this._gl.HALF_FLOAT_OES = 0x8D61;   // Half floating-point type (16-bit).
+            if (this._gl.RGBA16F !== 0x881A) {
+                this._gl.RGBA16F = 0x881A;      // RGBA 16-bit floating-point color-renderable internal sized format.
+            }
+            if (this._gl.RGBA32F !== 0x8814) {
+                this._gl.RGBA32F = 0x8814;      // RGBA 32-bit floating-point color-renderable internal sized format.
+            }
             this._gl.DEPTH24_STENCIL8 = 35056;
             this._gl.DEPTH24_STENCIL8 = 35056;
 
 
             // Extensions
             // Extensions

+ 1 - 1
src/Mesh/babylon.mesh.ts

@@ -175,7 +175,7 @@
                 }
                 }
 
 
                 // Deep copy
                 // Deep copy
-                Tools.DeepCopy(source, this, ["name", "material", "skeleton", "instances", "parent", "uniqueId"], ["_poseMatrix"]);
+                Tools.DeepCopy(source, this, ["name", "material", "skeleton", "instances", "parent", "uniqueId", "source"], ["_poseMatrix", "_source"]);
 
 
                 // Tags
                 // Tags
                 if (Tags.HasTags(source)) {
                 if (Tags.HasTags(source)) {

BIN
tests/validation/ReferenceImages/refprobe.png