Class DrawSkyboxPass
Draw the skybox into the given color buffer using the given depth buffer for depth testing.
This pass renders the standard Unity skybox.
Inherited Members
Namespace: UnityEngine.Experimental.Rendering.LightweightPipeline
Syntax
public class DrawSkyboxPass : ScriptableRenderPass
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(RenderTargetHandle, RenderTargetHandle)
Configure the color and depth passes to use when rendering the skybox
Declaration
public void Setup(RenderTargetHandle colorHandle, RenderTargetHandle depthHandle)
Parameters
Type | Name | Description |
---|---|---|
RenderTargetHandle | colorHandle | Color buffer to use |
RenderTargetHandle | depthHandle | Depth buffer to use |