<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18SpotLightComponentV6ShadowV11QualityModeV"
  },
  "title" : "SpotLightComponent.Shadow.QualityMode"
}
-->

# SpotLightComponent.Shadow.QualityMode

Constants that select the shadow-filtering algorithm a spotlight uses.

```
struct QualityMode
```

## Overview

[`low`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/low) produces a hard-edged shadow with a uniform width. The shadow
ignores [`lightSize`](/documentation/RealityKit/SpotLightComponent/Shadow/lightSize) and the distance between
the light, the shadow-casting geometry, and the receiving surface.

[`medium`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/medium) and [`high`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/high) produce *soft* shadows whose penumbra widens
as the receiving surface moves farther from the caster, approximating
the appearance of an area light. [`high`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/high) takes more samples per pixel
than [`medium`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/medium), producing a smoother penumbra at greater GPU cost.

## Topics

### Choosing a quality level

[`static var low: SpotLightComponent.Shadow.QualityMode`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/low)

[`static var medium: SpotLightComponent.Shadow.QualityMode`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/medium)

### Initializers

[`init(rawValue: Int)`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/init(rawValue:))

### Instance Properties

[`var rawValue: Int`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/rawValue)

### Type Properties

[`static var high: SpotLightComponent.Shadow.QualityMode`](/documentation/RealityKit/SpotLightComponent/Shadow/QualityMode/high)

## Relationships

### Conforms To

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

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

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

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

---

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)