Constructor
new OrthographicCamera(left, right, top, bottom, near, far)
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
zoom |
number |
<optional> |
1.0
|
The zoom value of this camera. |
left |
number | The left border of the frustum. |
||
right |
number | The right border of the frustum. |
||
top |
number | The top border of the frustum. |
||
bottom |
number | The bottom border of the frustum. |
||
near |
number | The near plane distance of the frustum. |
||
far |
number | The far plane distance of the frustum. |
Creates an instance of OrthographicCamera.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
left |
Number | Left extend of the viewing volume. |
|
right |
Number | Right extend of the viewing volume. |
|
top |
Number | Top extend of the viewing volume. |
|
bottom |
Number | Bottom extend of the viewing volume. |
|
near |
Number |
0.1
|
Near extend of the viewing volume. |
far |
Number |
2500
|
Far extend of the viewing volume. |
Methods
updateProjectionMatrix()
- Source:
Updates the projection matrix of this orthographic camera.
updateViewport(width, height)
- Source:
Has to be called when the viewport size changes (e.g. window resize).
Parameters:
Name | Type | Description |
---|---|---|
width |
Number | The width of the viewport. |
height |
Number | The height of the viewport. |