Camera constructor
CameraParams used to create our Camera.
The universal unique id of the Camera.
Matrices object of the Camera.
Optional
onCallback 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 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 our quaternion
Set our quaternion
new quaternion
Get our model matrix
Set our model matrix
new model matrix
Get our world matrix
Set our world matrix
new world matrix
Callback to run when the camera model matrix has been updated.
Get visible width / height at a given z-depth from our Camera parameters. Useless for this base class, but will be overriden by children classes.
Depth to use for calculations.
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
.
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.