<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/CustomMaterial/EmissiveColor-swift.struct/init(color:texture:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14CustomMaterialV13EmissiveColorV0A3KitE5color7textureAESo7NSColorC_AC0cD7TextureVSgtcfc::OverloadGroup"
  },
  "title" : "init(color:texture:)"
}
-->

# init(color:texture:)

Creates a color of emitted light in macOS.

```
init(color: NSColor = .black, texture: CustomMaterial.Texture? = nil)
```

## Parameters

`color`

The color of the emitted light. Defaults to black.

`texture`

An optional UV-mapped image texture.

---

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)