# ShadowDrawingSettings

> Create a shadow settings object.

## Definition

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

## ShadowDrawingSettings(CullingResults, int)

Create a shadow settings object.

```csharp
public ShadowDrawingSettings(CullingResults cullingResults, int lightIndex)
```

### Parameters

**** (\[CullingResults]\(/engine/6000.7/script-reference/unityengine/rendering/cullingresults)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The light index.

### Remarks

Additional Resources: [CullingResults](/engine/6000.7/script-reference/unityengine/rendering/cullingresults.md).

## ShadowDrawingSettings(CullingResults, int, BatchCullingProjectionType)

Create a shadow settings object.

> **Warning:**
>
> **Deprecated.** ShadowDrawingSettings(CullingResults, int, BatchCullingProjectionType) is deprecated. Use ShadowDrawingSettings(CullingResults, int) instead.

```csharp
public ShadowDrawingSettings(CullingResults cullingResults, int lightIndex, BatchCullingProjectionType projectionType)
```

### Parameters

**** (\[CullingResults]\(/engine/6000.7/script-reference/unityengine/rendering/cullingresults)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The light index.**** (\[BatchCullingProjectionType]\(/engine/6000.7/script-reference/unityengine/rendering/batchcullingprojectiontype)): The projection type of the shadow map. For directional lights this is usually [BatchCullingProjectionType.Orthographic](/engine/6000.7/script-reference/unityengine/rendering/batchcullingprojectiontype/orthographic.md) and for point or spot lights, it is usually [BatchCullingProjectionType.Perspective](/engine/6000.7/script-reference/unityengine/rendering/batchcullingprojectiontype/perspective.md).

### Remarks

Additional Resources: [CullingResults](/engine/6000.7/script-reference/unityengine/rendering/cullingresults.md).
