ShadowMapPass
Allows precise control over which shadow map passes to execute CommandBuffer objects attached using Light.AddCommandBuffer.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
[Flags]public enum ShadowMapPass
Remarks
These flags only take effect when used with LightEvent/BeforeShadowMapPass or LightEvent/AfterShadowMapPass.
Fields
Value | Description |
|---|---|
| All | All shadow map passes. |
| AreaLight | Area light shadow pass. |
| Directional | All directional shadow map passes. |
| DirectionalCascade0 | First directional shadow map cascade. |
| DirectionalCascade1 | Second directional shadow map cascade. |
| DirectionalCascade2 | Third directional shadow map cascade. |
| DirectionalCascade3 | Fourth directional shadow map cascade. |
| Pointlight | All 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. |
| Spotlight | Spot light shadow pass. |