Methods
# setProjection(fov, near, far)
Sets the projection matrix for the camera.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
fov |
number | toRad(60) | The field of view in radians. |
near |
number | 1 | The near clip plane in world units. |
far |
number | 10000 | The far clip plane in world units. |