David Catuhe 8 年之前
父節點
當前提交
d6b4a26577

文件差異過大導致無法顯示
+ 3575 - 3574
dist/preview release/babylon.d.ts


文件差異過大導致無法顯示
+ 18 - 18
dist/preview release/babylon.js


+ 9 - 1
dist/preview release/babylon.max.js

@@ -19612,6 +19612,14 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Texture.prototype.serialize = function () {
+            var serializationObject = _super.prototype.serialize.call(this);
+            if (typeof this._buffer === "string" && this._buffer.substr(0, 5) === "data:") {
+                serializationObject.base64String = this._buffer;
+                serializationObject.name = serializationObject.name.replace("data:", "");
+            }
+            return serializationObject;
+        };
         // Statics
         Texture.CreateFromBase64String = function (data, name, scene, noMipmap, invertY, samplingMode, onLoad, onError, format) {
             if (samplingMode === void 0) { samplingMode = Texture.TRILINEAR_SAMPLINGMODE; }
@@ -68209,7 +68217,7 @@ var BABYLON;
         };
         TextureTools.GetEnvironmentBRDFTexture = function (scene) {
             if (!scene._environmentBRDFTexture) {
-                var texture = new BABYLON.Texture(this._environmentBRDFBase64Texture, scene, true, false, BABYLON.Texture.BILINEAR_SAMPLINGMODE);
+                var texture = BABYLON.Texture.CreateFromBase64String(this._environmentBRDFBase64Texture, "EnvironmentBRDFTexture", scene, true, false, BABYLON.Texture.BILINEAR_SAMPLINGMODE);
                 texture.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE;
                 texture.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE;
                 scene._environmentBRDFTexture = texture;

文件差異過大導致無法顯示
+ 3575 - 3574
dist/preview release/babylon.module.d.ts


文件差異過大導致無法顯示
+ 18 - 18
dist/preview release/babylon.worker.js


文件差異過大導致無法顯示
+ 2685 - 2684
dist/preview release/customConfigurations/minimalViewer/babylon.d.ts


文件差異過大導致無法顯示
+ 17 - 17
dist/preview release/customConfigurations/minimalViewer/babylon.js


+ 9 - 1
dist/preview release/customConfigurations/minimalViewer/babylon.max.js

@@ -19612,6 +19612,14 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Texture.prototype.serialize = function () {
+            var serializationObject = _super.prototype.serialize.call(this);
+            if (typeof this._buffer === "string" && this._buffer.substr(0, 5) === "data:") {
+                serializationObject.base64String = this._buffer;
+                serializationObject.name = serializationObject.name.replace("data:", "");
+            }
+            return serializationObject;
+        };
         // Statics
         Texture.CreateFromBase64String = function (data, name, scene, noMipmap, invertY, samplingMode, onLoad, onError, format) {
             if (samplingMode === void 0) { samplingMode = Texture.TRILINEAR_SAMPLINGMODE; }
@@ -46262,7 +46270,7 @@ var BABYLON;
         };
         TextureTools.GetEnvironmentBRDFTexture = function (scene) {
             if (!scene._environmentBRDFTexture) {
-                var texture = new BABYLON.Texture(this._environmentBRDFBase64Texture, scene, true, false, BABYLON.Texture.BILINEAR_SAMPLINGMODE);
+                var texture = BABYLON.Texture.CreateFromBase64String(this._environmentBRDFBase64Texture, "EnvironmentBRDFTexture", scene, true, false, BABYLON.Texture.BILINEAR_SAMPLINGMODE);
                 texture.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE;
                 texture.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE;
                 scene._environmentBRDFTexture = texture;

文件差異過大導致無法顯示
+ 2685 - 2684
dist/preview release/customConfigurations/minimalViewer/babylon.module.d.ts