---
title: LightingModel
framework: realitykit
role: symbol
role_heading: Enumeration
path: realitykit/lightingmodel
---

# LightingModel

The lighting model used by a ShaderGraphMaterial.Program.

## Declaration

```swift
enum LightingModel
```

## Overview

Overview This must match the type of the surface output node in the ShaderGraph. For example, a graph whose surface node is a PBR surface shader requires .lit.

## Topics

### Creating a lit model

- [lit(diffuseModel:specularModel:isSubsurfaceScatteringEnabled:isMultiscatteringEnabled:isBentNormalEnabled:isClearcoatEnabled:)](realitykit/lightingmodel/lit(diffusemodel:specularmodel:issubsurfacescatteringenabled:ismultiscatteringenabled:isbentnormalenabled:isclearcoatenabled:).md)
- [LightingModel.lit(_:)](realitykit/lightingmodel/lit(_:).md)

### Creating an unlit model

- [unlit(isTonemappingEnabled:)](realitykit/lightingmodel/unlit(istonemappingenabled:).md)
- [LightingModel.unlit(_:)](realitykit/lightingmodel/unlit(_:).md)

### Creating a hair model

- [hair()](realitykit/lightingmodel/hair().md)
- [LightingModel.hair(_:)](realitykit/lightingmodel/hair(_:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Lighting models

- [LitLightingModel](realitykit/litlightingmodel.md)
- [UnlitLightingModel](realitykit/unlitlightingmodel.md)
- [HairLightingModel](realitykit/hairlightingmodel.md)
