<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/DirectionalLightComponent/init(color:intensity:isRealWorldProxy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation25DirectionalLightComponentV0A3KitE5color9intensity16isRealWorldProxyACSo7NSColorC_SfSbtcfc::OverloadGroup"
  },
  "title" : "init(color:intensity:isRealWorldProxy:)"
}
-->

# init(color:intensity:isRealWorldProxy:)

Creates a directional light with a configuration.

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

---

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)