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