---
title: lightingModel
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/custommaterial/lightingmodel-swift.property
---

# lightingModel

The lighting model that the material uses.

## Declaration

```swift
var lightingModel: CustomMaterial.LightingModel { get }
```

## Mentioned in

Modifying RealityKit rendering using custom materials

## Discussion

Discussion A custom material’s lighting model determines exactly how RealityKit uses the values set in your surface shader’s to render the entity. Custom materials supports the following lighting models:  |  |   |  |   |  |   |  |

## See Also

### Setting shader properties

- [program](realitykit/custommaterial/program-swift.property.md)
- [custom](realitykit/custommaterial/custom-swift.property.md)
- [withMutableUniforms(ofType:_:)](realitykit/custommaterial/withmutableuniforms(oftype:_:).md)
- [withMutableUniforms(ofType:stage:_:)](realitykit/custommaterial/withmutableuniforms(oftype:stage:_:).md)
