Class RenderOpaqueForwardPass
Render all opaque forward objects into the given color and depth target
You can use this pass to render objects that have a material and/or shader with the pass names LightweightForward or SRPDefaultUnlit. The pass only renders objects in the rendering queue range of Opaque objects.
Inherited Members
Namespace: UnityEngine.Experimental.Rendering.LightweightPipeline
Syntax
public class RenderOpaqueForwardPass : ScriptableRenderPass
Constructors
RenderOpaqueForwardPass()
Declaration
public RenderOpaqueForwardPass()
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(RenderTextureDescriptor, RenderTargetHandle, RenderTargetHandle, ClearFlag, Color, RendererConfiguration)
Configure the pass before execution
Declaration
public void Setup(RenderTextureDescriptor baseDescriptor, RenderTargetHandle colorAttachmentHandle, RenderTargetHandle depthAttachmentHandle, ClearFlag clearFlag, Color clearColor, RendererConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
RenderTextureDescriptor | baseDescriptor | Current target descriptor |
RenderTargetHandle | colorAttachmentHandle | Color attachment to render into |
RenderTargetHandle | depthAttachmentHandle | Depth attachment to render into |
ClearFlag | clearFlag | Camera clear flag |
Color | clearColor | Camera clear color |
RendererConfiguration | configuration | Specific render configuration |