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

# depthBias

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

## Declaration

```swift
var depthBias: Float
```

## Discussion

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

## See Also

### Configuring the shadow

- [cullModeOverride](realitykit/directionallightcomponent/shadow/cullmodeoverride.md)
- [shadowProjection](realitykit/directionallightcomponent/shadow/shadowprojection.md)
- [maximumDistance](realitykit/directionallightcomponent/shadow/maximumdistance.md)
