init(near:far:fieldOfViewInDegrees:fieldOfViewOrientation:)
Creates a perspective camera component from near and far clipping planes, a field of view, and an orientation.
Declaration
init(near: Float = 0.01, far: Float = .infinity, fieldOfViewInDegrees: Float = 60.0, fieldOfViewOrientation: CameraFieldOfViewOrientation = .vertical)Parameters
- near:
The minimum distance in meters from the camera that the camera can see.
- far:
The maximum distance in meters from the camera that the camera can see.
- fieldOfViewInDegrees:
The camera’s field of view in degrees.
- fieldOfViewOrientation:
The orientation of the field of view.