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.
Properties
Section titled “Properties”clearFlags
Section titled “clearFlags”clearFlags:
number
Defined in: camera/CameraPlugin.ts:179
cullingMask
Section titled “cullingMask”cullingMask:
number
Defined in: camera/CameraPlugin.ts:183
Sorting layers this camera renders; bit i = layer i.
entity
Section titled “entity”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
Section titled “isActive”isActive:
boolean
Defined in: camera/CameraPlugin.ts:158
near:
number
Defined in: camera/CameraPlugin.ts:176
orbit?
Section titled “orbit?”
optionalorbit?: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
Section titled “focusZ”focusZ:
number
pitch:
number
yaw:
number
orthoSize
Section titled “orthoSize”orthoSize:
number
Defined in: camera/CameraPlugin.ts:174
pixelPerfect
Section titled “pixelPerfect”pixelPerfect:
boolean
Defined in: camera/CameraPlugin.ts:181
priority
Section titled “priority”priority:
number
Defined in: camera/CameraPlugin.ts:180
projection
Section titled “projection”projection:
number
Defined in: camera/CameraPlugin.ts:173
renderTarget
Section titled “renderTarget”renderTarget:
number
Defined in: camera/CameraPlugin.ts:185
Offscreen target this camera draws into; 0 = the screen.
rotation
Section titled “rotation”rotation:
number
Defined in: camera/CameraPlugin.ts:162
optionaltilt?: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
Section titled “viewport”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