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

# lightingModel

The lighting formula that SceneKit uses to render the material.

## Declaration

```swift
var lightingModel: SCNMaterial.LightingModel { get set }
```

## Discussion

Discussion SceneKit provides several different lighting models, each of which combines information from a material’s visual properties with the lights and other contents of a scene. For details on how each lighting model affects rendering, see Lighting Models. For details on the contribution from each visual property, see Visual Properties for Special Effects.

## See Also

### Choosing a Shading Model

- [SCNMaterial.LightingModel](scenekit/scnmaterial/lightingmodel-swift.struct.md)
