---
title: autoenablesDefaultLighting
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnscenerenderer/autoenablesdefaultlighting
---

# autoenablesDefaultLighting

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

## Declaration

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

## Discussion

Discussion If this property’s value is 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 true, SceneKit automatically adds and places an omnidirectional light source when rendering scenes that contain no lights or only contain ambient lights.

## See Also

### Managing Scene Display

- [pointOfView](scenekit/scnscenerenderer/pointofview.md)
- [isJitteringEnabled](scenekit/scnscenerenderer/isjitteringenabled.md)
- [showsStatistics](scenekit/scnscenerenderer/showsstatistics.md)
- [debugOptions](scenekit/scnscenerenderer/debugoptions.md)
- [renderingAPI](scenekit/scnscenerenderer/renderingapi.md)
- [SCNDebugOptions](scenekit/scndebugoptions.md)
- [SCNRenderingAPI](scenekit/scnrenderingapi.md)
