|
@@ -4444,6 +4444,13 @@ var __extends = this.__extends || function (d, b) {
|
|
this._renderingCanvas.width = width;
|
|
this._renderingCanvas.width = width;
|
|
this._renderingCanvas.height = height;
|
|
this._renderingCanvas.height = height;
|
|
this._canvasClientRect = this._renderingCanvas.getBoundingClientRect();
|
|
this._canvasClientRect = this._renderingCanvas.getBoundingClientRect();
|
|
|
|
+ for (var index = 0; index < this.scenes.length; index++) {
|
|
|
|
+ var scene = this.scenes[index];
|
|
|
|
+ for (var camIndex = 0; camIndex < scene.cameras.length; camIndex++) {
|
|
|
|
+ var cam = scene.cameras[camIndex];
|
|
|
|
+ cam._currentRenderId = 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
Engine.prototype.bindFramebuffer = function (texture) {
|
|
Engine.prototype.bindFramebuffer = function (texture) {
|
|
this._currentRenderTarget = texture;
|
|
this._currentRenderTarget = texture;
|
|
@@ -7132,9 +7139,9 @@ var BABYLON;
|
|
Camera.prototype._getViewMatrix = function () {
|
|
Camera.prototype._getViewMatrix = function () {
|
|
return BABYLON.Matrix.Identity();
|
|
return BABYLON.Matrix.Identity();
|
|
};
|
|
};
|
|
- Camera.prototype.getViewMatrix = function () {
|
|
|
|
- this._computedViewMatrix = this._computeViewMatrix();
|
|
|
|
- if (this.isSynchronized()) {
|
|
|
|
|
|
+ Camera.prototype.getViewMatrix = function (force) {
|
|
|
|
+ this._computedViewMatrix = this._computeViewMatrix(force);
|
|
|
|
+ if (!force && this._isSynchronizedViewMatrix()) {
|
|
return this._computedViewMatrix;
|
|
return this._computedViewMatrix;
|
|
}
|
|
}
|
|
if (!this.parent || !this.parent.getWorldMatrix) {
|
|
if (!this.parent || !this.parent.getWorldMatrix) {
|