init(color:texture:)
Creates a color of emitted light in macOS.
Declaration
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.