Contents

isLightEstimationEnabled

A Boolean value specifying whether ARKit analyzes scene lighting in captured camera images.

Declaration

var isLightEstimationEnabled: Bool { get set }

Discussion

When this value is true (the default), a running AR session provides scene lighting information in the lightEstimate property of each ARFrame object it captures.

If you render your own overlay graphics for the AR scene, you can use this information in shading algorithms to help make those graphics match the real-world lighting conditions of the scene captured by the camera. (A RealityView or ARView automatically uses this information to configure RealityKit lighting.)

See Also

Configuring the AR session