<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/UnlitMaterial",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation13UnlitMaterialV"
  },
  "title" : "UnlitMaterial"
}
-->

# UnlitMaterial

A material that doesn’t respond to lights in the scene.

```
struct UnlitMaterial
```

## Overview

`UnlitMaterial` materials do not respond
to virtual or real lighting.

Add an `UnlitMaterial` to a model by setting it as one of the
[`materials`](/documentation/RealityKit/ModelComponent/materials) in a [`ModelComponent`](/documentation/RealityKit/ModelComponent).

```swift
let unlitMaterial = UnlitMaterial(color: .red)
let model = ModelComponent(
    mesh: .generateBox(size: 1),
    materials: [unlitMaterial]
)
redBoxEntity.components.set(model)
```

For example, a [`SimpleMaterial`](/documentation/RealityKit/SimpleMaterial) on the left, and an `UnlitMaterial` on the right:

|``doc://com.apple.RealityKit/documentation/RealityKit/SimpleMaterial``                                                                                                       |`UnlitMaterial`                                                                                                                                                                                                     |
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|![A screenshot of a red cube in a living room scene. The cube is rounded on the edges, and appears to be made of a reflective plastic material.](simplematerial-not-metallic)|![A screenshot of a red cube in a living room scene. The shape is of a cube observed from an angle above and to the right of it, and has no discernible edges as it has no response to lighting.](unlitmaterial-red)|

> Note: The blending mode of `UnlitMaterial` materials should be configured explicitly with the
> ``doc://com.apple.RealityKit/documentation/RealityKit/UnlitMaterial/blending-swift.property`` property for transparent or translucent surfaces.  The
> `opaque` mode is used when unset.

## Topics

### Creating an unlit material

[`init()`](/documentation/RealityKit/UnlitMaterial/init())

Creates an unlit material.

[`init(color:)`](/documentation/RealityKit/UnlitMaterial/init(color:)-8xgq2)

Creates an unlit material with the given base color.

[`init(applyPostProcessToneMap:)`](/documentation/RealityKit/UnlitMaterial/init(applyPostProcessToneMap:))

Creates an UnlitMaterial with the given tone mapping setting

[`init(color:applyPostProcessToneMap:)`](/documentation/RealityKit/UnlitMaterial/init(color:applyPostProcessToneMap:)-899er)

Creates an UnlitMaterial with the given color and tone mapping setting

[`init(program:)`](/documentation/RealityKit/UnlitMaterial/init(program:))

[`init(texture:)`](/documentation/RealityKit/UnlitMaterial/init(texture:))

Creates a new unlit material with the provided color texture.

### Configuring base color

[`color`](/documentation/RealityKit/UnlitMaterial/color)

The material’s base color.

[`baseColor`](/documentation/RealityKit/UnlitMaterial/baseColor-swift.property)

The base color of the material.

### Tinting an unlit material

[`tintColor`](/documentation/RealityKit/UnlitMaterial/tintColor-9v1sw)

A tint color applied to the base color.

### Controlling opacity

[`opacityThreshold`](/documentation/RealityKit/UnlitMaterial/opacityThreshold)

A threshold below which RealityKit ignores opacity.

[`blending`](/documentation/RealityKit/UnlitMaterial/blending-swift.property)

The transparency options for the material.



---

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)