|
@@ -194,7 +194,7 @@ public class Camera implements Savable, Cloneable {
|
|
/**
|
|
/**
|
|
* store the value for field parallelProjection
|
|
* store the value for field parallelProjection
|
|
*/
|
|
*/
|
|
- private boolean parallelProjection;
|
|
|
|
|
|
+ private boolean parallelProjection = true;
|
|
protected Matrix4f projectionMatrixOverride;
|
|
protected Matrix4f projectionMatrixOverride;
|
|
protected Matrix4f viewMatrix = new Matrix4f();
|
|
protected Matrix4f viewMatrix = new Matrix4f();
|
|
protected Matrix4f projectionMatrix = new Matrix4f();
|
|
protected Matrix4f projectionMatrix = new Matrix4f();
|
|
@@ -778,6 +778,9 @@ public class Camera implements Savable, Cloneable {
|
|
frustumNear = near;
|
|
frustumNear = near;
|
|
frustumFar = far;
|
|
frustumFar = far;
|
|
|
|
|
|
|
|
+ // Camera is no longer parallel projection even if it was before
|
|
|
|
+ parallelProjection = false;
|
|
|
|
+
|
|
onFrustumChange();
|
|
onFrustumChange();
|
|
}
|
|
}
|
|
|
|
|