Contents

CustomMaterial.LightingModel.unlit

The entity renders with no light or shadow calculations.

Declaration

case unlit

Discussion

A custom material that uses the unlit lighting model renders much like an entity with an UnlitMaterial. Custom materials using CustomMaterial.LightingModel.unlit don’t respond to lights in the scene. Use this lighting model for user interface elements or other elements where visibility is more important than fitting in to the environment.

The surface shader for a custom material has access to all of the custom material’s properties as inputs, but only renders based on the value passed to params.surface().set_emissive_color(). RealityKit ignores any other property your shader sets on params.surface().

See Also

Specifying the lighting model