# ShadowmaskMode

> The rendering mode of Shadowmask.

## Definition

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

```csharp
public enum ShadowmaskMode
```

## Remarks

Set whether static shadow casters should be rendered into real-time shadow maps.

Additional Resources: [QualitySettings.shadowmaskMode](/engine/6000.5/script-reference/unityengine/qualitysettings/shadowmaskmode.md), [QualitySettings.shadowDistance](/engine/6000.5/script-reference/unityengine/qualitysettings/shadowdistance.md).

## Fields

| Value                                                                                                  | Description                                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DistanceShadowmask](/engine/6000.5/script-reference/unityengine/shadowmaskmode/distanceshadowmask.md) | Static shadow casters will be rendered into real-time shadow maps. Shadowmasks and occlusion from Light Probes will only be used past the real-time shadow distance. |
| [Shadowmask](/engine/6000.5/script-reference/unityengine/shadowmaskmode/shadowmask.md)                 | Static shadow casters won't be rendered into real-time shadow maps. All shadows from static casters are handled via Shadowmasks and occlusion from Light Probes.     |
