---
title: DirectionalLightComponent.Shadow
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/directionallightcomponent/shadow
---

# DirectionalLightComponent.Shadow

A directional light component that adds shadows to entities that it illuminates

## Declaration

```swift
struct Shadow
```

## Topics

### Creating the shadow

- [init()](realitykit/directionallightcomponent/shadow/init().md)
- [init(shadowProjection:depthBias:cullMode:)](realitykit/directionallightcomponent/shadow/init(shadowprojection:depthbias:cullmode:).md)
- [init(maximumDistance:depthBias:)](realitykit/directionallightcomponent/shadow/init(maximumdistance:depthbias:).md)
- [init(layers:)](realitykit/directionallightcomponent/shadow/init(layers:).md)

### Configuring the shadow

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

### Specifying affected layers

- [layers](realitykit/directionallightcomponent/shadow/layers.md)

### Configuring shadow cascades

- [cascades](realitykit/directionallightcomponent/shadow/cascades-swift.property.md)
- [DirectionalLightComponent.Shadow.Cascades](realitykit/directionallightcomponent/shadow/cascades-swift.struct.md)

### Type Aliases

- [DirectionalLightComponent.Shadow.ShadowMapCullMode](realitykit/directionallightcomponent/shadow/shadowmapcullmode.md)

### Enumerations

- [DirectionalLightComponent.Shadow.ShadowProjectionType](realitykit/directionallightcomponent/shadow/shadowprojectiontype.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [Equatable](swift/equatable.md)

## See Also

### Directional lights and their shadows

- [DirectionalLightComponent](realitykit/directionallightcomponent.md)
- [DirectionalLightComponent.Shadow.ShadowProjectionType](realitykit/directionallightcomponent/shadow/shadowprojectiontype.md)
- [DirectionalLightComponent.Shadow.ShadowMapCullMode](realitykit/directionallightcomponent/shadow/shadowmapcullmode.md)
