---
title: "DirectionalLightComponent.Shadow.ShadowProjectionType.automatic(maximumDistance:)"
framework: realitykit
role: symbol
role_heading: Case
path: "realitykit/directionallightcomponent/shadow/shadowprojectiontype/automatic(maximumdistance:)"
---

# DirectionalLightComponent.Shadow.ShadowProjectionType.automatic(maximumDistance:)

Shadow projection is automatically fit with the camera frustum, range is within maximumDistance from camera

## Declaration

```swift
case automatic(maximumDistance: Float = 5)
```

## See Also

### Shadow projection types

- [DirectionalLightComponent.Shadow.ShadowProjectionType.fixed(zNear:zFar:orthographicScale:)](realitykit/directionallightcomponent/shadow/shadowprojectiontype/fixed(znear:zfar:orthographicscale:).md)
