---
title: shadowBias
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnlight/shadowbias
---

# shadowBias

The amount of correction to apply to the shadow to prevent rendering artifacts.

## Declaration

```swift
var shadowBias: CGFloat { get set }
```

## Discussion

Discussion Rendering shadows from a shadow map can result in artifacts where the shadow color does not appear on all pixels in a shadowed surface as intended. (This effect is typically called shadow acne.) This property specifies the error margin SceneKit uses to correct such artifacts. The default value is 1.0.

## See Also

### Managing Shadows Cast by the Light

- [castsShadow](scenekit/scnlight/castsshadow.md)
- [shadowRadius](scenekit/scnlight/shadowradius.md)
- [shadowColor](scenekit/scnlight/shadowcolor.md)
- [shadowMapSize](scenekit/scnlight/shadowmapsize.md)
- [shadowSampleCount](scenekit/scnlight/shadowsamplecount.md)
- [shadowMode](scenekit/scnlight/shadowmode.md)
- [SCNShadowMode](scenekit/scnshadowmode.md)
- [orthographicScale](scenekit/scnlight/orthographicscale.md)
- [zFar](scenekit/scnlight/zfar.md)
- [zNear](scenekit/scnlight/znear.md)
