---
title: SpotLightComponent.Shadow
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/spotlightcomponent/shadow
---

# SpotLightComponent.Shadow

A spotlight component that adds shadows to entities that it illuminates.

## Declaration

```swift
struct Shadow
```

## Topics

### Creating a shadow

- [init()](realitykit/spotlightcomponent/shadow/init().md)
- [init(layers:)](realitykit/spotlightcomponent/shadow/init(layers:).md)
- [layers](realitykit/spotlightcomponent/shadow/layers.md)

### Configuring the shadow

- [depthBias](realitykit/spotlightcomponent/shadow/depthbias.md)
- [zNear](realitykit/spotlightcomponent/shadow/znear.md)
- [zFar](realitykit/spotlightcomponent/shadow/zfar.md)
- [cullModeOverride](realitykit/spotlightcomponent/shadow/cullmodeoverride.md)

### Configuring shadow quality

- [quality](realitykit/spotlightcomponent/shadow/quality.md)
- [SpotLightComponent.Shadow.QualityMode](realitykit/spotlightcomponent/shadow/qualitymode.md)
- [lightSize](realitykit/spotlightcomponent/shadow/lightsize.md)

### Type Aliases

- [SpotLightComponent.Shadow.ShadowMapCullMode](realitykit/spotlightcomponent/shadow/shadowmapcullmode.md)

### Enumerations

- [SpotLightComponent.Shadow.ShadowClippingPlane](realitykit/spotlightcomponent/shadow/shadowclippingplane.md)

## Relationships

### Conforms To

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

## See Also

### Spotlights and their shadows

- [SpotLightComponent](realitykit/spotlightcomponent.md)
- [SpotLightComponent.Shadow.ShadowClippingPlane](realitykit/spotlightcomponent/shadow/shadowclippingplane.md)
- [SpotLightComponent.Shadow.ShadowMapCullMode](realitykit/spotlightcomponent/shadow/shadowmapcullmode.md)
