|
@@ -92111,6 +92111,9 @@ var BABYLON;
|
|
|
else if (document.msIsFullScreen !== undefined) {
|
|
|
_this._fullscreenVRpresenting = document.msIsFullScreen;
|
|
|
}
|
|
|
+ else if (document.msFullscreenElement !== undefined) {
|
|
|
+ _this._fullscreenVRpresenting = document.msFullscreenElement;
|
|
|
+ }
|
|
|
if (!_this._fullscreenVRpresenting && _this._canvas) {
|
|
|
_this.exitVR();
|
|
|
if (!_this._useCustomVRButton) {
|
|
@@ -92308,6 +92311,7 @@ var BABYLON;
|
|
|
document.addEventListener("mozfullscreenchange", this._onFullscreenChange, false);
|
|
|
document.addEventListener("webkitfullscreenchange", this._onFullscreenChange, false);
|
|
|
document.addEventListener("msfullscreenchange", this._onFullscreenChange, false);
|
|
|
+ document.onmsfullscreenchange = this._onFullscreenChange;
|
|
|
// Display vr button when headset is connected
|
|
|
if (webVROptions.createFallbackVRDeviceOrientationFreeCamera) {
|
|
|
this.displayVRButton();
|
|
@@ -93434,6 +93438,7 @@ var BABYLON;
|
|
|
document.removeEventListener("mozfullscreenchange", this._onFullscreenChange);
|
|
|
document.removeEventListener("webkitfullscreenchange", this._onFullscreenChange);
|
|
|
document.removeEventListener("msfullscreenchange", this._onFullscreenChange);
|
|
|
+ document.onmsfullscreenchange = null;
|
|
|
this._scene.getEngine().onVRDisplayChangedObservable.removeCallback(this._onVRDisplayChanged);
|
|
|
this._scene.getEngine().onVRRequestPresentStart.removeCallback(this._onVRRequestPresentStart);
|
|
|
this._scene.getEngine().onVRRequestPresentComplete.removeCallback(this._onVRRequestPresentComplete);
|
|
@@ -102429,6 +102434,7 @@ var BABYLON;
|
|
|
// configure material
|
|
|
material.useEquirectangularFOV = true;
|
|
|
material.fovMultiplier = 1.0;
|
|
|
+ material.opacityFresnel = false;
|
|
|
if (_this._useDirectMapping) {
|
|
|
texture.wrapU = BABYLON.Texture.CLAMP_ADDRESSMODE;
|
|
|
texture.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE;
|