An object defining all possible PerspectiveCamera class instancing parameters.

interface PerspectiveCameraParams {
    near?: number;
    far?: number;
    pixelRatio?: number;
    onMatricesChanged?: () => void;
    fov?: number;
    width?: number;
    height?: number;
    forceAspect?: number | false;
}

Hierarchy (View Summary)

Properties

near?: number

Camera near plane, the closest point where a mesh vertex is drawn.

far?: number

Camera far plane, the farthest point where a mesh vertex is drawn.

pixelRatio?: number

Camera pixel ratio.

onMatricesChanged?: () => void

callback to execute when one of the camera matrices changed.

fov?: number

PerspectiveCamera field of view, in degress. Should be greater than 0 and lower than 180.

width?: number

PerspectiveCamera frustum width.

height?: number

PerspectiveCamera frustum height.

forceAspect?: number | false

Allow to force the PerspectiveCamera aspect ratio to a defined value. Default to false.