Light.renderingLayerMask

Switch to Manual
public int renderingLayerMask ;

Description

Determines which rendering LayerMask this Light affects.

When using a Scriptable Render Pipeline, you can specify an additional rendering-specific LayerMask. During shadow passes, this filters Renderers based on the Light and the Renderers rendering LayerMask.