Class AdditionalLightsShadowCasterPass
Renders a shadow map atlas for additional shadow-casting Lights.
Implements
Inherited Members
Namespace: UnityEngine.Rendering.Universal.Internal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class AdditionalLightsShadowCasterPass : ScriptableRenderPass, IRenderGraphRecorder
Constructors
AdditionalLightsShadowCasterPass(RenderPassEvent)
Creates a new AdditionalLightsShadowCasterPass instance.
Declaration
public AdditionalLightsShadowCasterPass(RenderPassEvent evt)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderPassEvent | evt | The |
See Also
Methods
Dispose()
Cleans up resources used by the pass.
Declaration
public void Dispose()
GetShadowLightIndexFromLightIndex(int)
Gets the additional light index from the global visible light index, which is used to index arrays _AdditionalLightsPosition, _AdditionalShadowParams, etc.
Declaration
public int GetShadowLightIndexFromLightIndex(int visibleLightIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | visibleLightIndex | The index of the visible light. |
Returns
| Type | Description |
|---|---|
| int | The additional light index. |
Setup(ref RenderingData)
Sets up the pass.
Declaration
public bool Setup(ref RenderingData renderingData)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderingData | renderingData |
Returns
| Type | Description |
|---|---|
| bool |
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 | Returns true if additional shadows are enabled otherwise false. |