<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNSceneRenderer/autoenablesDefaultLighting",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SCNSceneRenderer(py)autoenablesDefaultLighting"
  },
  "title" : "autoenablesDefaultLighting"
}
-->

# autoenablesDefaultLighting

A Boolean value that determines whether SceneKit automatically adds lights to a scene.

```
var autoenablesDefaultLighting: Bool { get set }
```

## Discussion

If this property’s value is <doc://com.apple.documentation/documentation/Swift/false> (the default), the only light sources SceneKit uses for rendering a scene are those contained in the scene graph. If you change the value to <doc://com.apple.documentation/documentation/Swift/true>, SceneKit automatically adds and places an omnidirectional light source when rendering scenes that contain no lights or only contain ambient lights.

---

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)