# ShadowAuto

> Obsolete. Use GraphicsFormat.None as a color format instead to indicate depth-only rendering and ShadowSamplingMode.CompareDepths to enable shadowmap sampling. Use DefaultFormat to get the default shadow buffer format.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Experimental.Rendering](/engine/6000.6/script-reference/unityengine/experimental/rendering.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Removed.** Enum member GraphicsFormat.ShadowAuto is obsolete. Use GraphicsFormat.None as a color format to indicate depth only rendering, DefaultFormat to get the default shadow buffer format and ShadowSamplingMode.CompareDepths to enable shadowmap sampling.

```csharp
ShadowAuto = 143
```
