Instance Property


The color temperature, in degrees Kelvin, of the light source. Animatable.


@property(nonatomic) CGFloat temperature;


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 IESProfileURL property) or physically-based rendering (see SCNLightingModelPhysicallyBased). You can leave the color property at its default white color and use the intensity and temperature properties to control the light using realistic parameters.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Modifying a Light’s Appearance


A constant identifying the general behavior of the light.


Constants specifying the general behavior of a light, used by the type property.


The color of the light. Animatable.


The luminous flux, in lumens, or total brightness of the light. Animatable.


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