Camera

See PerspectiveCamera.ts and THREE.PerspectiveCamera.

Props from THREE.PerspectiveCamera

NameDescriptionTypeDefault
aspectCamera frustum aspect ratio.Number1
farCamera frustum far plane.Number2000
fovCamera frustum vertical field of view.Number50
nearCamera frustum near plane.Number0.1
positionCamera position.Object{ x: 0, y: 0, z: 0 }
lookAtCamera targetObject

Access ThreeJS camera

You should set a ref on the camera :

<Camera ref="camera" />

You can then access ThreeJS camera in your component script :

const scene = this.$ref.camera.camera;