Instance Property

type

A constant identifying the general behavior of the light.

Declaration

@property(nonatomic, copy) SCNLightType type;

Discussion

A light’s type determines the shape and directionality of illumination provided by the light, as well as the set of attributes available for modifying the light’s behavior. For example, light types include omnidirectional lights and spotlights. See Light Types for the full set of types and their behaviors.

See Also

Modifying a Light’s Appearance

SCNLightType

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

color

The color of the light. Animatable.

temperature

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

intensity

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

sphericalHarmonicsCoefficients

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