init(near:far:fieldOfViewInDegrees:)
Creates a perspective camera component from near and far clipping planes and a field of view.
Declaration
init(near: Float = 0.01, far: Float = .infinity, fieldOfViewInDegrees: Float = 60.0)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.