# sortShadowcastersByRenderQueue

> Sorts shadowcasting renderers by their render queue index when rendering shadows.

## Definition

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

```csharp
public bool sortShadowcastersByRenderQueue { get; set; }
```

### Remarks

This is useful when doing stencil-based effects in the ShadowCaster pass, where control over the rendering order is required.
