<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/DirectionalLightComponent/init(color:intensity:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation25DirectionalLightComponentV0A3KitE5color9intensityACSo7UIColorC_Sftcfc"
  },
  "title" : "init(color:intensity:)"
}
-->

# init(color:intensity:)

Creates a directional light with a configuration.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)