<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/Camera/Projection-swift.struct/perspective(fovYRadians:aspectRatio:nearZ:farZ:reverseZ:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C6CameraV10ProjectionV11perspective11fovYRadians11aspectRatio5nearZ4farZ8reverseZAGSf_S3fSbtFZ"
  },
  "title" : "perspective(fovYRadians:aspectRatio:nearZ:farZ:reverseZ:)"
}
-->

# perspective(fovYRadians:aspectRatio:nearZ:farZ:reverseZ:)

Creates a symmetric perspective projection from a vertical field-of-view angle.

```
static func perspective(fovYRadians: Float, aspectRatio: Float, nearZ: Float, farZ: Float, reverseZ: Bool = true) -> LowLevelRenderer.Camera.Projection
```

## Parameters

`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 to `true`.

## Return Value

A symmetric perspective [`LowLevelRenderer.Camera.Projection`](/documentation/RealityKit/LowLevelRenderer/Camera/Projection-swift.struct).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)