|
|
@ -320,33 +320,33 @@ public class Camera implements Savable, Cloneable { |
|
|
|
this.width = cam.width; |
|
|
|
this.width = cam.width; |
|
|
|
this.height = cam.height; |
|
|
|
this.height = cam.height; |
|
|
|
|
|
|
|
|
|
|
|
this.planeState = cam.planeState; |
|
|
|
this.planeState = 0; |
|
|
|
this.viewportChanged = cam.viewportChanged; |
|
|
|
this.viewportChanged = true; |
|
|
|
for (int i = 0; i < MAX_WORLD_PLANES; ++i) { |
|
|
|
for (int i = 0; i < MAX_WORLD_PLANES; ++i) { |
|
|
|
worldPlane[i].setNormal(cam.worldPlane[i].getNormal()); |
|
|
|
worldPlane[i].setNormal(cam.worldPlane[i].getNormal()); |
|
|
|
worldPlane[i].setConstant(cam.worldPlane[i].getConstant()); |
|
|
|
worldPlane[i].setConstant(cam.worldPlane[i].getConstant()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.parallelProjection = cam.parallelProjection; |
|
|
|
this.parallelProjection = cam.parallelProjection; |
|
|
|
if(cam.projectionMatrixOverride != null) { |
|
|
|
if (cam.projectionMatrixOverride != null) { |
|
|
|
if(this.projectionMatrixOverride == null) { |
|
|
|
if (this.projectionMatrixOverride == null) { |
|
|
|
this.projectionMatrixOverride = cam.projectionMatrixOverride.clone(); |
|
|
|
this.projectionMatrixOverride = cam.projectionMatrixOverride.clone(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.projectionMatrixOverride.set(cam.projectionMatrixOverride); |
|
|
|
this.projectionMatrixOverride.set(cam.projectionMatrixOverride); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.projectionMatrixOverride = null; |
|
|
|
this.projectionMatrixOverride = null; |
|
|
|
} |
|
|
|
} |
|
|
|
this.viewMatrix.set(cam.viewMatrix); |
|
|
|
this.viewMatrix.set(cam.viewMatrix); |
|
|
|
this.projectionMatrix.set(cam.projectionMatrix); |
|
|
|
this.projectionMatrix.set(cam.projectionMatrix); |
|
|
|
this.viewProjectionMatrix.set(cam.viewProjectionMatrix); |
|
|
|
this.viewProjectionMatrix.set(cam.viewProjectionMatrix); |
|
|
|
|
|
|
|
|
|
|
|
this.guiBounding.setXExtent(cam.guiBounding.getXExtent()); |
|
|
|
this.guiBounding.setXExtent(cam.guiBounding.getXExtent()); |
|
|
|
this.guiBounding.setYExtent(cam.guiBounding.getYExtent()); |
|
|
|
this.guiBounding.setYExtent(cam.guiBounding.getYExtent()); |
|
|
|
this.guiBounding.setZExtent(cam.guiBounding.getZExtent()); |
|
|
|
this.guiBounding.setZExtent(cam.guiBounding.getZExtent()); |
|
|
|
this.guiBounding.setCenter(cam.guiBounding.getCenter()); |
|
|
|
this.guiBounding.setCenter(cam.guiBounding.getCenter()); |
|
|
|
this.guiBounding.setCheckPlane(cam.guiBounding.getCheckPlane()); |
|
|
|
this.guiBounding.setCheckPlane(cam.guiBounding.getCheckPlane()); |
|
|
|
|
|
|
|
|
|
|
|
this.name = cam.name; |
|
|
|
this.name = cam.name; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|