---
title: CustomMaterial.LightingModel.unlit
framework: realitykit
role: symbol
role_heading: Case
path: realitykit/custommaterial/lightingmodel-swift.enum/unlit
---

# CustomMaterial.LightingModel.unlit

The entity renders with no light or shadow calculations.

## Declaration

```swift
case unlit
```

## Discussion

Discussion A custom material that uses the unlit lighting model renders much like an entity with an UnlitMaterial. Custom materials using CustomMaterial.LightingModel.unlit don’t respond to lights in the scene. Use this lighting model for user interface elements or other elements where visibility is more important than fitting in to the environment. The surface shader for a custom material has access to all of the custom material’s properties as inputs, but only renders based on the value passed to params.surface().set_emissive_color(). RealityKit ignores any other property your shader sets on params.surface().

## See Also

### Specifying the lighting model

- [CustomMaterial.LightingModel.lit](realitykit/custommaterial/lightingmodel-swift.enum/lit.md)
- [CustomMaterial.LightingModel.clearcoat](realitykit/custommaterial/lightingmodel-swift.enum/clearcoat.md)
