Camera constructor
CameraParams used to create our Camera.
The universal unique id of the Camera.
Matrices object of the Camera.
Camera default label.
OptionalonCallback to execute when one of the camera matrices changed.
A number representing what CSS perspective value (in pixel) should be used to obtain the same perspective effect as this Camera. Useful only with PerspectiveCamera.
An object containing the visible width / height at a given z-depth from our camera parameters.
Transformation object of the Object3D
Vec3 holding the actual position of this Object3D from its worldMatrix.
Children Object3D in the scene graph, used to compute their own worldMatrix.
Whether at least one of this Object3D matrix needs an update.
Get our view matrix.
Get our projection matrix.
Get our view projection matrix.
Get the near plane value.
Set the near plane value. Update the projectionMatrix only if the near plane actually changed.
New near plane value.
Get the far plane value.
Set the far plane value. Update projectionMatrix only if the far plane actually changed.
New far plane value.
Get the pixelRatio value.
Set the pixelRatio value. Update the CSSPerspective only if the pixel ratio actually changed.
New pixel ratio value.
Get whether this Object3D is visible (if it is itself visible, and all its parents are visible as well).
Set this Object3D visible property, and its children parentVisibility property.
New visibility value.
Get whether all this Object3D parents are visible or not. Should not be used directly.
Set to false if at least one of this Object3D parent is not visible, true otherwise. Should not be used directly.
New parent visibility value.
Get our quaternion
Get our model matrix
Get our world matrix
Set our transform and projection matrices.
Set our view dependent matrices shouldUpdate flag to true (tell it to update).
Set our projection dependent matrices shouldUpdate flag to true (tell it to update).
Update our model matrix and tell our view matrix to update as well.
Update our view matrix whenever we need to update the world matrix.
Callback to run when the camera model matrix has been updated.
Sets visible width / height at a depth of 0.
Updates the Camera projectionMatrix.
Set our transforms properties and vectors onChange callbacks
Apply our rotation and tell our model matrix to update
Tell our model matrix to update
Tell our model matrix to update
Tell our model matrix to update
Set our model matrix shouldUpdate flag to true (tell it to update)
Update our model matrix.
Whether to update the parent worldMatrix beforehand. Default to false.
Whether to update the children worldMatrix afterward. Default to true.
Check whether at least one of the matrix should be updated
Destroy this Object3D. Removes its parent and set its children free.
Used as a base class to create a Camera.
This class is not made to be used directly, you should use the PerspectiveCamera or OrthographicCamera classes instead.