# Sandbox.DirectionalLight.ShadowCascadeCount

```csharp
int ShadowCascadeCount { get; set; }
```

Number of cascades to split the view frustum into for the whole scene dynamic shadow.  
More cascades result in better shadow resolution, but adds significant rendering cost.

User settings will set a maximum.

Declared in [Sandbox.DirectionalLight](/api/Sandbox.DirectionalLight).
Assembly: `Sandbox.Engine`.
