Skip to content
On this page

PerspectiveCamera

This component manages THREE.PerspectiveCamera.

Example

Props

Prop nameDescriptionTypeDefault
aspect Camera frustum aspect ratio, usually the canvas width / canvas height.number1
autoResizeFlag marking whether camera aspect ratio recalculates on renderer resize.booleantrue
far Camera frustum far plane.
Must be greater than the current value of near plane.
number2000
lookAt Camera targetVector3Like[0, 0, 0]
name Camera namestring""
near Camera frustum near plane.
The valid range is greater than 0 and less than the current value of the far plane.
Note that, unlike for the OrthographicCamera, 0 is not a valid value for a PerspectiveCamera's near plane.
number0.1
position Camera positionVector3Like[0, 0, 0]
up Camera up vectorVector3Like[0, 1, 0]

Slots

NameDescriptionBindings
default

Expose

three


Released under the MIT License.