<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/SpotLightComponent/Shadow/zFar",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18SpotLightComponentV6ShadowV4zFarAE0F13ClippingPlaneOvp"
  },
  "title" : "zFar"
}
-->

# zFar

The orthogonal plane of the shadow frustum that’s furthest from the spotlight.

```
var zFar: SpotLightComponent.Shadow.ShadowClippingPlane { get set }
```

## Discussion

The `zFar` is the maximum distance between the light
and a visible surface for casting shadows.

The spotlight applies the value from [`attenuationRadius`](/documentation/RealityKit/SpotLightComponent/attenuationRadius),
when you set this property to [`SpotLightComponent.Shadow.ShadowClippingPlane.automatic`](/documentation/RealityKit/SpotLightComponent/Shadow/ShadowClippingPlane/automatic),
which is its default value.
Setting this value to [`SpotLightComponent.Shadow.ShadowClippingPlane.fixed(_:)`](/documentation/RealityKit/SpotLightComponent/Shadow/ShadowClippingPlane/fixed(_:))
is equivalent to assigning it to `min(zFar, attenuationRadius)`.

---

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)