Camera
See PerspectiveCamera.ts and THREE.PerspectiveCamera.
THREE.PerspectiveCamera
Props from Name | Description | Type | Default |
---|---|---|---|
aspect | Camera frustum aspect ratio. | Number | 1 |
far | Camera frustum far plane. | Number | 2000 |
fov | Camera frustum vertical field of view. | Number | 50 |
near | Camera frustum near plane. | Number | 0.1 |
position | Camera position. | Object | { x: 0, y: 0, z: 0 } |
lookAt | Camera target | Object |
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;