Add default frustum to OrthographicCamera
@@ -15,10 +15,10 @@ function OrthographicCamera( left, right, top, bottom, near, far ) {
this.zoom = 1;
this.view = null;
- this.left = left;
- this.right = right;
- this.top = top;
- this.bottom = bottom;
+ this.left = ( left !== undefined ) ? left : - 1;
+ this.right = ( right !== undefined ) ? right : 1;
+ this.top = ( top !== undefined ) ? top : 1;
+ this.bottom = ( bottom !== undefined ) ? bottom : - 1;
this.near = ( near !== undefined ) ? near : 0.1;
this.far = ( far !== undefined ) ? far : 2000;