The color temperature, in degrees Kelvin, of the light source. Animatable.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
SceneKit determines the actual color of the light by multiplying the
color value by a color corresponding to the light’s temperature. The default value of
6500 K represents a pure white light (leaving the color unmodulated); lower values (down to a minimum of zero) add a “warmer” yellow or orange effect to the light source, and higher values (up to a maximum of
40000) add a “cooler” blue effect.
This property affects all light types, but is especially useful when working with photometric lights (see the
ies property) or physically-based rendering (see
physically). You can leave the
color property at its default white color and use the
temperature properties to control the light using realistic parameters.
You can animate changes to this property’s value. See Animating SceneKit Content.