Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DrawShadows(ref ShadowDrawingSettings)

Schedules the drawing of shadow casters for a single Light.
Read time 1 minuteLast updated 5 days ago

Definition

DrawShadows(ShadowDrawingSettings)

Warning
Deprecated. DrawShadows is obsolete and replaced with the RendererList API: construct a RendererList using ScriptableRenderContext.CreateShadowRendererList and execture it using CommandBuffer.DrawRendererList.
public void DrawShadows(ref ShadowDrawingSettings settings)

Parameters

Specifies which set of shadow casters to draw, and how to draw them.

Remarks

Please note that in the case of DrawShadows called multiple times for the same light and using split spheres, shadow casters whose shadow volumes are fully covered by an earlier split will be discarded in following splits for performance reasons. One should thus use the split with the smallest index in case of split overlaps.
Additional Resources: CullingResults, ShadowDrawingSettings.