Contents

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

.lit

Uses physically based rendering techniques, but excludes clearcoat.

All except set_clearcoat() and set_clearcoat_roughness()

.clearcoat

Uses physically based rendering techniques, including clearcoat.

All

.unlit

Renders without any shading or lighting calculations. The result is similar to using an Unlitmaterial.

Uses set_emissive_color() only

See Also

Setting shader properties