Class SetupLightweightConstanstPass
Configure the shader constants needed by the render pipeline
This pass configures constants that LWRP uses when rendering. For example, you can execute this pass before you render opaque objects, to make sure that lights are configured correctly.
Inherited Members
Namespace: UnityEngine.Experimental.Rendering.LightweightPipeline
Syntax
public class SetupLightweightConstanstPass : ScriptableRenderPass
Constructors
SetupLightweightConstanstPass()
Create the pass
Declaration
public SetupLightweightConstanstPass()
Methods
Execute(ScriptableRenderer, ScriptableRenderContext, ref RenderingData)
Execute the pass. This is where custom rendering occurs. Specific details are left to the implementation
Declaration
public override void Execute(ScriptableRenderer renderer, ScriptableRenderContext context, ref RenderingData renderingData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderer | renderer | The currently executing renderer. Contains configuration for the current execute call. |
ScriptableRenderContext | context | Use this render context to issue any draw commands during execution |
RenderingData | renderingData | Current rendering state information |
Overrides
Setup(Int32, ComputeBuffer)
Configure the pass
Declaration
public void Setup(int maxVisibleAdditionalLights, ComputeBuffer perObjectLightIndices)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxVisibleAdditionalLights | Maximum number of visible additional lights |
ComputeBuffer | perObjectLightIndices | Buffer holding per object light indicies |