Constructor
new PerspectiveCamera(fov, aspect, near, far)
- Source:
Creates an instance of PerspectiveCamera.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
fov |
Number | The field of view. |
|
aspect |
Number | The aspect ration (width / height). |
|
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 perspective 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. |