Constructor
# new OrthoCamera(left, right, bottom, top, near, far, eyeopt, targetopt, upopt)
Creates a new orthographic camera
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
left |
number
|
Left bound of view frustum |
||
right |
number
|
Right bound of view frustum |
||
bottom |
number
|
Bottom bound of view frustum |
||
top |
number
|
Top bound of view frustum |
||
near |
number
|
Near clipping plane |
||
far |
number
|
Far clipping plane |
||
eye |
vec3.default
|
<optional> |
[0,0,-3] | Camera position |
target |
vec3.default
|
<optional> |
[0,0,1] | Look-at target |
up |
vec3.default
|
<optional> |
[0,1,0] | Up vector |