فهرست منبع

fixing issue with extra uvs

David Catuhe 10 سال پیش
والد
کامیت
30bd2fe61a
67فایلهای تغییر یافته به همراه445 افزوده شده و 259 حذف شده
  1. 12 11
      dist/preview release - alpha/babylon.2.2.js
  2. 149 55
      dist/preview release - alpha/babylon.2.2.max.js
  3. 18 17
      dist/preview release - alpha/babylon.2.2.noworker.js
  4. 1 1
      src/Actions/babylon.condition.js
  5. 1 1
      src/Actions/babylon.directActions.js
  6. 1 1
      src/Actions/babylon.interpolateValueAction.js
  7. 1 1
      src/Animations/babylon.easing.js
  8. 1 1
      src/Bones/babylon.bone.js
  9. 1 1
      src/Cameras/VR/babylon.vrDeviceOrientationCamera.js
  10. 1 1
      src/Cameras/VR/babylon.webVRCamera.js
  11. 1 1
      src/Cameras/babylon.arcRotateCamera.js
  12. 1 1
      src/Cameras/babylon.camera.js
  13. 1 1
      src/Cameras/babylon.deviceOrientationCamera.js
  14. 1 1
      src/Cameras/babylon.followCamera.js
  15. 1 1
      src/Cameras/babylon.freeCamera.js
  16. 1 1
      src/Cameras/babylon.gamepadCamera.js
  17. 1 1
      src/Cameras/babylon.stereoscopicCameras.js
  18. 1 1
      src/Cameras/babylon.targetCamera.js
  19. 1 1
      src/Cameras/babylon.touchCamera.js
  20. 1 1
      src/Cameras/babylon.virtualJoysticksCamera.js
  21. 1 1
      src/Lights/babylon.directionalLight.js
  22. 1 1
      src/Lights/babylon.hemisphericLight.js
  23. 1 1
      src/Lights/babylon.light.js
  24. 1 1
      src/Lights/babylon.pointLight.js
  25. 1 1
      src/Lights/babylon.spotLight.js
  26. 40 0
      src/Loading/Plugins/babylon.babylonFileLoader.js
  27. 52 0
      src/Loading/Plugins/babylon.babylonFileLoader.ts
  28. 1 1
      src/Materials/Textures/Procedurals/babylon.customProceduralTexture.js
  29. 1 1
      src/Materials/Textures/Procedurals/babylon.proceduralTexture.js
  30. 1 1
      src/Materials/Textures/Procedurals/babylon.standardProceduralTexture.js
  31. 1 1
      src/Materials/Textures/babylon.cubeTexture.js
  32. 1 1
      src/Materials/Textures/babylon.dynamicTexture.js
  33. 1 1
      src/Materials/Textures/babylon.mirrorTexture.js
  34. 0 2
      src/Materials/Textures/babylon.rawTexture.js
  35. 1 1
      src/Materials/Textures/babylon.renderTargetTexture.js
  36. 1 1
      src/Materials/Textures/babylon.texture.js
  37. 1 1
      src/Materials/Textures/babylon.videoTexture.js
  38. 1 1
      src/Materials/babylon.multiMaterial.js
  39. 1 1
      src/Materials/babylon.shaderMaterial.js
  40. 1 1
      src/Materials/babylon.standardMaterial.js
  41. 1 1
      src/Mesh/babylon.abstractMesh.js
  42. 1 1
      src/Mesh/babylon.geometry.js
  43. 1 1
      src/Mesh/babylon.groundMesh.js
  44. 1 1
      src/Mesh/babylon.instancedMesh.js
  45. 1 1
      src/Mesh/babylon.linesMesh.js
  46. 1 1
      src/Mesh/babylon.mesh.js
  47. 55 55
      src/Mesh/babylon.mesh.vertexData.js
  48. 60 60
      src/Mesh/babylon.mesh.vertexData.ts
  49. 1 1
      src/Mesh/babylon.polygonMesh.js
  50. 1 1
      src/PostProcess/babylon.anaglyphPostProcess.js
  51. 1 1
      src/PostProcess/babylon.blackAndWhitePostProcess.js
  52. 1 1
      src/PostProcess/babylon.blurPostProcess.js
  53. 1 1
      src/PostProcess/babylon.colorCorrectionPostProcess.js
  54. 1 1
      src/PostProcess/babylon.convolutionPostProcess.js
  55. 1 1
      src/PostProcess/babylon.displayPassPostProcess.js
  56. 1 1
      src/PostProcess/babylon.filterPostProcess.js
  57. 1 1
      src/PostProcess/babylon.fxaaPostProcess.js
  58. 1 1
      src/PostProcess/babylon.hdrRenderingPipeline.js
  59. 1 1
      src/PostProcess/babylon.lensRenderingPipeline.js
  60. 1 1
      src/PostProcess/babylon.passPostProcess.js
  61. 1 1
      src/PostProcess/babylon.refractionPostProcess.js
  62. 1 1
      src/PostProcess/babylon.ssaoRenderingPipeline.js
  63. 1 1
      src/PostProcess/babylon.stereoscopicInterlacePostProcess.js
  64. 1 1
      src/PostProcess/babylon.volumetricLightScatteringPostProcess.js
  65. 1 1
      src/PostProcess/babylon.vrDistortionCorrectionPostProcess.js
  66. 1 1
      src/Tools/babylon.gamepads.js
  67. 1 1
      src/Tools/babylon.sceneOptimizer.js

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


+ 149 - 55
dist/preview release - alpha/babylon.2.2.max.js

@@ -19692,6 +19692,18 @@ var BABYLON;
                 if (parsedMesh.hasUVs2) {
                     mesh._delayInfo.push(BABYLON.VertexBuffer.UV2Kind);
                 }
+                if (parsedMesh.hasUVs3) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV3Kind);
+                }
+                if (parsedMesh.hasUVs4) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV4Kind);
+                }
+                if (parsedMesh.hasUVs5) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV5Kind);
+                }
+                if (parsedMesh.hasUVs6) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV6Kind);
+                }
                 if (parsedMesh.hasColors) {
                     mesh._delayInfo.push(BABYLON.VertexBuffer.ColorKind);
                 }
@@ -20049,6 +20061,22 @@ var BABYLON;
                     var uvs2Data = new Float32Array(parsedGeometry, binaryInfo.uvs2AttrDesc.offset, binaryInfo.uvs2AttrDesc.count);
                     mesh.setVerticesData(BABYLON.VertexBuffer.UV2Kind, uvs2Data, false);
                 }
+                if (binaryInfo.uvs3AttrDesc && binaryInfo.uvs3AttrDesc.count > 0) {
+                    var uvs3Data = new Float32Array(parsedGeometry, binaryInfo.uvs3AttrDesc.offset, binaryInfo.uvs3AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV3Kind, uvs3Data, false);
+                }
+                if (binaryInfo.uvs4AttrDesc && binaryInfo.uvs4AttrDesc.count > 0) {
+                    var uvs4Data = new Float32Array(parsedGeometry, binaryInfo.uvs4AttrDesc.offset, binaryInfo.uvs4AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV4Kind, uvs4Data, false);
+                }
+                if (binaryInfo.uvs5AttrDesc && binaryInfo.uvs5AttrDesc.count > 0) {
+                    var uvs5Data = new Float32Array(parsedGeometry, binaryInfo.uvs5AttrDesc.offset, binaryInfo.uvs5AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV5Kind, uvs5Data, false);
+                }
+                if (binaryInfo.uvs6AttrDesc && binaryInfo.uvs6AttrDesc.count > 0) {
+                    var uvs6Data = new Float32Array(parsedGeometry, binaryInfo.uvs6AttrDesc.offset, binaryInfo.uvs6AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV6Kind, uvs6Data, false);
+                }
                 if (binaryInfo.colorsAttrDesc && binaryInfo.colorsAttrDesc.count > 0) {
                     var colorsData = new Float32Array(parsedGeometry, binaryInfo.colorsAttrDesc.offset, binaryInfo.colorsAttrDesc.count);
                     mesh.setVerticesData(BABYLON.VertexBuffer.ColorKind, colorsData, false, binaryInfo.colorsAttrDesc.stride);
@@ -20087,6 +20115,18 @@ var BABYLON;
                 if (parsedGeometry.uvs2) {
                     mesh.setVerticesData(BABYLON.VertexBuffer.UV2Kind, parsedGeometry.uvs2, false);
                 }
+                if (parsedGeometry.uvs3) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV3Kind, parsedGeometry.uvs3, false);
+                }
+                if (parsedGeometry.uvs4) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV4Kind, parsedGeometry.uvs4, false);
+                }
+                if (parsedGeometry.uvs5) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV5Kind, parsedGeometry.uvs5, false);
+                }
+                if (parsedGeometry.uvs6) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV6Kind, parsedGeometry.uvs6, false);
+                }
                 if (parsedGeometry.colors) {
                     mesh.setVerticesData(BABYLON.VertexBuffer.ColorKind, checkColors4(parsedGeometry.colors, parsedGeometry.positions.length / 3), false);
                 }
@@ -25284,19 +25324,19 @@ var BABYLON;
                     this.uvs = data;
                     break;
                 case BABYLON.VertexBuffer.UV2Kind:
-                    this.uv2s = data;
+                    this.uvs2 = data;
                     break;
                 case BABYLON.VertexBuffer.UV3Kind:
-                    this.uv3s = data;
+                    this.uvs3 = data;
                     break;
                 case BABYLON.VertexBuffer.UV4Kind:
-                    this.uv4s = data;
+                    this.uvs4 = data;
                     break;
                 case BABYLON.VertexBuffer.UV5Kind:
-                    this.uv5s = data;
+                    this.uvs5 = data;
                     break;
                 case BABYLON.VertexBuffer.UV6Kind:
-                    this.uv6s = data;
+                    this.uvs6 = data;
                     break;
                 case BABYLON.VertexBuffer.ColorKind:
                     this.colors = data;
@@ -25331,20 +25371,20 @@ var BABYLON;
             if (this.uvs) {
                 meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UVKind, this.uvs, updatable);
             }
-            if (this.uv2s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uv2s, updatable);
+            if (this.uvs2) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uvs2, updatable);
             }
-            if (this.uv3s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uv3s, updatable);
+            if (this.uvs3) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uvs3, updatable);
             }
-            if (this.uv4s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uv4s, updatable);
+            if (this.uvs4) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uvs4, updatable);
             }
-            if (this.uv5s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uv5s, updatable);
+            if (this.uvs5) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uvs5, updatable);
             }
-            if (this.uv6s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uv6s, updatable);
+            if (this.uvs6) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uvs6, updatable);
             }
             if (this.colors) {
                 meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.ColorKind, this.colors, updatable);
@@ -25369,20 +25409,20 @@ var BABYLON;
             if (this.uvs) {
                 meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UVKind, this.uvs, updateExtends, makeItUnique);
             }
-            if (this.uv2s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uv2s, updateExtends, makeItUnique);
+            if (this.uvs2) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uvs2, updateExtends, makeItUnique);
             }
-            if (this.uv3s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uv3s, updateExtends, makeItUnique);
+            if (this.uvs3) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uvs3, updateExtends, makeItUnique);
             }
-            if (this.uv4s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uv4s, updateExtends, makeItUnique);
+            if (this.uvs4) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uvs4, updateExtends, makeItUnique);
             }
-            if (this.uv5s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uv5s, updateExtends, makeItUnique);
+            if (this.uvs5) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uvs5, updateExtends, makeItUnique);
             }
-            if (this.uv6s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uv6s, updateExtends, makeItUnique);
+            if (this.uvs6) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uvs6, updateExtends, makeItUnique);
             }
             if (this.colors) {
                 meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.ColorKind, this.colors, updateExtends, makeItUnique);
@@ -25454,44 +25494,44 @@ var BABYLON;
                     this.uvs.push(other.uvs[index]);
                 }
             }
-            if (other.uv2s) {
-                if (!this.uv2s) {
-                    this.uv2s = [];
+            if (other.uvs2) {
+                if (!this.uvs2) {
+                    this.uvs2 = [];
                 }
-                for (index = 0; index < other.uv2s.length; index++) {
-                    this.uv2s.push(other.uv2s[index]);
+                for (index = 0; index < other.uvs2.length; index++) {
+                    this.uvs2.push(other.uvs2[index]);
                 }
             }
-            if (other.uv3s) {
-                if (!this.uv3s) {
-                    this.uv3s = [];
+            if (other.uvs3) {
+                if (!this.uvs3) {
+                    this.uvs3 = [];
                 }
-                for (index = 0; index < other.uv3s.length; index++) {
-                    this.uv3s.push(other.uv3s[index]);
+                for (index = 0; index < other.uvs3.length; index++) {
+                    this.uvs3.push(other.uvs3[index]);
                 }
             }
-            if (other.uv4s) {
-                if (!this.uv4s) {
-                    this.uv4s = [];
+            if (other.uvs4) {
+                if (!this.uvs4) {
+                    this.uvs4 = [];
                 }
-                for (index = 0; index < other.uv4s.length; index++) {
-                    this.uv4s.push(other.uv4s[index]);
+                for (index = 0; index < other.uvs4.length; index++) {
+                    this.uvs4.push(other.uvs4[index]);
                 }
             }
-            if (other.uv5s) {
-                if (!this.uv5s) {
-                    this.uv5s = [];
+            if (other.uvs5) {
+                if (!this.uvs5) {
+                    this.uvs5 = [];
                 }
-                for (index = 0; index < other.uv5s.length; index++) {
-                    this.uv5s.push(other.uv5s[index]);
+                for (index = 0; index < other.uvs5.length; index++) {
+                    this.uvs5.push(other.uvs5[index]);
                 }
             }
-            if (other.uv6s) {
-                if (!this.uv6s) {
-                    this.uv6s = [];
+            if (other.uvs6) {
+                if (!this.uvs6) {
+                    this.uvs6 = [];
                 }
-                for (index = 0; index < other.uv6s.length; index++) {
-                    this.uv6s.push(other.uv6s[index]);
+                for (index = 0; index < other.uvs6.length; index++) {
+                    this.uvs6.push(other.uvs6[index]);
                 }
             }
             if (other.matricesIndices) {
@@ -25538,19 +25578,19 @@ var BABYLON;
                 result.uvs = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UVKind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV2Kind)) {
-                result.uv2s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV2Kind, copyWhenShared);
+                result.uvs2 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV2Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV3Kind)) {
-                result.uv3s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV3Kind, copyWhenShared);
+                result.uvs3 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV3Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV4Kind)) {
-                result.uv4s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV4Kind, copyWhenShared);
+                result.uvs4 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV4Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV5Kind)) {
-                result.uv5s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV5Kind, copyWhenShared);
+                result.uvs5 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV5Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV6Kind)) {
-                result.uv6s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV6Kind, copyWhenShared);
+                result.uvs6 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV6Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.ColorKind)) {
                 result.colors = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.ColorKind, copyWhenShared);
@@ -30431,6 +30471,60 @@ var BABYLON;
 
 var BABYLON;
 (function (BABYLON) {
+    var RawTexture = (function (_super) {
+        __extends(RawTexture, _super);
+        function RawTexture(data, width, height, format, scene, generateMipMaps, invertY, samplingMode) {
+            if (generateMipMaps === void 0) { generateMipMaps = true; }
+            if (invertY === void 0) { invertY = false; }
+            if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
+            _super.call(this, null, scene, !generateMipMaps, invertY);
+            this.format = format;
+            this._texture = scene.getEngine().createRawTexture(data, width, height, format, generateMipMaps, invertY, samplingMode);
+            this.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE;
+            this.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE;
+        }
+        RawTexture.prototype.update = function (data) {
+            this.getScene().getEngine().updateRawTexture(this._texture, data, this.format, this._invertY);
+        };
+        // Statics
+        RawTexture.CreateLuminanceTexture = function (data, width, height, scene, generateMipMaps, invertY, samplingMode) {
+            if (generateMipMaps === void 0) { generateMipMaps = true; }
+            if (invertY === void 0) { invertY = false; }
+            if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
+            return new RawTexture(data, width, height, BABYLON.Engine.TEXTUREFORMAT_LUMINANCE, scene, generateMipMaps, invertY, samplingMode);
+        };
+        RawTexture.CreateLuminanceAlphaTexture = function (data, width, height, scene, generateMipMaps, invertY, samplingMode) {
+            if (generateMipMaps === void 0) { generateMipMaps = true; }
+            if (invertY === void 0) { invertY = false; }
+            if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
+            return new RawTexture(data, width, height, BABYLON.Engine.TEXTUREFORMAT_LUMINANCE_ALPHA, scene, generateMipMaps, invertY, samplingMode);
+        };
+        RawTexture.CreateAlphaTexture = function (data, width, height, scene, generateMipMaps, invertY, samplingMode) {
+            if (generateMipMaps === void 0) { generateMipMaps = true; }
+            if (invertY === void 0) { invertY = false; }
+            if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
+            return new RawTexture(data, width, height, BABYLON.Engine.TEXTUREFORMAT_ALPHA, scene, generateMipMaps, invertY, samplingMode);
+        };
+        RawTexture.CreateRGBTexture = function (data, width, height, scene, generateMipMaps, invertY, samplingMode) {
+            if (generateMipMaps === void 0) { generateMipMaps = true; }
+            if (invertY === void 0) { invertY = false; }
+            if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
+            return new RawTexture(data, width, height, BABYLON.Engine.TEXTUREFORMAT_RGB, scene, generateMipMaps, invertY, samplingMode);
+        };
+        RawTexture.CreateRGBATexture = function (data, width, height, scene, generateMipMaps, invertY, samplingMode) {
+            if (generateMipMaps === void 0) { generateMipMaps = true; }
+            if (invertY === void 0) { invertY = false; }
+            if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
+            return new RawTexture(data, width, height, BABYLON.Engine.TEXTUREFORMAT_RGBA, scene, generateMipMaps, invertY, samplingMode);
+        };
+        return RawTexture;
+    })(BABYLON.Texture);
+    BABYLON.RawTexture = RawTexture;
+})(BABYLON || (BABYLON = {}));
+
+
+var BABYLON;
+(function (BABYLON) {
     var IndexedVector2 = (function (_super) {
         __extends(IndexedVector2, _super);
         function IndexedVector2(original, index) {

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


+ 1 - 1
src/Actions/babylon.condition.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Actions/babylon.directActions.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Actions/babylon.interpolateValueAction.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Animations/babylon.easing.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Bones/babylon.bone.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/VR/babylon.vrDeviceOrientationCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/VR/babylon.webVRCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.arcRotateCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.camera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.deviceOrientationCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.followCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.freeCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.gamepadCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.stereoscopicCameras.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.targetCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.touchCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Cameras/babylon.virtualJoysticksCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Lights/babylon.directionalLight.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Lights/babylon.hemisphericLight.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Lights/babylon.light.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Lights/babylon.pointLight.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Lights/babylon.spotLight.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 40 - 0
src/Loading/Plugins/babylon.babylonFileLoader.js

@@ -606,6 +606,18 @@ var BABYLON;
                 if (parsedMesh.hasUVs2) {
                     mesh._delayInfo.push(BABYLON.VertexBuffer.UV2Kind);
                 }
+                if (parsedMesh.hasUVs3) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV3Kind);
+                }
+                if (parsedMesh.hasUVs4) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV4Kind);
+                }
+                if (parsedMesh.hasUVs5) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV5Kind);
+                }
+                if (parsedMesh.hasUVs6) {
+                    mesh._delayInfo.push(BABYLON.VertexBuffer.UV6Kind);
+                }
                 if (parsedMesh.hasColors) {
                     mesh._delayInfo.push(BABYLON.VertexBuffer.ColorKind);
                 }
@@ -963,6 +975,22 @@ var BABYLON;
                     var uvs2Data = new Float32Array(parsedGeometry, binaryInfo.uvs2AttrDesc.offset, binaryInfo.uvs2AttrDesc.count);
                     mesh.setVerticesData(BABYLON.VertexBuffer.UV2Kind, uvs2Data, false);
                 }
+                if (binaryInfo.uvs3AttrDesc && binaryInfo.uvs3AttrDesc.count > 0) {
+                    var uvs3Data = new Float32Array(parsedGeometry, binaryInfo.uvs3AttrDesc.offset, binaryInfo.uvs3AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV3Kind, uvs3Data, false);
+                }
+                if (binaryInfo.uvs4AttrDesc && binaryInfo.uvs4AttrDesc.count > 0) {
+                    var uvs4Data = new Float32Array(parsedGeometry, binaryInfo.uvs4AttrDesc.offset, binaryInfo.uvs4AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV4Kind, uvs4Data, false);
+                }
+                if (binaryInfo.uvs5AttrDesc && binaryInfo.uvs5AttrDesc.count > 0) {
+                    var uvs5Data = new Float32Array(parsedGeometry, binaryInfo.uvs5AttrDesc.offset, binaryInfo.uvs5AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV5Kind, uvs5Data, false);
+                }
+                if (binaryInfo.uvs6AttrDesc && binaryInfo.uvs6AttrDesc.count > 0) {
+                    var uvs6Data = new Float32Array(parsedGeometry, binaryInfo.uvs6AttrDesc.offset, binaryInfo.uvs6AttrDesc.count);
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV6Kind, uvs6Data, false);
+                }
                 if (binaryInfo.colorsAttrDesc && binaryInfo.colorsAttrDesc.count > 0) {
                     var colorsData = new Float32Array(parsedGeometry, binaryInfo.colorsAttrDesc.offset, binaryInfo.colorsAttrDesc.count);
                     mesh.setVerticesData(BABYLON.VertexBuffer.ColorKind, colorsData, false, binaryInfo.colorsAttrDesc.stride);
@@ -1001,6 +1029,18 @@ var BABYLON;
                 if (parsedGeometry.uvs2) {
                     mesh.setVerticesData(BABYLON.VertexBuffer.UV2Kind, parsedGeometry.uvs2, false);
                 }
+                if (parsedGeometry.uvs3) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV3Kind, parsedGeometry.uvs3, false);
+                }
+                if (parsedGeometry.uvs4) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV4Kind, parsedGeometry.uvs4, false);
+                }
+                if (parsedGeometry.uvs5) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV5Kind, parsedGeometry.uvs5, false);
+                }
+                if (parsedGeometry.uvs6) {
+                    mesh.setVerticesData(BABYLON.VertexBuffer.UV6Kind, parsedGeometry.uvs6, false);
+                }
                 if (parsedGeometry.colors) {
                     mesh.setVerticesData(BABYLON.VertexBuffer.ColorKind, checkColors4(parsedGeometry.colors, parsedGeometry.positions.length / 3), false);
                 }

+ 52 - 0
src/Loading/Plugins/babylon.babylonFileLoader.ts

@@ -760,6 +760,22 @@
                 mesh._delayInfo.push(BABYLON.VertexBuffer.UV2Kind);
             }
 
+            if (parsedMesh.hasUVs3) {
+                mesh._delayInfo.push(BABYLON.VertexBuffer.UV3Kind);
+            }
+
+            if (parsedMesh.hasUVs4) {
+                mesh._delayInfo.push(BABYLON.VertexBuffer.UV4Kind);
+            }
+
+            if (parsedMesh.hasUVs5) {
+                mesh._delayInfo.push(BABYLON.VertexBuffer.UV5Kind);
+            }
+
+            if (parsedMesh.hasUVs6) {
+                mesh._delayInfo.push(BABYLON.VertexBuffer.UV6Kind);
+            }
+
             if (parsedMesh.hasColors) {
                 mesh._delayInfo.push(BABYLON.VertexBuffer.ColorKind);
             }
@@ -1188,6 +1204,26 @@
                 mesh.setVerticesData(BABYLON.VertexBuffer.UV2Kind, uvs2Data, false);
             }
 
+            if (binaryInfo.uvs3AttrDesc && binaryInfo.uvs3AttrDesc.count > 0) {
+                var uvs3Data = new Float32Array(parsedGeometry, binaryInfo.uvs3AttrDesc.offset, binaryInfo.uvs3AttrDesc.count);
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV3Kind, uvs3Data, false);
+            }
+
+            if (binaryInfo.uvs4AttrDesc && binaryInfo.uvs4AttrDesc.count > 0) {
+                var uvs4Data = new Float32Array(parsedGeometry, binaryInfo.uvs4AttrDesc.offset, binaryInfo.uvs4AttrDesc.count);
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV4Kind, uvs4Data, false);
+            }
+
+            if (binaryInfo.uvs5AttrDesc && binaryInfo.uvs5AttrDesc.count > 0) {
+                var uvs5Data = new Float32Array(parsedGeometry, binaryInfo.uvs5AttrDesc.offset, binaryInfo.uvs5AttrDesc.count);
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV5Kind, uvs5Data, false);
+            }
+
+            if (binaryInfo.uvs6AttrDesc && binaryInfo.uvs6AttrDesc.count > 0) {
+                var uvs6Data = new Float32Array(parsedGeometry, binaryInfo.uvs6AttrDesc.offset, binaryInfo.uvs6AttrDesc.count);
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV6Kind, uvs6Data, false);
+            }
+
             if (binaryInfo.colorsAttrDesc && binaryInfo.colorsAttrDesc.count > 0) {
                 var colorsData = new Float32Array(parsedGeometry, binaryInfo.colorsAttrDesc.offset, binaryInfo.colorsAttrDesc.count);
                 mesh.setVerticesData(BABYLON.VertexBuffer.ColorKind, colorsData, false, binaryInfo.colorsAttrDesc.stride);
@@ -1234,6 +1270,22 @@
                 mesh.setVerticesData(BABYLON.VertexBuffer.UV2Kind, parsedGeometry.uvs2, false);
             }
 
+            if (parsedGeometry.uvs3) {
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV3Kind, parsedGeometry.uvs3, false);
+            }
+
+            if (parsedGeometry.uvs4) {
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV4Kind, parsedGeometry.uvs4, false);
+            }
+
+            if (parsedGeometry.uvs5) {
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV5Kind, parsedGeometry.uvs5, false);
+            }
+
+            if (parsedGeometry.uvs6) {
+                mesh.setVerticesData(BABYLON.VertexBuffer.UV6Kind, parsedGeometry.uvs6, false);
+            }
+
             if (parsedGeometry.colors) {
                 mesh.setVerticesData(BABYLON.VertexBuffer.ColorKind, checkColors4(parsedGeometry.colors, parsedGeometry.positions.length / 3), false);
             }

+ 1 - 1
src/Materials/Textures/Procedurals/babylon.customProceduralTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/Textures/Procedurals/babylon.proceduralTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/Textures/Procedurals/babylon.standardProceduralTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/Textures/babylon.cubeTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/Textures/babylon.dynamicTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/Textures/babylon.mirrorTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 0 - 2
src/Materials/Textures/babylon.rawTexture.js

@@ -21,7 +21,6 @@ var BABYLON;
         RawTexture.prototype.update = function (data) {
             this.getScene().getEngine().updateRawTexture(this._texture, data, this.format, this._invertY);
         };
-        ;
         // Statics
         RawTexture.CreateLuminanceTexture = function (data, width, height, scene, generateMipMaps, invertY, samplingMode) {
             if (generateMipMaps === void 0) { generateMipMaps = true; }
@@ -57,4 +56,3 @@ var BABYLON;
     })(BABYLON.Texture);
     BABYLON.RawTexture = RawTexture;
 })(BABYLON || (BABYLON = {}));
-//# sourceMappingURL=babylon.rawTexture.js.map

+ 1 - 1
src/Materials/Textures/babylon.renderTargetTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/Textures/babylon.texture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/Textures/babylon.videoTexture.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/babylon.multiMaterial.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/babylon.shaderMaterial.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Materials/babylon.standardMaterial.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Mesh/babylon.abstractMesh.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Mesh/babylon.geometry.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Mesh/babylon.groundMesh.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Mesh/babylon.instancedMesh.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Mesh/babylon.linesMesh.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

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

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 55 - 55
src/Mesh/babylon.mesh.vertexData.js

@@ -15,19 +15,19 @@ var BABYLON;
                     this.uvs = data;
                     break;
                 case BABYLON.VertexBuffer.UV2Kind:
-                    this.uv2s = data;
+                    this.uvs2 = data;
                     break;
                 case BABYLON.VertexBuffer.UV3Kind:
-                    this.uv3s = data;
+                    this.uvs3 = data;
                     break;
                 case BABYLON.VertexBuffer.UV4Kind:
-                    this.uv4s = data;
+                    this.uvs4 = data;
                     break;
                 case BABYLON.VertexBuffer.UV5Kind:
-                    this.uv5s = data;
+                    this.uvs5 = data;
                     break;
                 case BABYLON.VertexBuffer.UV6Kind:
-                    this.uv6s = data;
+                    this.uvs6 = data;
                     break;
                 case BABYLON.VertexBuffer.ColorKind:
                     this.colors = data;
@@ -62,20 +62,20 @@ var BABYLON;
             if (this.uvs) {
                 meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UVKind, this.uvs, updatable);
             }
-            if (this.uv2s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uv2s, updatable);
+            if (this.uvs2) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uvs2, updatable);
             }
-            if (this.uv3s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uv3s, updatable);
+            if (this.uvs3) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uvs3, updatable);
             }
-            if (this.uv4s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uv4s, updatable);
+            if (this.uvs4) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uvs4, updatable);
             }
-            if (this.uv5s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uv5s, updatable);
+            if (this.uvs5) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uvs5, updatable);
             }
-            if (this.uv6s) {
-                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uv6s, updatable);
+            if (this.uvs6) {
+                meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uvs6, updatable);
             }
             if (this.colors) {
                 meshOrGeometry.setVerticesData(BABYLON.VertexBuffer.ColorKind, this.colors, updatable);
@@ -100,20 +100,20 @@ var BABYLON;
             if (this.uvs) {
                 meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UVKind, this.uvs, updateExtends, makeItUnique);
             }
-            if (this.uv2s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uv2s, updateExtends, makeItUnique);
+            if (this.uvs2) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV2Kind, this.uvs2, updateExtends, makeItUnique);
             }
-            if (this.uv3s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uv3s, updateExtends, makeItUnique);
+            if (this.uvs3) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV3Kind, this.uvs3, updateExtends, makeItUnique);
             }
-            if (this.uv4s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uv4s, updateExtends, makeItUnique);
+            if (this.uvs4) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV4Kind, this.uvs4, updateExtends, makeItUnique);
             }
-            if (this.uv5s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uv5s, updateExtends, makeItUnique);
+            if (this.uvs5) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV5Kind, this.uvs5, updateExtends, makeItUnique);
             }
-            if (this.uv6s) {
-                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uv6s, updateExtends, makeItUnique);
+            if (this.uvs6) {
+                meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.UV6Kind, this.uvs6, updateExtends, makeItUnique);
             }
             if (this.colors) {
                 meshOrGeometry.updateVerticesData(BABYLON.VertexBuffer.ColorKind, this.colors, updateExtends, makeItUnique);
@@ -185,44 +185,44 @@ var BABYLON;
                     this.uvs.push(other.uvs[index]);
                 }
             }
-            if (other.uv2s) {
-                if (!this.uv2s) {
-                    this.uv2s = [];
+            if (other.uvs2) {
+                if (!this.uvs2) {
+                    this.uvs2 = [];
                 }
-                for (index = 0; index < other.uv2s.length; index++) {
-                    this.uv2s.push(other.uv2s[index]);
+                for (index = 0; index < other.uvs2.length; index++) {
+                    this.uvs2.push(other.uvs2[index]);
                 }
             }
-            if (other.uv3s) {
-                if (!this.uv3s) {
-                    this.uv3s = [];
+            if (other.uvs3) {
+                if (!this.uvs3) {
+                    this.uvs3 = [];
                 }
-                for (index = 0; index < other.uv3s.length; index++) {
-                    this.uv3s.push(other.uv3s[index]);
+                for (index = 0; index < other.uvs3.length; index++) {
+                    this.uvs3.push(other.uvs3[index]);
                 }
             }
-            if (other.uv4s) {
-                if (!this.uv4s) {
-                    this.uv4s = [];
+            if (other.uvs4) {
+                if (!this.uvs4) {
+                    this.uvs4 = [];
                 }
-                for (index = 0; index < other.uv4s.length; index++) {
-                    this.uv4s.push(other.uv4s[index]);
+                for (index = 0; index < other.uvs4.length; index++) {
+                    this.uvs4.push(other.uvs4[index]);
                 }
             }
-            if (other.uv5s) {
-                if (!this.uv5s) {
-                    this.uv5s = [];
+            if (other.uvs5) {
+                if (!this.uvs5) {
+                    this.uvs5 = [];
                 }
-                for (index = 0; index < other.uv5s.length; index++) {
-                    this.uv5s.push(other.uv5s[index]);
+                for (index = 0; index < other.uvs5.length; index++) {
+                    this.uvs5.push(other.uvs5[index]);
                 }
             }
-            if (other.uv6s) {
-                if (!this.uv6s) {
-                    this.uv6s = [];
+            if (other.uvs6) {
+                if (!this.uvs6) {
+                    this.uvs6 = [];
                 }
-                for (index = 0; index < other.uv6s.length; index++) {
-                    this.uv6s.push(other.uv6s[index]);
+                for (index = 0; index < other.uvs6.length; index++) {
+                    this.uvs6.push(other.uvs6[index]);
                 }
             }
             if (other.matricesIndices) {
@@ -269,19 +269,19 @@ var BABYLON;
                 result.uvs = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UVKind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV2Kind)) {
-                result.uv2s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV2Kind, copyWhenShared);
+                result.uvs2 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV2Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV3Kind)) {
-                result.uv3s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV3Kind, copyWhenShared);
+                result.uvs3 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV3Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV4Kind)) {
-                result.uv4s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV4Kind, copyWhenShared);
+                result.uvs4 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV4Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV5Kind)) {
-                result.uv5s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV5Kind, copyWhenShared);
+                result.uvs5 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV5Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.UV6Kind)) {
-                result.uv6s = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV6Kind, copyWhenShared);
+                result.uvs6 = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.UV6Kind, copyWhenShared);
             }
             if (meshOrGeometry.isVerticesDataPresent(BABYLON.VertexBuffer.ColorKind)) {
                 result.colors = meshOrGeometry.getVerticesData(BABYLON.VertexBuffer.ColorKind, copyWhenShared);

+ 60 - 60
src/Mesh/babylon.mesh.vertexData.ts

@@ -12,11 +12,11 @@
         public positions: number[];
         public normals: number[];
         public uvs: number[];
-        public uv2s: number[];
-        public uv3s: number[];
-        public uv4s: number[];
-        public uv5s: number[];
-        public uv6s: number[];
+        public uvs2: number[];
+        public uvs3: number[];
+        public uvs4: number[];
+        public uvs5: number[];
+        public uvs6: number[];
         public colors: number[];
         public matricesIndices: number[];
         public matricesWeights: number[];
@@ -34,19 +34,19 @@
                     this.uvs = data;
                     break;
                 case VertexBuffer.UV2Kind:
-                    this.uv2s = data;
+                    this.uvs2 = data;
                     break;
                 case VertexBuffer.UV3Kind:
-                    this.uv3s = data;
+                    this.uvs3 = data;
                     break;
                 case VertexBuffer.UV4Kind:
-                    this.uv4s = data;
+                    this.uvs4 = data;
                     break;
                 case VertexBuffer.UV5Kind:
-                    this.uv5s = data;
+                    this.uvs5 = data;
                     break;
                 case VertexBuffer.UV6Kind:
-                    this.uv6s = data;
+                    this.uvs6 = data;
                     break;
                 case VertexBuffer.ColorKind:
                     this.colors = data;
@@ -89,24 +89,24 @@
                 meshOrGeometry.setVerticesData(VertexBuffer.UVKind, this.uvs, updatable);
             }
 
-            if (this.uv2s) {
-                meshOrGeometry.setVerticesData(VertexBuffer.UV2Kind, this.uv2s, updatable);
+            if (this.uvs2) {
+                meshOrGeometry.setVerticesData(VertexBuffer.UV2Kind, this.uvs2, updatable);
             }
 
-            if (this.uv3s) {
-                meshOrGeometry.setVerticesData(VertexBuffer.UV3Kind, this.uv3s, updatable);
+            if (this.uvs3) {
+                meshOrGeometry.setVerticesData(VertexBuffer.UV3Kind, this.uvs3, updatable);
             }
 
-            if (this.uv4s) {
-                meshOrGeometry.setVerticesData(VertexBuffer.UV4Kind, this.uv4s, updatable);
+            if (this.uvs4) {
+                meshOrGeometry.setVerticesData(VertexBuffer.UV4Kind, this.uvs4, updatable);
             }
 
-            if (this.uv5s) {
-                meshOrGeometry.setVerticesData(VertexBuffer.UV5Kind, this.uv5s, updatable);
+            if (this.uvs5) {
+                meshOrGeometry.setVerticesData(VertexBuffer.UV5Kind, this.uvs5, updatable);
             }
 
-            if (this.uv6s) {
-                meshOrGeometry.setVerticesData(VertexBuffer.UV6Kind, this.uv6s, updatable);
+            if (this.uvs6) {
+                meshOrGeometry.setVerticesData(VertexBuffer.UV6Kind, this.uvs6, updatable);
             }
 
             if (this.colors) {
@@ -139,24 +139,24 @@
                 meshOrGeometry.updateVerticesData(VertexBuffer.UVKind, this.uvs, updateExtends, makeItUnique);
             }
 
-            if (this.uv2s) {
-                meshOrGeometry.updateVerticesData(VertexBuffer.UV2Kind, this.uv2s, updateExtends, makeItUnique);
+            if (this.uvs2) {
+                meshOrGeometry.updateVerticesData(VertexBuffer.UV2Kind, this.uvs2, updateExtends, makeItUnique);
             }
 
-            if (this.uv3s) {
-                meshOrGeometry.updateVerticesData(VertexBuffer.UV3Kind, this.uv3s, updateExtends, makeItUnique);
+            if (this.uvs3) {
+                meshOrGeometry.updateVerticesData(VertexBuffer.UV3Kind, this.uvs3, updateExtends, makeItUnique);
             }
 
-            if (this.uv4s) {
-                meshOrGeometry.updateVerticesData(VertexBuffer.UV4Kind, this.uv4s, updateExtends, makeItUnique);
+            if (this.uvs4) {
+                meshOrGeometry.updateVerticesData(VertexBuffer.UV4Kind, this.uvs4, updateExtends, makeItUnique);
             }
 
-            if (this.uv5s) {
-                meshOrGeometry.updateVerticesData(VertexBuffer.UV5Kind, this.uv5s, updateExtends, makeItUnique);
+            if (this.uvs5) {
+                meshOrGeometry.updateVerticesData(VertexBuffer.UV5Kind, this.uvs5, updateExtends, makeItUnique);
             }
 
-            if (this.uv6s) {
-                meshOrGeometry.updateVerticesData(VertexBuffer.UV6Kind, this.uv6s, updateExtends, makeItUnique);
+            if (this.uvs6) {
+                meshOrGeometry.updateVerticesData(VertexBuffer.UV6Kind, this.uvs6, updateExtends, makeItUnique);
             }
 
             if (this.colors) {
@@ -246,48 +246,48 @@
                 }
             }
 
-            if (other.uv2s) {
-                if (!this.uv2s) {
-                    this.uv2s = [];
+            if (other.uvs2) {
+                if (!this.uvs2) {
+                    this.uvs2 = [];
                 }
-                for (index = 0; index < other.uv2s.length; index++) {
-                    this.uv2s.push(other.uv2s[index]);
+                for (index = 0; index < other.uvs2.length; index++) {
+                    this.uvs2.push(other.uvs2[index]);
                 }
             }
 
-            if (other.uv3s) {
-                if (!this.uv3s) {
-                    this.uv3s = [];
+            if (other.uvs3) {
+                if (!this.uvs3) {
+                    this.uvs3 = [];
                 }
-                for (index = 0; index < other.uv3s.length; index++) {
-                    this.uv3s.push(other.uv3s[index]);
+                for (index = 0; index < other.uvs3.length; index++) {
+                    this.uvs3.push(other.uvs3[index]);
                 }
             }
 
-            if (other.uv4s) {
-                if (!this.uv4s) {
-                    this.uv4s = [];
+            if (other.uvs4) {
+                if (!this.uvs4) {
+                    this.uvs4 = [];
                 }
-                for (index = 0; index < other.uv4s.length; index++) {
-                    this.uv4s.push(other.uv4s[index]);
+                for (index = 0; index < other.uvs4.length; index++) {
+                    this.uvs4.push(other.uvs4[index]);
                 }
             }
 
-            if (other.uv5s) {
-                if (!this.uv5s) {
-                    this.uv5s = [];
+            if (other.uvs5) {
+                if (!this.uvs5) {
+                    this.uvs5 = [];
                 }
-                for (index = 0; index < other.uv5s.length; index++) {
-                    this.uv5s.push(other.uv5s[index]);
+                for (index = 0; index < other.uvs5.length; index++) {
+                    this.uvs5.push(other.uvs5[index]);
                 }
             }
 
-            if (other.uv6s) {
-                if (!this.uv6s) {
-                    this.uv6s = [];
+            if (other.uvs6) {
+                if (!this.uvs6) {
+                    this.uvs6 = [];
                 }
-                for (index = 0; index < other.uv6s.length; index++) {
-                    this.uv6s.push(other.uv6s[index]);
+                for (index = 0; index < other.uvs6.length; index++) {
+                    this.uvs6.push(other.uvs6[index]);
                 }
             }
 
@@ -344,23 +344,23 @@
             }
 
             if (meshOrGeometry.isVerticesDataPresent(VertexBuffer.UV2Kind)) {
-                result.uv2s = meshOrGeometry.getVerticesData(VertexBuffer.UV2Kind, copyWhenShared);
+                result.uvs2 = meshOrGeometry.getVerticesData(VertexBuffer.UV2Kind, copyWhenShared);
             }
 
             if (meshOrGeometry.isVerticesDataPresent(VertexBuffer.UV3Kind)) {
-                result.uv3s = meshOrGeometry.getVerticesData(VertexBuffer.UV3Kind, copyWhenShared);
+                result.uvs3 = meshOrGeometry.getVerticesData(VertexBuffer.UV3Kind, copyWhenShared);
             }
 
             if (meshOrGeometry.isVerticesDataPresent(VertexBuffer.UV4Kind)) {
-                result.uv4s = meshOrGeometry.getVerticesData(VertexBuffer.UV4Kind, copyWhenShared);
+                result.uvs4 = meshOrGeometry.getVerticesData(VertexBuffer.UV4Kind, copyWhenShared);
             }
 
             if (meshOrGeometry.isVerticesDataPresent(VertexBuffer.UV5Kind)) {
-                result.uv5s = meshOrGeometry.getVerticesData(VertexBuffer.UV5Kind, copyWhenShared);
+                result.uvs5 = meshOrGeometry.getVerticesData(VertexBuffer.UV5Kind, copyWhenShared);
             }
 
             if (meshOrGeometry.isVerticesDataPresent(VertexBuffer.UV6Kind)) {
-                result.uv6s = meshOrGeometry.getVerticesData(VertexBuffer.UV6Kind, copyWhenShared);
+                result.uvs6 = meshOrGeometry.getVerticesData(VertexBuffer.UV6Kind, copyWhenShared);
             }
 
             if (meshOrGeometry.isVerticesDataPresent(VertexBuffer.ColorKind)) {

+ 1 - 1
src/Mesh/babylon.polygonMesh.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.anaglyphPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.blackAndWhitePostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.blurPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.colorCorrectionPostProcess.js

@@ -11,7 +11,7 @@
 //  For explanations on color grading, see here:
 //      http://udn.epicgames.com/Three/ColorGrading.html
 //
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.convolutionPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.displayPassPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.filterPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.fxaaPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.hdrRenderingPipeline.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.lensRenderingPipeline.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.passPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.refractionPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.ssaoRenderingPipeline.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.stereoscopicInterlacePostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.volumetricLightScatteringPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/PostProcess/babylon.vrDistortionCorrectionPostProcess.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Tools/babylon.gamepads.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;

+ 1 - 1
src/Tools/babylon.sceneOptimizer.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;