init(color:intensity:isRealWorldProxy:)
Creates a directional light with a configuration.
Declaration
init(color: DirectionalLightComponent.Color = .white, intensity: Float = 2145.7078, isRealWorldProxy: Bool = false)Parameters
- color:
A color for the light.
- intensity:
The intensity of the light, measured in lumen per square meter.
- isRealWorldProxy:
A Boolean that you use to control whether the light operates as a proxy for a real-world light.