|
@@ -25,3 +25,22 @@ THREE.OrthographicCamera.prototype.updateProjectionMatrix = function () {
|
|
|
this.projectionMatrix.makeOrthographic( this.left, this.right, this.top, this.bottom, this.near, this.far );
|
|
|
|
|
|
};
|
|
|
+
|
|
|
+THREE.OrthographicCamera.prototype.clone = function () {
|
|
|
+
|
|
|
+ var camera = new THREE.OrthographicCamera();
|
|
|
+
|
|
|
+ THREE.Camera.prototype.clone.call( this, camera );
|
|
|
+
|
|
|
+ camera.left = this.left;
|
|
|
+ camera.right = this.right;
|
|
|
+ camera.top = this.top;
|
|
|
+ camera.bottom = this.bottom;
|
|
|
+
|
|
|
+ camera.near = this.near;
|
|
|
+ camera.far = this.far;
|
|
|
+
|
|
|
+ camera.updateProjectionMatrix();
|
|
|
+
|
|
|
+ return camera;
|
|
|
+};
|