Skip to main content

Type Alias: CameraProps

CameraProps: object

Type declaration​

aspect?​

optional aspect: number

The aspect ratio. Uses the views aspect ratio by default.

cameraManipulator?​

optional cameraManipulator: CameraManipulator

The camera can optionally be owned by a CameraManipulator. In this case the manipulators state will be used to update the camera.

cameraPosition?​

optional cameraPosition: Float3

"eye" The position of the camera in space

cameraTarget?​

optional cameraTarget: Float3

The target position to look at

cameraUp?​

optional cameraUp: Float3

The up vector of the camera (Usually [0, 1, 0])

far?​

optional far: number

Distance in world units from the camera to the far plane. far > near.

focalLengthInMillimeters?​

optional focalLengthInMillimeters: number

Lens's focal length in millimeters.focalLength > 0.

near?​

optional near: number

Distance in world units from the camera to the near plane. near > 0.

Defined in​

src/react/Camera.tsx:6