PerspectiveCamera
new PerspectiveCamera({ fov?, aspect?, near?, far?, tileSize? })THREE: THREE.PerspectiveCamera
Perspective projection camera. Produces non-unit W values that make affine UV interpolation visibly incorrect - the classic RuneTek 3 artifact.
Differs from THREE.js
Constructor takes a single options object, not positional parameters.
Properties
| Name | Type | Description |
|---|---|---|
fov | number | Vertical field of view in degrees. Default 45. |
aspect | number | Viewport width / height. Default 1. |
near | number | Near clipping plane. Default 0.1. |
far | number | Far clipping plane. Default 2000. |
tileSize | number | World units per tile, used for painter-sort distance and fog culling. |
projectionMatrix | Matrix4 | Current projection matrix. |
matrixWorldInverse | Matrix4 | Inverse of the world matrix, updated each frame. |
Methods
| Method | Description |
|---|---|
updateProjectionMatrix(): void | Rebuilds projectionMatrix from fov, aspect, near, and far. Call after changing any of those properties. |