Class AdditionalLightsShadowCasterPass
Renders a shadow map atlas for additional shadow-casting Lights.
Inheritance
AdditionalLightsShadowCasterPass
Syntax
public class AdditionalLightsShadowCasterPass : ScriptableRenderPass
Constructors
AdditionalLightsShadowCasterPass(RenderPassEvent)
Declaration
public AdditionalLightsShadowCasterPass(RenderPassEvent evt)
Parameters
Fields
m_AdditionalShadowsBufferId
Declaration
public static int m_AdditionalShadowsBufferId
Field Value
m_AdditionalShadowsIndicesId
Declaration
public static int m_AdditionalShadowsIndicesId
Field Value
Methods
Configure(CommandBuffer, RenderTextureDescriptor)
Declaration
public override void Configure(CommandBuffer cmd, RenderTextureDescriptor cameraTextureDescriptor)
Parameters
Overrides
Execute(ScriptableRenderContext, ref RenderingData)
Execute the pass. This is where custom rendering occurs. Specific details are left to the implementation
Declaration
public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
Parameters
Type |
Name |
Description |
ScriptableRenderContext |
context |
Use this render context to issue any draw commands during execution
|
RenderingData |
renderingData |
Current rendering state information
|
Overrides
GetShadowLightIndexFromLightIndex(Int32)
Declaration
public int GetShadowLightIndexFromLightIndex(int visibleLightIndex)
Parameters
Type |
Name |
Description |
Int32 |
visibleLightIndex |
|
Returns
OnCameraCleanup(CommandBuffer)
Declaration
public override void OnCameraCleanup(CommandBuffer cmd)
Parameters
Overrides
Setup(ref RenderingData)
Declaration
public bool Setup(ref RenderingData renderingData)
Parameters
Returns