---
title: "init(color:texture:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/custommaterial/emissivecolor-swift.struct/init(color:texture:)"
---

# init(color:texture:)

Creates a color of emitted light in macOS.

## Declaration

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