Version: 2021.1
LanguageEnglish
  • C#

ShadowMapPass

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Allows precise control over which shadow map passes to execute CommandBuffer objects attached using Light.AddCommandBuffer.

These flags only take effect when used with Rendering.LightEvent/BeforeShadowMapPass or Rendering.LightEvent/AfterShadowMapPass.

Properties

PointlightPositiveX+X point light shadow cubemap face.
PointlightNegativeX-X point light shadow cubemap face.
PointlightPositiveY+Y point light shadow cubemap face.
PointlightNegativeY-Y point light shadow cubemap face.
PointlightPositiveZ+Z point light shadow cubemap face.
PointlightNegativeZ-Z point light shadow cubemap face.
DirectionalCascade0First directional shadow map cascade.
DirectionalCascade1Second directional shadow map cascade.
DirectionalCascade2Third directional shadow map cascade.
DirectionalCascade3Fourth directional shadow map cascade.
SpotlightSpotlight shadow pass.
PointlightAll point light shadow passes.
DirectionalAll directional shadow map passes.
AllAll shadow map passes.