Browse Source

Integrating tiny changes

David Catuhe 10 years ago
parent
commit
d7d3c34b15
66 changed files with 191 additions and 160 deletions
  1. 1 1
      Babylon/Actions/babylon.condition.js
  2. 1 1
      Babylon/Actions/babylon.directActions.js
  3. 1 1
      Babylon/Actions/babylon.interpolateValueAction.js
  4. 1 1
      Babylon/Animations/babylon.easing.js
  5. 1 1
      Babylon/Cameras/VR/babylon.vrDeviceOrientationCamera.js
  6. 1 1
      Babylon/Cameras/VR/babylon.webVRCamera.js
  7. 1 1
      Babylon/Cameras/babylon.arcRotateCamera.js
  8. 1 1
      Babylon/Cameras/babylon.camera.js
  9. 1 1
      Babylon/Cameras/babylon.deviceOrientationCamera.js
  10. 1 1
      Babylon/Cameras/babylon.followCamera.js
  11. 1 1
      Babylon/Cameras/babylon.freeCamera.js
  12. 1 1
      Babylon/Cameras/babylon.gamepadCamera.js
  13. 1 1
      Babylon/Cameras/babylon.stereoscopicCameras.js
  14. 1 1
      Babylon/Cameras/babylon.targetCamera.js
  15. 1 1
      Babylon/Cameras/babylon.touchCamera.js
  16. 1 1
      Babylon/Cameras/babylon.virtualJoysticksCamera.js
  17. 1 1
      Babylon/Lights/babylon.directionalLight.js
  18. 1 1
      Babylon/Lights/babylon.hemisphericLight.js
  19. 1 1
      Babylon/Lights/babylon.light.js
  20. 1 1
      Babylon/Lights/babylon.pointLight.js
  21. 1 1
      Babylon/Lights/babylon.spotLight.js
  22. 1 1
      Babylon/Materials/Textures/Procedurals/babylon.customProceduralTexture.js
  23. 1 1
      Babylon/Materials/Textures/Procedurals/babylon.proceduralTexture.js
  24. 1 1
      Babylon/Materials/Textures/Procedurals/babylon.standardProceduralTexture.js
  25. 1 1
      Babylon/Materials/Textures/babylon.cubeTexture.js
  26. 1 1
      Babylon/Materials/Textures/babylon.dynamicTexture.js
  27. 1 1
      Babylon/Materials/Textures/babylon.mirrorTexture.js
  28. 1 1
      Babylon/Materials/Textures/babylon.rawTexture.js
  29. 1 1
      Babylon/Materials/Textures/babylon.renderTargetTexture.js
  30. 1 1
      Babylon/Materials/Textures/babylon.texture.js
  31. 1 1
      Babylon/Materials/Textures/babylon.videoTexture.js
  32. 1 1
      Babylon/Materials/babylon.multiMaterial.js
  33. 1 1
      Babylon/Materials/babylon.shaderMaterial.js
  34. 1 1
      Babylon/Materials/babylon.standardMaterial.js
  35. 1 1
      Babylon/Mesh/babylon.abstractMesh.js
  36. 1 1
      Babylon/Mesh/babylon.geometry.js
  37. 1 1
      Babylon/Mesh/babylon.groundMesh.js
  38. 1 1
      Babylon/Mesh/babylon.instancedMesh.js
  39. 1 1
      Babylon/Mesh/babylon.linesMesh.js
  40. 1 1
      Babylon/Mesh/babylon.mesh.js
  41. 1 1
      Babylon/Mesh/babylon.polygonmesh.js
  42. 1 1
      Babylon/PostProcess/babylon.anaglyphPostProcess.js
  43. 1 1
      Babylon/PostProcess/babylon.blackAndWhitePostProcess.js
  44. 1 1
      Babylon/PostProcess/babylon.blurPostProcess.js
  45. 1 1
      Babylon/PostProcess/babylon.colorCorrectionPostProcess.js
  46. 1 1
      Babylon/PostProcess/babylon.convolutionPostProcess.js
  47. 1 1
      Babylon/PostProcess/babylon.displayPassPostProcess.js
  48. 1 1
      Babylon/PostProcess/babylon.filterPostProcess.js
  49. 1 1
      Babylon/PostProcess/babylon.fxaaPostProcess.js
  50. 1 1
      Babylon/PostProcess/babylon.lensRenderingPipeline.js
  51. 1 1
      Babylon/PostProcess/babylon.passPostProcess.js
  52. 1 1
      Babylon/PostProcess/babylon.refractionPostProcess.js
  53. 1 1
      Babylon/PostProcess/babylon.ssaoRenderingPipeline.js
  54. 1 1
      Babylon/PostProcess/babylon.stereoscopicInterlacePostProcess.js
  55. 1 1
      Babylon/PostProcess/babylon.volumetricLightScatteringPostProcess.js
  56. 1 1
      Babylon/PostProcess/babylon.vrDistortionCorrectionPostProcess.js
  57. 5 4
      Babylon/Rendering/babylon.renderingManager.js
  58. 1 1
      Babylon/Rendering/babylon.renderingManager.ts
  59. 1 1
      Babylon/Tools/babylon.gamepads.js
  60. 1 1
      Babylon/Tools/babylon.sceneOptimizer.js
  61. 34 24
      Babylon/babylon.engine.js
  62. 38 26
      Babylon/babylon.engine.ts
  63. 1 0
      Babylon/babylon.mixins.ts
  64. 7 9
      Preview release/babylon.2.2.js
  65. 40 29
      Preview release/babylon.2.2.max.js
  66. 7 9
      Preview release/babylon.2.2.noworker.js

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/Materials/Textures/babylon.rawTexture.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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

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

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

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 5 - 4
Babylon/Rendering/babylon.renderingManager.js

@@ -69,10 +69,11 @@ var BABYLON;
             }
             }
         };
         };
         RenderingManager.prototype.reset = function () {
         RenderingManager.prototype.reset = function () {
-            for (var index in this._renderingGroups) {
-                var renderingGroup = this._renderingGroups[index];
-                renderingGroup.prepare();
-            }
+            this._renderingGroups.forEach(function (renderingGroup, index, array) {
+                if (renderingGroup) {
+                    renderingGroup.prepare();
+                }
+            });
         };
         };
         RenderingManager.prototype.dispatch = function (subMesh) {
         RenderingManager.prototype.dispatch = function (subMesh) {
             var mesh = subMesh.getMesh();
             var mesh = subMesh.getMesh();

+ 1 - 1
Babylon/Rendering/babylon.renderingManager.ts

@@ -90,7 +90,7 @@
         }
         }
 
 
         public reset(): void {
         public reset(): void {
-            this._renderingGroups.forEach( function(renderingGroup, index, array) {
+            this._renderingGroups.forEach(function (renderingGroup, index, array) {
                 if (renderingGroup) {
                 if (renderingGroup) {
                     renderingGroup.prepare();
                     renderingGroup.prepare();
                 }
                 }

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 1 - 1
Babylon/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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;

+ 34 - 24
Babylon/babylon.engine.js

@@ -1431,38 +1431,48 @@ var BABYLON;
             texture.isReady = true;
             texture.isReady = true;
         };
         };
         Engine.prototype.updateVideoTexture = function (texture, video, invertY) {
         Engine.prototype.updateVideoTexture = function (texture, video, invertY) {
+            if (texture._isDisabled) {
+                return;
+            }
             this._gl.bindTexture(this._gl.TEXTURE_2D, texture);
             this._gl.bindTexture(this._gl.TEXTURE_2D, texture);
             this._gl.pixelStorei(this._gl.UNPACK_FLIP_Y_WEBGL, invertY ? 0 : 1); // Video are upside down by default
             this._gl.pixelStorei(this._gl.UNPACK_FLIP_Y_WEBGL, invertY ? 0 : 1); // Video are upside down by default
-            // Testing video texture support
-            if (this._videoTextureSupported === undefined) {
-                this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
-                if (this._gl.getError() !== 0) {
-                    this._videoTextureSupported = false;
+            try {
+                // Testing video texture support
+                if (this._videoTextureSupported === undefined) {
+                    this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
+                    if (this._gl.getError() !== 0) {
+                        this._videoTextureSupported = false;
+                    }
+                    else {
+                        this._videoTextureSupported = true;
+                    }
+                }
+                // Copy video through the current working canvas if video texture is not supported
+                if (!this._videoTextureSupported) {
+                    if (!texture._workingCanvas) {
+                        texture._workingCanvas = document.createElement("canvas");
+                        texture._workingContext = texture._workingCanvas.getContext("2d");
+                        texture._workingCanvas.width = texture._width;
+                        texture._workingCanvas.height = texture._height;
+                    }
+                    texture._workingContext.drawImage(video, 0, 0, video.videoWidth, video.videoHeight, 0, 0, texture._width, texture._height);
+                    this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, texture._workingCanvas);
                 }
                 }
                 else {
                 else {
-                    this._videoTextureSupported = true;
+                    this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
                 }
                 }
-            }
-            // Copy video through the current working canvas if video texture is not supported
-            if (!this._videoTextureSupported) {
-                if (!texture._workingCanvas) {
-                    texture._workingCanvas = document.createElement("canvas");
-                    texture._workingContext = texture._workingCanvas.getContext("2d");
-                    texture._workingCanvas.width = texture._width;
-                    texture._workingCanvas.height = texture._height;
+                if (texture.generateMipMaps) {
+                    this._gl.generateMipmap(this._gl.TEXTURE_2D);
                 }
                 }
-                texture._workingContext.drawImage(video, 0, 0, video.videoWidth, video.videoHeight, 0, 0, texture._width, texture._height);
-                this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, texture._workingCanvas);
-            }
-            else {
-                this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
+                this._gl.bindTexture(this._gl.TEXTURE_2D, null);
+                this._activeTexturesCache = [];
+                texture.isReady = true;
             }
             }
-            if (texture.generateMipMaps) {
-                this._gl.generateMipmap(this._gl.TEXTURE_2D);
+            catch (ex) {
+                // Something unexpected
+                // Let's disable the texture
+                texture._isDisabled = true;
             }
             }
-            this._gl.bindTexture(this._gl.TEXTURE_2D, null);
-            this._activeTexturesCache = [];
-            texture.isReady = true;
         };
         };
         Engine.prototype.createRenderTargetTexture = function (size, options) {
         Engine.prototype.createRenderTargetTexture = function (size, options) {
             // old version had a "generateMipMaps" arg instead of options.
             // old version had a "generateMipMaps" arg instead of options.

+ 38 - 26
Babylon/babylon.engine.ts

@@ -1717,43 +1717,55 @@
         }
         }
 
 
         public updateVideoTexture(texture: WebGLTexture, video: HTMLVideoElement, invertY: boolean): void {
         public updateVideoTexture(texture: WebGLTexture, video: HTMLVideoElement, invertY: boolean): void {
+            if (texture._isDisabled) {
+                return;
+            }
+
             this._gl.bindTexture(this._gl.TEXTURE_2D, texture);
             this._gl.bindTexture(this._gl.TEXTURE_2D, texture);
             this._gl.pixelStorei(this._gl.UNPACK_FLIP_Y_WEBGL, invertY ? 0 : 1); // Video are upside down by default
             this._gl.pixelStorei(this._gl.UNPACK_FLIP_Y_WEBGL, invertY ? 0 : 1); // Video are upside down by default
 
 
-            // Testing video texture support
-            if (this._videoTextureSupported === undefined) {
-                this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
+            try
+            {
+                // Testing video texture support
+                if (this._videoTextureSupported === undefined) {
+                    this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
 
 
-                if (this._gl.getError() !== 0) {
-                    this._videoTextureSupported = false;
-                } else {
-                    this._videoTextureSupported = true;
+                    if (this._gl.getError() !== 0) {
+                        this._videoTextureSupported = false;
+                    } else {
+                        this._videoTextureSupported = true;
+                    }
                 }
                 }
-            }
 
 
-            // Copy video through the current working canvas if video texture is not supported
-            if (!this._videoTextureSupported) {
-                if (!texture._workingCanvas) {
-                    texture._workingCanvas = document.createElement("canvas");
-                    texture._workingContext = texture._workingCanvas.getContext("2d");
-                    texture._workingCanvas.width = texture._width;
-                    texture._workingCanvas.height = texture._height;
+                // Copy video through the current working canvas if video texture is not supported
+                if (!this._videoTextureSupported) {
+                    if (!texture._workingCanvas) {
+                        texture._workingCanvas = document.createElement("canvas");
+                        texture._workingContext = texture._workingCanvas.getContext("2d");
+                        texture._workingCanvas.width = texture._width;
+                        texture._workingCanvas.height = texture._height;
+                    }
+
+                    texture._workingContext.drawImage(video, 0, 0, video.videoWidth, video.videoHeight, 0, 0, texture._width, texture._height);
+
+                    this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, texture._workingCanvas);
+                } else {
+                    this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
                 }
                 }
 
 
-                texture._workingContext.drawImage(video, 0, 0, video.videoWidth, video.videoHeight, 0, 0, texture._width, texture._height);
+                if (texture.generateMipMaps) {
+                    this._gl.generateMipmap(this._gl.TEXTURE_2D);
+                }
 
 
-                this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, texture._workingCanvas);
-            } else {
-                this._gl.texImage2D(this._gl.TEXTURE_2D, 0, this._gl.RGBA, this._gl.RGBA, this._gl.UNSIGNED_BYTE, video);
-            }
+                this._gl.bindTexture(this._gl.TEXTURE_2D, null);
+                this._activeTexturesCache = [];
+                texture.isReady = true;
 
 
-            if (texture.generateMipMaps) {
-                this._gl.generateMipmap(this._gl.TEXTURE_2D);
+            } catch (ex) {
+                // Something unexpected
+                // Let's disable the texture
+                texture._isDisabled = true;
             }
             }
-
-            this._gl.bindTexture(this._gl.TEXTURE_2D, null);
-            this._activeTexturesCache = [];
-            texture.isReady = true;
         }
         }
 
 
         public createRenderTargetTexture(size: any, options): WebGLTexture {
         public createRenderTargetTexture(size: any, options): WebGLTexture {

+ 1 - 0
Babylon/babylon.mixins.ts

@@ -74,6 +74,7 @@ interface WebGLTexture {
     _cachedCoordinatesMode: number;
     _cachedCoordinatesMode: number;
     _cachedWrapU: number;
     _cachedWrapU: number;
     _cachedWrapV: number;
     _cachedWrapV: number;
+    _isDisabled: boolean;
 }
 }
 
 
 interface WebGLBuffer {
 interface WebGLBuffer {

File diff suppressed because it is too large
+ 7 - 9
Preview release/babylon.2.2.js


File diff suppressed because it is too large
+ 40 - 29
Preview release/babylon.2.2.max.js


File diff suppressed because it is too large
+ 7 - 9
Preview release/babylon.2.2.noworker.js