Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShadowDrawingSettings

Create a shadow settings object.
Read time 1 minuteLast updated 6 days ago

Definition

ShadowDrawingSettings(CullingResults, int)

Create a shadow settings object.
public ShadowDrawingSettings(CullingResults cullingResults, int lightIndex)

Parameters

cullingResults


lightIndex

The light index.

Remarks

Additional Resources: CullingResults.

ShadowDrawingSettings(CullingResults, int, BatchCullingProjectionType)

Create a shadow settings object.
Warning
Deprecated. ShadowDrawingSettings(CullingResults, int, BatchCullingProjectionType) is deprecated. Use ShadowDrawingSettings(CullingResults, int) instead.
public ShadowDrawingSettings(CullingResults cullingResults, int lightIndex, BatchCullingProjectionType projectionType)

Parameters

cullingResults


lightIndex

The light index.

The projection type of the shadow map. For directional lights this is usually BatchCullingProjectionType.Orthographic and for point or spot lights, it is usually BatchCullingProjectionType.Perspective.

Remarks

Additional Resources: CullingResults.