Class MainLightShadowCasterPass
Renders a shadow map for the main Light.
Implements
Inherited Members
Namespace: UnityEngine.Rendering.Universal.Internal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class MainLightShadowCasterPass : ScriptableRenderPass, IRenderGraphRecorderConstructors
MainLightShadowCasterPass(RenderPassEvent)
Creates a new MainLightShadowCasterPass instance.
Declaration
public MainLightShadowCasterPass(RenderPassEvent evt)Parameters
| Type | Name | Description | 
|---|---|---|
| RenderPassEvent | evt | The  | 
See Also
Methods
Dispose()
Cleans up resources used by the pass.
Declaration
public void Dispose()Setup(ref RenderingData)
Sets up the pass.
Declaration
public bool Setup(ref RenderingData renderingData)Parameters
| Type | Name | Description | 
|---|---|---|
| RenderingData | renderingData | 
Returns
| Type | Description | 
|---|---|
| bool | True if the pass should be enqueued, otherwise false. | 
See Also
Setup(UniversalRenderingData, UniversalCameraData, UniversalLightData, UniversalShadowData)
Sets up the pass.
Declaration
public bool Setup(UniversalRenderingData renderingData, UniversalCameraData cameraData, UniversalLightData lightData, UniversalShadowData shadowData)Parameters
| Type | Name | Description | 
|---|---|---|
| UniversalRenderingData | renderingData | Data containing rendering settings. | 
| UniversalCameraData | cameraData | Data containing camera settings. | 
| UniversalLightData | lightData | Data containing light settings. | 
| UniversalShadowData | shadowData | Data containing shadow settings. | 
Returns
| Type | Description | 
|---|---|
| bool | True if the pass should be enqueued, otherwise false. |