diff --git a/src/cameras/OrthographicCamera.js b/src/cameras/OrthographicCamera.js index 9bc6faaa06d9ea84d5326d24356c1ee898a01775..532da017b72447a75b2b4a110912cd7f6258c0d8 100755 --- a/src/cameras/OrthographicCamera.js +++ b/src/cameras/OrthographicCamera.js @@ -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;