|
@@ -81955,7 +81955,6 @@ var BABYLON;
|
|
|
_this._lensCenterOffset = vrMetrics.lensCenterOffset;
|
|
|
_this.adaptScaleToCurrentViewport = true;
|
|
|
_this.onSizeChangedObservable.add(function () {
|
|
|
- _this.aspectRatio = _this.width * .5 / _this.height;
|
|
|
_this._scaleIn = new BABYLON.Vector2(2, 2 / _this.aspectRatio);
|
|
|
_this._scaleFactor = new BABYLON.Vector2(.5 * (1 / _this._postProcessScaleFactor), .5 * (1 / _this._postProcessScaleFactor) * _this.aspectRatio);
|
|
|
_this._lensCenter = new BABYLON.Vector2(_this._isRightEye ? 0.5 - _this._lensCenterOffset * 0.5 : 0.5 + _this._lensCenterOffset * 0.5, 0.5);
|