Contents

autoenablesDefaultLighting

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

Declaration

var autoenablesDefaultLighting: Bool { get set }

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