CameraPOV
Defined in: camera/CameraPlugin.ts:166
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.
Properties
Section titled “Properties”clearFlags
Section titled “clearFlags”clearFlags:
number
Defined in: camera/CameraPlugin.ts:189
cullingMask
Section titled “cullingMask”cullingMask:
number
Defined in: camera/CameraPlugin.ts:193
Sorting layers this camera renders; bit i = layer i.
entity
Section titled “entity”entity:
number
Defined in: camera/CameraPlugin.ts:167
far:
number
Defined in: camera/CameraPlugin.ts:187
fov:
number
Defined in: camera/CameraPlugin.ts:185
isActive
Section titled “isActive”isActive:
boolean
Defined in: camera/CameraPlugin.ts:168
near:
number
Defined in: camera/CameraPlugin.ts:186
orbit?
Section titled “orbit?”
optionalorbit?:object
Defined in: camera/CameraPlugin.ts:182
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
Section titled “focusZ”focusZ:
number
pitch:
number
yaw:
number
orthoSize
Section titled “orthoSize”orthoSize:
number
Defined in: camera/CameraPlugin.ts:184
pixelPerfect
Section titled “pixelPerfect”pixelPerfect:
boolean
Defined in: camera/CameraPlugin.ts:191
priority
Section titled “priority”priority:
number
Defined in: camera/CameraPlugin.ts:190
projection
Section titled “projection”projection:
number
Defined in: camera/CameraPlugin.ts:183
renderTarget
Section titled “renderTarget”renderTarget:
number
Defined in: camera/CameraPlugin.ts:195
Offscreen target this camera draws into; 0 = the screen.
rotation
Section titled “rotation”rotation:
number
Defined in: camera/CameraPlugin.ts:172
optionaltilt?:object
Defined in: camera/CameraPlugin.ts:178
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
Section titled “viewport”viewport:
object
Defined in: camera/CameraPlugin.ts:188
w:
number
x:
number
y:
number
z:
number
x:
number
Defined in: camera/CameraPlugin.ts:169
y:
number
Defined in: camera/CameraPlugin.ts:170
z:
number
Defined in: camera/CameraPlugin.ts:171