---
title: sphericalHarmonicsCoefficients
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnlight/sphericalharmonicscoefficients
---

# sphericalHarmonicsCoefficients

Data describing the estimated lighting environment in all directions for a light probe.

## Declaration

```swift
var sphericalHarmonicsCoefficients: Data { get }
```

## Discussion

Discussion Spherical harmonic coefficients describe the distribution of light around a point in a format that can be used efficiently in real-time rendering. SceneKit supports spherical harmonics only for lights of the probe type. The data is an 32-bit floating-point values, containing three noninterleaved data sets corresponding to the red, green, and blue sets of coefficients. SceneKit supports only level 2 spherical harmonics, so the array has 3 sets of 9 values, or 27 values total.

## See Also

### Related Documentation

- [ARDirectionalLightEstimate](arkit/ardirectionallightestimate.md)
- [MDLLightProbe](modelio/mdllightprobe.md)

### Modifying a Light’s Appearance

- [type](scenekit/scnlight/type.md)
- [SCNLight.LightType](scenekit/scnlight/lighttype.md)
- [color](scenekit/scnlight/color.md)
- [temperature](scenekit/scnlight/temperature.md)
- [intensity](scenekit/scnlight/intensity.md)
