# ShadowSamplingMode

> Used by CommandBuffer.SetShadowSamplingMode.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum ShadowSamplingMode
```

## Fields

| Value                                                                                                      | Description                                                                                          |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [CompareDepths](/engine/6000.5/script-reference/unityengine/rendering/shadowsamplingmode/comparedepths.md) | Default shadow sampling mode: sampling with a comparison filter.                                     |
| [None](/engine/6000.5/script-reference/unityengine/rendering/shadowsamplingmode/none.md)                   | In ShadowSamplingMode.None, depths are not compared. Use this value if a Texture is not a shadowmap. |
| [RawDepth](/engine/6000.5/script-reference/unityengine/rendering/shadowsamplingmode/rawdepth.md)           | Shadow sampling mode for sampling the depth value.                                                   |
