<!--
{
  "documentType" : "article",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/lighting-attribute-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Lighting Attribute Keys"
}
-->

# Lighting Attribute Keys

Keys for specifying the behavior of a light using the [`attribute(forKey:)`](/documentation/SceneKit/SCNLight/attribute(forKey:)) and [`setAttribute(_:forKey:)`](/documentation/SceneKit/SCNLight/setAttribute(_:forKey:)) methods.

## Discussion

You can also get, set, or animate changes to the values of lighting attributes using [Key-value coding](https://developer.apple.com/library/archive/documentation/General/Conceptual/DevPedia-CocoaCore/KeyValueCoding.html#//apple_ref/doc/uid/TP40008195-CH25) with the keys listed above.

You provide or retrieve a value for each key as an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing the appropriate numeric type.

## Topics

### Constants

[`let SCNLightAttenuationStartKey: String`](/documentation/SceneKit/SCNLightAttenuationStartKey)

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

[`let SCNLightAttenuationEndKey: String`](/documentation/SceneKit/SCNLightAttenuationEndKey)

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

[`let SCNLightAttenuationFalloffExponentKey: String`](/documentation/SceneKit/SCNLightAttenuationFalloffExponentKey)

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

[`let SCNLightSpotInnerAngleKey: String`](/documentation/SceneKit/SCNLightSpotInnerAngleKey)

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

[`let SCNLightSpotOuterAngleKey: String`](/documentation/SceneKit/SCNLightSpotOuterAngleKey)

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

[`let SCNLightShadowFarClippingKey: String`](/documentation/SceneKit/SCNLightShadowFarClippingKey)

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

[`let SCNLightShadowNearClippingKey: String`](/documentation/SceneKit/SCNLightShadowNearClippingKey)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)