David Catuhe 7 năm trước cách đây
mục cha
commit
45a3a3ac54
38 tập tin đã thay đổi với 35184 bổ sung35117 xóa
  1. 12963 12956
      Playground/babylon.d.txt
  2. 13830 13823
      dist/preview release/babylon.d.ts
  3. 47 47
      dist/preview release/babylon.js
  4. 24 10
      dist/preview release/babylon.max.js
  5. 48 48
      dist/preview release/babylon.worker.js
  6. 8023 8016
      dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts
  7. 49 49
      dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js
  8. 16 8
      dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js
  9. 14 4
      dist/preview release/customConfigurations/minimalGLTFViewer/es6.js
  10. 22 6
      dist/preview release/es6.js
  11. 5 7
      dist/preview release/gui/babylon.gui.js
  12. 3 3
      dist/preview release/gui/babylon.gui.min.js
  13. 1 1
      dist/preview release/gui/babylon.gui.module.d.ts
  14. 4 4
      dist/preview release/inspector/babylon.inspector.bundle.js
  15. 3 3
      dist/preview release/inspector/babylon.inspector.min.js
  16. 2 2
      dist/preview release/loaders/babylon.glTF1FileLoader.min.js
  17. 2 2
      dist/preview release/loaders/babylon.glTF2FileLoader.min.js
  18. 3 3
      dist/preview release/loaders/babylon.glTFFileLoader.min.js
  19. 1 1
      dist/preview release/loaders/babylon.objFileLoader.min.js
  20. 3 5
      dist/preview release/loaders/babylonjs.loaders.js
  21. 3 3
      dist/preview release/loaders/babylonjs.loaders.min.js
  22. 1 1
      dist/preview release/materialsLibrary/babylon.customMaterial.min.js
  23. 1 1
      dist/preview release/materialsLibrary/babylon.shadowOnlyMaterial.min.js
  24. 1 1
      dist/preview release/materialsLibrary/babylon.waterMaterial.min.js
  25. 3 5
      dist/preview release/materialsLibrary/babylonjs.materials.js
  26. 3 3
      dist/preview release/materialsLibrary/babylonjs.materials.min.js
  27. 1 1
      dist/preview release/postProcessesLibrary/babylon.asciiArtPostProcess.min.js
  28. 1 1
      dist/preview release/postProcessesLibrary/babylon.digitalRainPostProcess.min.js
  29. 3 5
      dist/preview release/postProcessesLibrary/babylonjs.postProcess.js
  30. 1 1
      dist/preview release/postProcessesLibrary/babylonjs.postProcess.min.js
  31. 3 5
      dist/preview release/proceduralTexturesLibrary/babylonjs.proceduralTextures.js
  32. 1 1
      dist/preview release/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js
  33. 1 1
      dist/preview release/serializers/babylon.glTF2Serializer.min.js
  34. 3 5
      dist/preview release/serializers/babylonjs.serializers.js
  35. 1 1
      dist/preview release/serializers/babylonjs.serializers.min.js
  36. 60 60
      dist/preview release/viewer/babylon.viewer.js
  37. 33 23
      dist/preview release/viewer/babylon.viewer.max.js
  38. 1 1
      src/Particles/babylon.IParticleSystem.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 12963 - 12956
Playground/babylon.d.txt


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 13830 - 13823
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 47 - 47
dist/preview release/babylon.js


+ 24 - 10
dist/preview release/babylon.max.js

@@ -27121,7 +27121,11 @@ var BABYLON;
                         texture = Texture.CreateFromBase64String(parsedTexture.base64String, parsedTexture.name, scene, !generateMipMaps);
                     }
                     else {
-                        texture = new Texture(rootUrl + parsedTexture.name, scene, !generateMipMaps);
+                        var url = rootUrl + parsedTexture.name;
+                        if (Texture.UseSerializedUrlIfAny && parsedTexture.url) {
+                            url = parsedTexture.url;
+                        }
+                        texture = new Texture(url, scene, !generateMipMaps);
                     }
                     return texture;
                 }
@@ -27184,6 +27188,10 @@ var BABYLON;
         Texture.CLAMP_ADDRESSMODE = 0;
         Texture.WRAP_ADDRESSMODE = 1;
         Texture.MIRROR_ADDRESSMODE = 2;
+        /**
+         * Gets or sets a boolean which defines if the texture url must be build from the serialized URL instead of just using the name and loading them side by side with the scene file
+         */
+        Texture.UseSerializedUrlIfAny = false;
         __decorate([
             BABYLON.serialize()
         ], Texture.prototype, "url", void 0);
@@ -51402,9 +51410,11 @@ var BABYLON;
             return this._particles.length;
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        ParticleSystem.prototype.dispose = function () {
+        ParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             if (this._vertexBuffer) {
                 this._vertexBuffer.dispose();
                 this._vertexBuffer = null;
@@ -51413,7 +51423,7 @@ var BABYLON;
                 this._scene.getEngine()._releaseBuffer(this._indexBuffer);
                 this._indexBuffer = null;
             }
-            if (this.particleTexture) {
+            if (disposeTexture && this.particleTexture) {
                 this.particleTexture.dispose();
                 this.particleTexture = null;
             }
@@ -52686,9 +52696,11 @@ var BABYLON;
             this._renderVAO = [];
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        GPUParticleSystem.prototype.dispose = function () {
+        GPUParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             var index = this._scene.particleSystems.indexOf(this);
             if (index > -1) {
                 this._scene.particleSystems.splice(index, 1);
@@ -52699,6 +52711,10 @@ var BABYLON;
                 this._randomTexture.dispose();
                 this._randomTexture = null;
             }
+            if (disposeTexture && this.particleTexture) {
+                this.particleTexture.dispose();
+                this.particleTexture = null;
+            }
             // Callback
             this.onDisposeObservable.notifyObservers(this);
             this.onDisposeObservable.clear();
@@ -90906,15 +90922,13 @@ BABYLON.Effect.IncludesShadersStore={"depthPrePass":"#ifdef DEPTHPREPASS\ngl_Fra
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : this);
 globalObject["BABYLON"] = f;
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BABYLON"], factory);
+        define("BABYLON",  factory);
     else if(typeof exports === 'object')
         exports["BABYLON"] = f;
     else {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 48 - 48
dist/preview release/babylon.worker.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 8023 - 8016
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 49 - 49
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 16 - 8
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -27121,7 +27121,11 @@ var BABYLON;
                         texture = Texture.CreateFromBase64String(parsedTexture.base64String, parsedTexture.name, scene, !generateMipMaps);
                     }
                     else {
-                        texture = new Texture(rootUrl + parsedTexture.name, scene, !generateMipMaps);
+                        var url = rootUrl + parsedTexture.name;
+                        if (Texture.UseSerializedUrlIfAny && parsedTexture.url) {
+                            url = parsedTexture.url;
+                        }
+                        texture = new Texture(url, scene, !generateMipMaps);
                     }
                     return texture;
                 }
@@ -27184,6 +27188,10 @@ var BABYLON;
         Texture.CLAMP_ADDRESSMODE = 0;
         Texture.WRAP_ADDRESSMODE = 1;
         Texture.MIRROR_ADDRESSMODE = 2;
+        /**
+         * Gets or sets a boolean which defines if the texture url must be build from the serialized URL instead of just using the name and loading them side by side with the scene file
+         */
+        Texture.UseSerializedUrlIfAny = false;
         __decorate([
             BABYLON.serialize()
         ], Texture.prototype, "url", void 0);
@@ -51402,9 +51410,11 @@ var BABYLON;
             return this._particles.length;
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        ParticleSystem.prototype.dispose = function () {
+        ParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             if (this._vertexBuffer) {
                 this._vertexBuffer.dispose();
                 this._vertexBuffer = null;
@@ -51413,7 +51423,7 @@ var BABYLON;
                 this._scene.getEngine()._releaseBuffer(this._indexBuffer);
                 this._indexBuffer = null;
             }
-            if (this.particleTexture) {
+            if (disposeTexture && this.particleTexture) {
                 this.particleTexture.dispose();
                 this.particleTexture = null;
             }
@@ -94418,15 +94428,13 @@ var BABYLON;
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : this);
 globalObject["BABYLON"] = f;
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BABYLON"], factory);
+        define("BABYLON",  factory);
     else if(typeof exports === 'object')
         exports["BABYLON"] = f;
     else {

+ 14 - 4
dist/preview release/customConfigurations/minimalGLTFViewer/es6.js

@@ -27107,7 +27107,11 @@ var BABYLON;
                         texture = Texture.CreateFromBase64String(parsedTexture.base64String, parsedTexture.name, scene, !generateMipMaps);
                     }
                     else {
-                        texture = new Texture(rootUrl + parsedTexture.name, scene, !generateMipMaps);
+                        var url = rootUrl + parsedTexture.name;
+                        if (Texture.UseSerializedUrlIfAny && parsedTexture.url) {
+                            url = parsedTexture.url;
+                        }
+                        texture = new Texture(url, scene, !generateMipMaps);
                     }
                     return texture;
                 }
@@ -27170,6 +27174,10 @@ var BABYLON;
         Texture.CLAMP_ADDRESSMODE = 0;
         Texture.WRAP_ADDRESSMODE = 1;
         Texture.MIRROR_ADDRESSMODE = 2;
+        /**
+         * Gets or sets a boolean which defines if the texture url must be build from the serialized URL instead of just using the name and loading them side by side with the scene file
+         */
+        Texture.UseSerializedUrlIfAny = false;
         __decorate([
             BABYLON.serialize()
         ], Texture.prototype, "url", void 0);
@@ -51388,9 +51396,11 @@ var BABYLON;
             return this._particles.length;
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        ParticleSystem.prototype.dispose = function () {
+        ParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             if (this._vertexBuffer) {
                 this._vertexBuffer.dispose();
                 this._vertexBuffer = null;
@@ -51399,7 +51409,7 @@ var BABYLON;
                 this._scene.getEngine()._releaseBuffer(this._indexBuffer);
                 this._indexBuffer = null;
             }
-            if (this.particleTexture) {
+            if (disposeTexture && this.particleTexture) {
                 this.particleTexture.dispose();
                 this.particleTexture = null;
             }

+ 22 - 6
dist/preview release/es6.js

@@ -27107,7 +27107,11 @@ var BABYLON;
                         texture = Texture.CreateFromBase64String(parsedTexture.base64String, parsedTexture.name, scene, !generateMipMaps);
                     }
                     else {
-                        texture = new Texture(rootUrl + parsedTexture.name, scene, !generateMipMaps);
+                        var url = rootUrl + parsedTexture.name;
+                        if (Texture.UseSerializedUrlIfAny && parsedTexture.url) {
+                            url = parsedTexture.url;
+                        }
+                        texture = new Texture(url, scene, !generateMipMaps);
                     }
                     return texture;
                 }
@@ -27170,6 +27174,10 @@ var BABYLON;
         Texture.CLAMP_ADDRESSMODE = 0;
         Texture.WRAP_ADDRESSMODE = 1;
         Texture.MIRROR_ADDRESSMODE = 2;
+        /**
+         * Gets or sets a boolean which defines if the texture url must be build from the serialized URL instead of just using the name and loading them side by side with the scene file
+         */
+        Texture.UseSerializedUrlIfAny = false;
         __decorate([
             BABYLON.serialize()
         ], Texture.prototype, "url", void 0);
@@ -51388,9 +51396,11 @@ var BABYLON;
             return this._particles.length;
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        ParticleSystem.prototype.dispose = function () {
+        ParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             if (this._vertexBuffer) {
                 this._vertexBuffer.dispose();
                 this._vertexBuffer = null;
@@ -51399,7 +51409,7 @@ var BABYLON;
                 this._scene.getEngine()._releaseBuffer(this._indexBuffer);
                 this._indexBuffer = null;
             }
-            if (this.particleTexture) {
+            if (disposeTexture && this.particleTexture) {
                 this.particleTexture.dispose();
                 this.particleTexture = null;
             }
@@ -52672,9 +52682,11 @@ var BABYLON;
             this._renderVAO = [];
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        GPUParticleSystem.prototype.dispose = function () {
+        GPUParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             var index = this._scene.particleSystems.indexOf(this);
             if (index > -1) {
                 this._scene.particleSystems.splice(index, 1);
@@ -52685,6 +52697,10 @@ var BABYLON;
                 this._randomTexture.dispose();
                 this._randomTexture = null;
             }
+            if (disposeTexture && this.particleTexture) {
+                this.particleTexture.dispose();
+                this.particleTexture = null;
+            }
             // Callback
             this.onDisposeObservable.notifyObservers(this);
             this.onDisposeObservable.clear();

+ 5 - 7
dist/preview release/gui/babylon.gui.js

@@ -5005,19 +5005,17 @@ var BABYLON;
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["GUI"], factory);
+        define("babylonjs-gui", ["BABYLON"], factory);
     else if(typeof exports === 'object')
-        exports["GUI"] = f;
+        exports["babylonjs-gui"] = f;
     else {
-        root["BABYLON"]["GUI"] = f;
+        root["BABYLON"]["[object Object]"] = f;
     }
 })(this, function() {
-    return BABYLON.GUI;
+    return BABYLON.undefined;
 });

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3 - 3
dist/preview release/gui/babylon.gui.min.js


+ 1 - 1
dist/preview release/gui/babylon.gui.module.d.ts

@@ -2,7 +2,7 @@
 
 
 declare module 'babylonjs-gui' { 
-    export = BABYLON.GUI; 
+    export = BABYLON.[object Object]; 
 }
 
 declare module BABYLON.GUI {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 4 - 4
dist/preview release/inspector/babylon.inspector.bundle.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3 - 3
dist/preview release/inspector/babylon.inspector.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2 - 2
dist/preview release/loaders/babylon.glTF1FileLoader.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2 - 2
dist/preview release/loaders/babylon.glTF2FileLoader.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3 - 3
dist/preview release/loaders/babylon.glTFFileLoader.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/loaders/babylon.objFileLoader.min.js


+ 3 - 5
dist/preview release/loaders/babylonjs.loaders.js

@@ -5460,16 +5460,14 @@ var BABYLON;
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BJSLoaders"], factory);
+        define("babylonjs-loaders", ["BABYLON"], factory);
     else if(typeof exports === 'object')
-        exports["BJSLoaders"] = f;
+        exports["babylonjs-loaders"] = f;
     else {
         root["BABYLON"] = f;
     }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3 - 3
dist/preview release/loaders/babylonjs.loaders.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/materialsLibrary/babylon.customMaterial.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/materialsLibrary/babylon.shadowOnlyMaterial.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/materialsLibrary/babylon.waterMaterial.min.js


+ 3 - 5
dist/preview release/materialsLibrary/babylonjs.materials.js

@@ -6348,16 +6348,14 @@ BABYLON.Effect.ShadersStore['cellPixelShader'] = "precision highp float;\n\nunif
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BJSMaterials"], factory);
+        define("babylonjs-materials", ["BABYLON"], factory);
     else if(typeof exports === 'object')
-        exports["BJSMaterials"] = f;
+        exports["babylonjs-materials"] = f;
     else {
         root["BABYLON"] = f;
     }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3 - 3
dist/preview release/materialsLibrary/babylonjs.materials.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/postProcessesLibrary/babylon.asciiArtPostProcess.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/postProcessesLibrary/babylon.digitalRainPostProcess.min.js


+ 3 - 5
dist/preview release/postProcessesLibrary/babylonjs.postProcess.js

@@ -447,16 +447,14 @@ BABYLON.Effect.ShadersStore['digitalrainPixelShader'] = "\nvarying vec2 vUV;\nun
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BJSPostProcess"], factory);
+        define("babylonjs-post-process", ["BABYLON"], factory);
     else if(typeof exports === 'object')
-        exports["BJSPostProcess"] = f;
+        exports["babylonjs-post-process"] = f;
     else {
         root["BABYLON"] = f;
     }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/postProcessesLibrary/babylonjs.postProcess.min.js


+ 3 - 5
dist/preview release/proceduralTexturesLibrary/babylonjs.proceduralTextures.js

@@ -748,16 +748,14 @@ BABYLON.Effect.ShadersStore['perlinNoiseProceduralTexturePixelShader'] = "\nprec
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BJSProceduralTextures"], factory);
+        define("babylonjs-procedural-textures", ["BABYLON"], factory);
     else if(typeof exports === 'object')
-        exports["BJSProceduralTextures"] = f;
+        exports["babylonjs-procedural-textures"] = f;
     else {
         root["BABYLON"] = f;
     }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/serializers/babylon.glTF2Serializer.min.js


+ 3 - 5
dist/preview release/serializers/babylonjs.serializers.js

@@ -1295,16 +1295,14 @@ var BABYLON;
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BJSSerializers"], factory);
+        define("babylonjs-serializers", ["BABYLON"], factory);
     else if(typeof exports === 'object')
-        exports["BJSSerializers"] = f;
+        exports["babylonjs-serializers"] = f;
     else {
         root["BABYLON"] = f;
     }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/serializers/babylonjs.serializers.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 60 - 60
dist/preview release/viewer/babylon.viewer.js


+ 33 - 23
dist/preview release/viewer/babylon.viewer.max.js

@@ -27191,7 +27191,11 @@ var BABYLON;
                         texture = Texture.CreateFromBase64String(parsedTexture.base64String, parsedTexture.name, scene, !generateMipMaps);
                     }
                     else {
-                        texture = new Texture(rootUrl + parsedTexture.name, scene, !generateMipMaps);
+                        var url = rootUrl + parsedTexture.name;
+                        if (Texture.UseSerializedUrlIfAny && parsedTexture.url) {
+                            url = parsedTexture.url;
+                        }
+                        texture = new Texture(url, scene, !generateMipMaps);
                     }
                     return texture;
                 }
@@ -27254,6 +27258,10 @@ var BABYLON;
         Texture.CLAMP_ADDRESSMODE = 0;
         Texture.WRAP_ADDRESSMODE = 1;
         Texture.MIRROR_ADDRESSMODE = 2;
+        /**
+         * Gets or sets a boolean which defines if the texture url must be build from the serialized URL instead of just using the name and loading them side by side with the scene file
+         */
+        Texture.UseSerializedUrlIfAny = false;
         __decorate([
             BABYLON.serialize()
         ], Texture.prototype, "url", void 0);
@@ -51472,9 +51480,11 @@ var BABYLON;
             return this._particles.length;
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        ParticleSystem.prototype.dispose = function () {
+        ParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             if (this._vertexBuffer) {
                 this._vertexBuffer.dispose();
                 this._vertexBuffer = null;
@@ -51483,7 +51493,7 @@ var BABYLON;
                 this._scene.getEngine()._releaseBuffer(this._indexBuffer);
                 this._indexBuffer = null;
             }
-            if (this.particleTexture) {
+            if (disposeTexture && this.particleTexture) {
                 this.particleTexture.dispose();
                 this.particleTexture = null;
             }
@@ -52756,9 +52766,11 @@ var BABYLON;
             this._renderVAO = [];
         };
         /**
-         * Disposes the particle system and free the associated resources.
+         * Disposes the particle system and free the associated resources
+         * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        GPUParticleSystem.prototype.dispose = function () {
+        GPUParticleSystem.prototype.dispose = function (disposeTexture) {
+            if (disposeTexture === void 0) { disposeTexture = true; }
             var index = this._scene.particleSystems.indexOf(this);
             if (index > -1) {
                 this._scene.particleSystems.splice(index, 1);
@@ -52769,6 +52781,10 @@ var BABYLON;
                 this._randomTexture.dispose();
                 this._randomTexture = null;
             }
+            if (disposeTexture && this.particleTexture) {
+                this.particleTexture.dispose();
+                this.particleTexture = null;
+            }
             // Callback
             this.onDisposeObservable.notifyObservers(this);
             this.onDisposeObservable.clear();
@@ -90976,15 +90992,13 @@ BABYLON.Effect.IncludesShadersStore={"depthPrePass":"#ifdef DEPTHPREPASS\ngl_Fra
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : this);
 globalObject["BABYLON"] = f;
     if(true)
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BABYLON"], factory);
+        define("BABYLON",  factory);
     else if(typeof exports === 'object')
         exports["BABYLON"] = f;
     else {
@@ -111139,16 +111153,14 @@ var BABYLON;
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BABYLON"]) {
-                    return;
-                }
+                
                 
     if(true)
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BJSLoaders"], factory);
+        define("babylonjs-loaders", ["BABYLON"], factory);
     else if(typeof exports === 'object')
-        exports["BJSLoaders"] = f;
+        exports["babylonjs-loaders"] = f;
     else {
         root["BABYLON"] = f;
     }
@@ -111400,20 +111412,18 @@ exports.InitTags = InitTags;
 
 (function universalModuleDefinition(root, factory) {
                 var f = factory();
-                if (root && root["BabylonViewer"]) {
-                    return;
-                }
+                
                 var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : this);
-globalObject["BabylonViewer"] = f;
+globalObject["undefined"] = f;
     if(typeof exports === 'object' && typeof module === 'object')
         module.exports = f;
     else if(typeof define === 'function' && define.amd)
-        define(["BabylonViewer"], factory);
+        define("babylonjs-viewer",  factory);
     else if(typeof exports === 'object')
-        exports["BabylonViewer"] = f;
+        exports["babylonjs-viewer"] = f;
     else {
-        root["BabylonViewer"] = f;
+        root["undefined"] = f;
     }
 })(this, function() {
-    return BabylonViewer;
+    return undefined;
 });

+ 1 - 1
src/Particles/babylon.IParticleSystem.ts

@@ -133,7 +133,7 @@ module BABYLON {
          * Dispose the particle system and frees its associated resources.
          * @param disposeTexture defines if the particule texture must be disposed as well (true by default)
          */
-        dispose(disposeTexture: boolean): void;
+        dispose(disposeTexture?: boolean): void;
         /**
          * Clones the particle system.
          * @param name The name of the cloned object