文档

Unity Engine

Unity Engine

renderingLayerMask

Determines which rendering LayerMask this Light affects.
阅读时间1 分钟最后更新于 1 天前

Definition

public int renderingLayerMask { get; set; }

Remarks

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.