Contents

init(color:intensity:)

Creates a directional light with a configuration.

Declaration

init(color: DirectionalLightComponent.Color = .white, intensity: Float = 2145.7078)

Parameters

  • color:

    A color for the light.

  • intensity:

    The intensity of the light, measured in lumen per square meter.

See Also

Creating a directional light