Lighting Attribute Keys

Keys for specifying the behavior of a light using the attributeForKey: and setAttribute:forKey: methods.

Overview

You can also get, set, or animate changes to the values of lighting attributes using Key-value coding with the keys listed above.

You provide or retrieve a value for each key as an NSNumber object containing the appropriate numeric type.

Topics

Constants

SCNLightAttenuationStartKey

The distance from the light at which its intensity begins to diminish.

Deprecated
SCNLightAttenuationEndKey

The distance from the light at which its intensity is completely diminished.

Deprecated
SCNLightAttenuationFalloffExponentKey

The transition curve for the light’s intensity between its attenuation start and end distances.

Deprecated
SCNLightSpotInnerAngleKey

The angle, in degrees, of the area fully lit by a spotlight.

Deprecated
SCNLightSpotOuterAngleKey

The angle, in degrees, of the area partially lit by a spotlight.

Deprecated
SCNLightShadowFarClippingKey

The maximum distance between the light and a visible surface for casting shadows.

Deprecated
SCNLightShadowNearClippingKey

The minimum distance between the light and a visible surface for casting shadows.

Deprecated

See Also

Managing Light Attributes

name

A name associated with the light.

- attributeForKey:

Returns the value of a lighting attribute.

Deprecated
- setAttribute:forKey:

Sets the value for a lighting attribute.

Deprecated