---
title: autoenablesDefaultLighting
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sk3dnode/autoenablesdefaultlighting
---

# autoenablesDefaultLighting

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

## Declaration

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

## Mentioned in

Displaying 3D Content in a SpriteKit Scene

## Discussion

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

## See Also

### Configuring a 3D Node

- [viewportSize](spritekit/sk3dnode/viewportsize.md)
- [scnScene](spritekit/sk3dnode/scnscene.md)
- [pointOfView](spritekit/sk3dnode/pointofview.md)
