perspective(fovYRadians:aspectRatio:nearZ:farZ:reverseZ:)
Creates a symmetric perspective projection from a vertical field-of-view angle.
Declaration
static func perspective(fovYRadians: Float, aspectRatio: Float, nearZ: Float, farZ: Float, reverseZ: Bool = true) -> LowLevelRenderer.Camera.ProjectionParameters
- fovYRadians:
The vertical field-of-view angle, in radians.
- aspectRatio:
The ratio of the viewport width to its height.
- nearZ:
The distance to the near clipping plane.
- farZ:
The distance to the far clipping plane.
- reverseZ:
If
true, the depth range is reversed (1 at near, 0 at far). Defaults totrue.
Return Value
A symmetric perspective LowLevelRenderer.Camera.Projection.