Browse Source

4.0.0-alpha.4

David Catuhe 6 năm trước cách đây
mục cha
commit
e55b6d5d2f
31 tập tin đã thay đổi với 19870 bổ sung19883 xóa
  1. 7314 7318
      Playground/babylon.d.txt
  2. 12490 12494
      dist/preview release/babylon.d.ts
  3. 1 1
      dist/preview release/babylon.js
  4. 7 7
      dist/preview release/babylon.max.js
  5. 7 7
      dist/preview release/babylon.no-module.max.js
  6. 1 1
      dist/preview release/babylon.worker.js
  7. 7 7
      dist/preview release/es6.js
  8. 1 1
      dist/preview release/glTF2Interface/package.json
  9. 1 1
      dist/preview release/gui/babylon.gui.min.js.map
  10. 2 2
      dist/preview release/gui/package.json
  11. 1 1
      dist/preview release/inspector/babylon.inspector.bundle.js.map
  12. 5 5
      dist/preview release/inspector/package.json
  13. 1 1
      dist/preview release/loaders/babylon.glTF1FileLoader.min.js
  14. 1 1
      dist/preview release/loaders/babylon.glTF2FileLoader.min.js
  15. 1 1
      dist/preview release/loaders/babylon.glTFFileLoader.min.js
  16. 1 1
      dist/preview release/loaders/babylonjs.loaders.min.js
  17. 3 3
      dist/preview release/loaders/package.json
  18. 2 2
      dist/preview release/materialsLibrary/package.json
  19. 1 1
      dist/preview release/postProcessesLibrary/babylon.asciiArtPostProcess.min.js
  20. 1 1
      dist/preview release/postProcessesLibrary/babylon.digitalRainPostProcess.min.js
  21. 1 1
      dist/preview release/postProcessesLibrary/babylonjs.postProcess.min.js
  22. 2 2
      dist/preview release/postProcessesLibrary/package.json
  23. 2 2
      dist/preview release/proceduralTexturesLibrary/package.json
  24. 1 1
      dist/preview release/serializers/babylon.glTF2Serializer.min.js
  25. 1 1
      dist/preview release/serializers/babylonjs.serializers.min.js
  26. 3 3
      dist/preview release/serializers/package.json
  27. 3 3
      dist/preview release/viewer/babylon.viewer.js
  28. 5 5
      dist/preview release/viewer/babylon.viewer.max.js
  29. 1 1
      package.json
  30. 2 7
      src/Cameras/Inputs/babylon.arcRotateCameraVRDeviceOrientationInput.ts
  31. 1 1
      src/Engine/babylon.engine.ts

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


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


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


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

@@ -12703,7 +12703,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "4.0.0-alpha.3";
+                return "4.0.0-alpha.4";
             },
             enumerable: true,
             configurable: true
@@ -105792,10 +105792,6 @@ var BABYLON;
              */
             this.alphaCorrection = 1;
             /**
-             * Defines a correction factor applied on the beta value retrieved from the orientation events.
-             */
-            this.betaCorrection = 1;
-            /**
              * Defines a correction factor applied on the gamma value retrieved from the orientation events.
              */
             this.gammaCorrection = 1;
@@ -105816,10 +105812,10 @@ var BABYLON;
         /** @hidden */
         ArcRotateCameraVRDeviceOrientationInput.prototype._onOrientationEvent = function (evt) {
             if (evt.alpha !== null) {
-                this._alpha = +evt.alpha | 0;
+                this._alpha = (+evt.alpha | 0) * this.alphaCorrection;
             }
             if (evt.gamma !== null) {
-                this._gamma = +evt.gamma | 0;
+                this._gamma = (+evt.gamma | 0) * this.gammaCorrection;
             }
             this._dirty = true;
         };
@@ -119982,6 +119978,10 @@ var BABYLON;
         }
         return null;
     };
+    BABYLON.Scene.prototype.createDefaultVRExperience = function (webVROptions) {
+        if (webVROptions === void 0) { webVROptions = {}; }
+        return new BABYLON.VRExperienceHelper(this, webVROptions);
+    };
     BABYLON.Scene.prototype.createDefaultXRExperienceAsync = function () {
         var _this = this;
         return BABYLON.WebXRExperienceHelper.CreateAsync(this).then(function (helper) {

+ 7 - 7
dist/preview release/babylon.no-module.max.js

@@ -12670,7 +12670,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "4.0.0-alpha.3";
+                return "4.0.0-alpha.4";
             },
             enumerable: true,
             configurable: true
@@ -105759,10 +105759,6 @@ var BABYLON;
              */
             this.alphaCorrection = 1;
             /**
-             * Defines a correction factor applied on the beta value retrieved from the orientation events.
-             */
-            this.betaCorrection = 1;
-            /**
              * Defines a correction factor applied on the gamma value retrieved from the orientation events.
              */
             this.gammaCorrection = 1;
@@ -105783,10 +105779,10 @@ var BABYLON;
         /** @hidden */
         ArcRotateCameraVRDeviceOrientationInput.prototype._onOrientationEvent = function (evt) {
             if (evt.alpha !== null) {
-                this._alpha = +evt.alpha | 0;
+                this._alpha = (+evt.alpha | 0) * this.alphaCorrection;
             }
             if (evt.gamma !== null) {
-                this._gamma = +evt.gamma | 0;
+                this._gamma = (+evt.gamma | 0) * this.gammaCorrection;
             }
             this._dirty = true;
         };
@@ -119949,6 +119945,10 @@ var BABYLON;
         }
         return null;
     };
+    BABYLON.Scene.prototype.createDefaultVRExperience = function (webVROptions) {
+        if (webVROptions === void 0) { webVROptions = {}; }
+        return new BABYLON.VRExperienceHelper(this, webVROptions);
+    };
     BABYLON.Scene.prototype.createDefaultXRExperienceAsync = function () {
         var _this = this;
         return BABYLON.WebXRExperienceHelper.CreateAsync(this).then(function (helper) {

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


+ 7 - 7
dist/preview release/es6.js

@@ -12670,7 +12670,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "4.0.0-alpha.3";
+                return "4.0.0-alpha.4";
             },
             enumerable: true,
             configurable: true
@@ -105759,10 +105759,6 @@ var BABYLON;
              */
             this.alphaCorrection = 1;
             /**
-             * Defines a correction factor applied on the beta value retrieved from the orientation events.
-             */
-            this.betaCorrection = 1;
-            /**
              * Defines a correction factor applied on the gamma value retrieved from the orientation events.
              */
             this.gammaCorrection = 1;
@@ -105783,10 +105779,10 @@ var BABYLON;
         /** @hidden */
         ArcRotateCameraVRDeviceOrientationInput.prototype._onOrientationEvent = function (evt) {
             if (evt.alpha !== null) {
-                this._alpha = +evt.alpha | 0;
+                this._alpha = (+evt.alpha | 0) * this.alphaCorrection;
             }
             if (evt.gamma !== null) {
-                this._gamma = +evt.gamma | 0;
+                this._gamma = (+evt.gamma | 0) * this.gammaCorrection;
             }
             this._dirty = true;
         };
@@ -119949,6 +119945,10 @@ var BABYLON;
         }
         return null;
     };
+    BABYLON.Scene.prototype.createDefaultVRExperience = function (webVROptions) {
+        if (webVROptions === void 0) { webVROptions = {}; }
+        return new BABYLON.VRExperienceHelper(this, webVROptions);
+    };
     BABYLON.Scene.prototype.createDefaultXRExperienceAsync = function () {
         var _this = this;
         return BABYLON.WebXRExperienceHelper.CreateAsync(this).then(function (helper) {

+ 1 - 1
dist/preview release/glTF2Interface/package.json

@@ -1,7 +1,7 @@
 {
     "name": "babylonjs-gltf2interface",
     "description": "A typescript declaration of babylon's gltf2 inteface.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

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


+ 2 - 2
dist/preview release/gui/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-gui",
     "description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs": "4.0.0-alpha.3"
+        "babylonjs": "4.0.0-alpha.4"
     },
     "engines": {
         "node": "*"

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


+ 5 - 5
dist/preview release/inspector/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-inspector",
     "description": "The Babylon.js inspector.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -28,10 +28,10 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs": "4.0.0-alpha.3",
-        "babylonjs-gui": "4.0.0-alpha.3",
-        "babylonjs-loaders": "4.0.0-alpha.3",
-        "babylonjs-serializers": "4.0.0-alpha.3"
+        "babylonjs": "4.0.0-alpha.4",
+        "babylonjs-gui": "4.0.0-alpha.4",
+        "babylonjs-loaders": "4.0.0-alpha.4",
+        "babylonjs-serializers": "4.0.0-alpha.4"
     },
     "engines": {
         "node": "*"

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


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


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


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


+ 3 - 3
dist/preview release/loaders/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-loaders",
     "description": "The Babylon.js file loaders library is an extension you can use to load different 3D file types into a Babylon scene.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,8 +27,8 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs-gltf2interface": "4.0.0-alpha.3",
-        "babylonjs": "4.0.0-alpha.3"
+        "babylonjs-gltf2interface": "4.0.0-alpha.4",
+        "babylonjs": "4.0.0-alpha.4"
     },
     "engines": {
         "node": "*"

+ 2 - 2
dist/preview release/materialsLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-materials",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs": "4.0.0-alpha.3"
+        "babylonjs": "4.0.0-alpha.4"
     },
     "engines": {
         "node": "*"

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


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


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


+ 2 - 2
dist/preview release/postProcessesLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-post-process",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs": "4.0.0-alpha.3"
+        "babylonjs": "4.0.0-alpha.4"
     },
     "engines": {
         "node": "*"

+ 2 - 2
dist/preview release/proceduralTexturesLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-procedural-textures",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs": "4.0.0-alpha.3"
+        "babylonjs": "4.0.0-alpha.4"
     },
     "engines": {
         "node": "*"

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


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


+ 3 - 3
dist/preview release/serializers/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-serializers",
     "description": "The Babylon.js serializers library is an extension you can use to serialize Babylon scenes.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,8 +27,8 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs": "4.0.0-alpha.3",
-        "babylonjs-gltf2interface": "4.0.0-alpha.3"
+        "babylonjs": "4.0.0-alpha.4",
+        "babylonjs-gltf2interface": "4.0.0-alpha.4"
     },
     "engines": {
         "node": "*"

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


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


+ 1 - 1
package.json

@@ -9,7 +9,7 @@
     ],
     "name": "babylonjs",
     "description": "Babylon.js is a JavaScript 3D engine based on webgl.",
-    "version": "4.0.0-alpha.3",
+    "version": "4.0.0-alpha.4",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 2 - 7
src/Cameras/Inputs/babylon.arcRotateCameraVRDeviceOrientationInput.ts

@@ -15,11 +15,6 @@ module BABYLON {
         public alphaCorrection = 1;
 
         /**
-         * Defines a correction factor applied on the beta value retrieved from the orientation events.
-         */
-        public betaCorrection = 1;
-
-        /**
          * Defines a correction factor applied on the gamma value retrieved from the orientation events.
          */
         public gammaCorrection = 1;
@@ -50,11 +45,11 @@ module BABYLON {
         /** @hidden */
         public _onOrientationEvent(evt: DeviceOrientationEvent): void {
             if (evt.alpha !== null) {
-                this._alpha = +evt.alpha | 0;
+                this._alpha = (+evt.alpha | 0) * this.alphaCorrection;
             }
 
             if (evt.gamma !== null) {
-                this._gamma = +evt.gamma | 0;
+                this._gamma = (+evt.gamma | 0) * this.gammaCorrection;
             }
             this._dirty = true;
         }

+ 1 - 1
src/Engine/babylon.engine.ts

@@ -481,7 +481,7 @@ module BABYLON {
          * Returns the current version of the framework
          */
         public static get Version(): string {
-            return "4.0.0-alpha.3";
+            return "4.0.0-alpha.4";
         }
 
         /**