<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/GaussianSplatResource/SphericalHarmonicDegree",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21GaussianSplatResourceC23SphericalHarmonicDegreeO"
  },
  "title" : "GaussianSplatResource.SphericalHarmonicDegree"
}
-->

# GaussianSplatResource.SphericalHarmonicDegree

The amount of view-dependent color detail stored per splat.

```
enum SphericalHarmonicDegree
```

## Overview

Higher degrees capture higher-frequency color variation as the viewing
angle changes, at the cost of more data per splat.

## Topics

### Enumeration Cases

[`case first`](/documentation/RealityKit/GaussianSplatResource/SphericalHarmonicDegree/first)

12 values: three first-order lobes plus the degree-zero diffuse
color.

[`case second`](/documentation/RealityKit/GaussianSplatResource/SphericalHarmonicDegree/second)

27 values: five second-order lobes plus the degree-one
coefficients.

[`case third`](/documentation/RealityKit/GaussianSplatResource/SphericalHarmonicDegree/third)

48 values: seven third-order lobes plus the degree-two
coefficients.

[`case zero`](/documentation/RealityKit/GaussianSplatResource/SphericalHarmonicDegree/zero)

3 values: diffuse color only.

## Relationships

### Conforms To

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

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

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

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

[`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)