Type Alias

SCNLightType

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

Declaration

typedef NSString *SCNLightType;

Discussion

Each of the four scenes in the figure below has the same content illuminated by a single SCNLight object. The node containing the light source has the same position and orientation in each scene—all differences between the four pictures are due to the light’s type property.

Figure 1

Basic light types

Figure 2

Light types

Topics

Type Properties

SCNLightTypeIES

A light source whose shape, direction, and intensity of illumination is determined by a photometric profile.

SCNLightTypeAmbient

A light that illuminates all objects in the scene from all directions.

SCNLightTypeDirectional

A light source with a uniform direction and constant intensity.

SCNLightTypeOmni

An omnidirectional light, also known as a point light.

SCNLightTypeProbe

A sample of the environment around a point in a scene to be used in environment-based lighting.

SCNLightTypeSpot

A light source that illuminates a cone-shaped area.

See Also

Modifying a Light’s Appearance

type

A constant identifying the general behavior of the light.

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.