---
title: shadow
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/hasdirectionallight/shadow
---

# shadow

The shadow settings for a directional light.

## Declaration

```swift
@MainActor @preconcurrency var shadow: DirectionalLightComponent.Shadow? { get set }
```

## Discussion

Discussion Set this value to nil to remove shadows.
