---
title: zFar
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/spotlightcomponent/shadow/zfar
---

# zFar

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

## Declaration

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

## Discussion

Discussion The zFar is the maximum distance between the light and a visible surface for casting shadows. The spotlight applies the value from attenuationRadius, when you set this property to SpotLightComponent.Shadow.ShadowClippingPlane.automatic, which is its default value. Setting this value to SpotLightComponent.Shadow.ShadowClippingPlane.fixed(_:) is equivalent to assigning it to min(zFar, attenuationRadius).

## See Also

### Configuring the shadow

- [depthBias](realitykit/spotlightcomponent/shadow/depthbias.md)
- [zNear](realitykit/spotlightcomponent/shadow/znear.md)
- [cullModeOverride](realitykit/spotlightcomponent/shadow/cullmodeoverride.md)
