|
@@ -123,6 +123,7 @@
|
|
|
// Cache
|
|
|
private _computedViewMatrix = Matrix.Identity();
|
|
|
public _projectionMatrix = new Matrix();
|
|
|
+ private _doNotComputeProjectionMatrix = false;
|
|
|
private _worldMatrix: Matrix;
|
|
|
public _postProcesses = new Array<PostProcess>();
|
|
|
private _transformMatrix = Matrix.Zero();
|
|
@@ -413,8 +414,13 @@
|
|
|
return this._computedViewMatrix;
|
|
|
}
|
|
|
|
|
|
+ public setForcedProjectionMatrix(array: number[]): void {
|
|
|
+ this._doNotComputeProjectionMatrix = true;
|
|
|
+ BABYLON.Matrix.FromArrayToRef(array, 0, this._projectionMatrix);
|
|
|
+ };
|
|
|
+
|
|
|
public getProjectionMatrix(force?: boolean): Matrix {
|
|
|
- if (!force && this._isSynchronizedProjectionMatrix()) {
|
|
|
+ if ((!force && this._isSynchronizedProjectionMatrix()) || this._doNotComputeProjectionMatrix) {
|
|
|
return this._projectionMatrix;
|
|
|
}
|
|
|
|