<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/DirectionalLightComponent/Shadow/ShadowProjectionType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation25DirectionalLightComponentV6ShadowV0F14ProjectionTypeO"
  },
  "title" : "DirectionalLightComponent.Shadow.ShadowProjectionType"
}
-->

# DirectionalLightComponent.Shadow.ShadowProjectionType

```
enum ShadowProjectionType
```

## Topics

### Shadow projection types

[`case automatic(maximumDistance: Float)`](/documentation/RealityKit/DirectionalLightComponent/Shadow/ShadowProjectionType/automatic(maximumDistance:))

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

[`case fixed(zNear: Float, zFar: Float, orthographicScale: Float)`](/documentation/RealityKit/DirectionalLightComponent/Shadow/ShadowProjectionType/fixed(zNear:zFar:orthographicScale:))

Shadow projection is manually set up with near plane, far plane, and orthographicScale for width and height

### Comparing shadow projection types

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)