lightingModel
The lighting model that the material uses.
Declaration
var lightingModel: CustomMaterial.LightingModel { get }Mentioned in
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:
Lighting Model | Description | Supported Shader Outputs |
|---|---|---|
| Uses physically based rendering techniques, but excludes clearcoat. | All except |
| Uses physically based rendering techniques, including clearcoat. | All |
| Renders without any shading or lighting calculations. The result is similar to using an Unlitmaterial. | Uses |