Skip to content

CameraPOV

Defined in: camera/CameraPlugin.ts:156

A camera’s authored point-of-view — the view parameters, separate from the computed view-projection matrix. This is the seam a camera director will blend over (interpolating x / y / rotation / orthoSize between two POVs) before one view is built and handed to the renderer. The POV holds only authored values; buildCameraInfo applies presentation (canvas design-resolution scaling, the projection, the rotation) when turning a POV into the renderer-facing CameraInfo.

clearFlags: number

Defined in: camera/CameraPlugin.ts:179


cullingMask: number

Defined in: camera/CameraPlugin.ts:183

Sorting layers this camera renders; bit i = layer i.


entity: number

Defined in: camera/CameraPlugin.ts:157


far: number

Defined in: camera/CameraPlugin.ts:177


fov: number

Defined in: camera/CameraPlugin.ts:175


isActive: boolean

Defined in: camera/CameraPlugin.ts:158


near: number

Defined in: camera/CameraPlugin.ts:176


optional orbit?: object

Defined in: camera/CameraPlugin.ts:172

Orbit in radians about the focus (x, y, focusZ) — an eye that stands off the -Z axis. Absent (the 2D case) keeps the rotation-about-Z view exactly as it was; z is then the eye’s own depth rather than a standoff.

focusZ: number

pitch: number

yaw: number


orthoSize: number

Defined in: camera/CameraPlugin.ts:174


pixelPerfect: boolean

Defined in: camera/CameraPlugin.ts:181


priority: number

Defined in: camera/CameraPlugin.ts:180


projection: number

Defined in: camera/CameraPlugin.ts:173


renderTarget: number

Defined in: camera/CameraPlugin.ts:185

Offscreen target this camera draws into; 0 = the screen.


rotation: number

Defined in: camera/CameraPlugin.ts:162


optional tilt?: object

Defined in: camera/CameraPlugin.ts:168

The camera’s full orientation, when it is turned off the 2D plane. Absent for a rotation purely about Z — which every 2D camera is, and which the scalar above already says — so turning this on cannot move a 2D scene.

w: number

x: number

y: number

z: number


viewport: object

Defined in: camera/CameraPlugin.ts:178

w: number

x: number

y: number

z: number


x: number

Defined in: camera/CameraPlugin.ts:159


y: number

Defined in: camera/CameraPlugin.ts:160


z: number

Defined in: camera/CameraPlugin.ts:161