---
title: zNear
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/spotlightcomponent/shadow/znear
---

# zNear

The near-plane of a shadow frustum.

## Declaration

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

## Discussion

Discussion The zNear is the minimum distance between the light and a visible surface for casting shadows. The default value for zNear is SpotLightComponent.Shadow.ShadowClippingPlane.automatic.

## See Also

### Configuring the shadow

- [depthBias](realitykit/spotlightcomponent/shadow/depthbias.md)
- [zFar](realitykit/spotlightcomponent/shadow/zfar.md)
- [cullModeOverride](realitykit/spotlightcomponent/shadow/cullmodeoverride.md)
