---
title: depthBias
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/spotlightcomponent/shadow/depthbias
---

# depthBias

A constant value that RealityKit applies as a bias to its shadow calculations.

## Declaration

```swift
var depthBias: Float { get set }
```

## Discussion

Discussion Reduce visual effects such as shadow acne, by adjusting this property. The default value is 1.0.

## See Also

### Configuring the shadow

- [zNear](realitykit/spotlightcomponent/shadow/znear.md)
- [zFar](realitykit/spotlightcomponent/shadow/zfar.md)
- [cullModeOverride](realitykit/spotlightcomponent/shadow/cullmodeoverride.md)
