Cameras
Perspective Camera
Creates a camera with a perspective projection lens
Camera camera
Virtual camera.
dataJSON
JSON
Render Graph input parameters in JSON; schema defined by renderGraphRef.
Render Graph input parameters in JSON; schema defined by renderGraphRef.
renderGraphRef
Referenced render graph to use for rendering from this camera.
Referenced render graph to use for rendering from this camera.
renderTargetIndex
Integer
Default:-1
Index of the render target to blit/output to. -1 indicates the default target.
Index of the render target to blit/output to. -1 indicates the default target.
Perspective Lens perspective_lens
Perspective projection lens with vertical field of view and near/far clipping planes.
farPlane
Float(m)
Default:0
Far clipping plane distance (meters). Set to 0 for an infinite far plane.
Far clipping plane distance (meters). Set to 0 for an infinite far plane.
fovy
Float(deg)
Default:60
Vertical field of view angle in degrees.
Vertical field of view angle in degrees.
nearPlane
Float(m)
Default:0.01
Near clipping plane distance (meters).
Near clipping plane distance (meters).
offset
Vector2(m)
Default:[0,0]
Projection center offset for stereoscopic rendering (meters).
Projection center offset for stereoscopic rendering (meters).
Orthographic Camera
Creates a camera with an orthographic projection lens
Camera camera
Virtual camera.
dataJSON
JSON
Render Graph input parameters in JSON; schema defined by renderGraphRef.
Render Graph input parameters in JSON; schema defined by renderGraphRef.
renderGraphRef
Referenced render graph to use for rendering from this camera.
Referenced render graph to use for rendering from this camera.
renderTargetIndex
Integer
Default:-1
Index of the render target to blit/output to. -1 indicates the default target.
Index of the render target to blit/output to. -1 indicates the default target.
Orthographic Lens orthographic_lens
Orthographic projection lens with configurable zoom and depth range.
zFar
Float(m)
Default:100
Far clipping plane distance (meters).
Far clipping plane distance (meters).
zNear
Float(m)
Default:0
Near clipping plane distance (meters).
Near clipping plane distance (meters).
zoomFactor
Vector2
Default:[1,1]
Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.
Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.