|
@@ -48915,7 +48915,7 @@ var BABYLON;
|
|
up = up.clone();
|
|
up = up.clone();
|
|
up = up.negate();
|
|
up = up.negate();
|
|
}
|
|
}
|
|
- BABYLON.Matrix.LookAtLHToRef(_this.position, target, up, _this._viewMatrix);
|
|
|
|
|
|
+ _this._computeViewMatrix(_this.position, target, up);
|
|
_this._viewMatrix.m[12] += _this.targetScreenOffset.x;
|
|
_this._viewMatrix.m[12] += _this.targetScreenOffset.x;
|
|
_this._viewMatrix.m[13] += _this.targetScreenOffset.y;
|
|
_this._viewMatrix.m[13] += _this.targetScreenOffset.y;
|
|
_this._collisionTriggered = false;
|
|
_this._collisionTriggered = false;
|
|
@@ -108151,7 +108151,7 @@ var SceneManager = /** @class */ (function () {
|
|
this._configureScene(newConfiguration.scene);
|
|
this._configureScene(newConfiguration.scene);
|
|
}
|
|
}
|
|
// optimizer
|
|
// optimizer
|
|
- if (newConfiguration.optimizer) {
|
|
|
|
|
|
+ if (newConfiguration.optimizer !== undefined) {
|
|
this._configureOptimizer(newConfiguration.optimizer);
|
|
this._configureOptimizer(newConfiguration.optimizer);
|
|
}
|
|
}
|
|
// configure model
|
|
// configure model
|
|
@@ -108312,10 +108312,10 @@ var SceneManager = /** @class */ (function () {
|
|
this.scene.environmentTexture = environmentTexture;
|
|
this.scene.environmentTexture = environmentTexture;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (sceneConfig.debug) {
|
|
|
|
|
|
+ if (sceneConfig.debug === true) {
|
|
this.scene.debugLayer.show();
|
|
this.scene.debugLayer.show();
|
|
}
|
|
}
|
|
- else {
|
|
|
|
|
|
+ else if (sceneConfig.debug === false) {
|
|
if (this.scene.debugLayer.isVisible()) {
|
|
if (this.scene.debugLayer.isVisible()) {
|
|
this.scene.debugLayer.hide();
|
|
this.scene.debugLayer.hide();
|
|
}
|
|
}
|