Documentation

Unity Engine

Download Unity

Unity Engine

ShadowMapPass

Allows precise control over which shadow map passes to execute CommandBuffer objects attached using Light.AddCommandBuffer.
Read time 1 minuteLast updated 8 days ago

Definition

Warning
Deprecated. ShadowMapPass is deprecated and will be removed in a future release. It has no effect because the Built-In Render Pipeline is removed. To inject rendering commands, use a ScriptableRenderPass in the Universal Render Pipeline (URP) or a Custom Pass in the High Definition Render Pipeline (HDRP) instead. #from(7000.0)
[Flags]public enum ShadowMapPass

Remarks

ShadowMapPass
is deprecated and will be removed in a future release. It has no effect because the Built-In Render Pipeline is removed. To inject rendering commands, use a ScriptableRenderPass in the Universal Render Pipeline (URP) or a Custom Pass in the High Definition Render Pipeline (HDRP) instead. These flags only take effect when used with LightEvent/BeforeShadowMapPass or LightEvent/AfterShadowMapPass.

Fields

Value

Description

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