Class DepthOnlyPass
Render all objects that have a 'DepthOnly' pass into the given depth buffer.
You can use this pass to prime a depth buffer for subsequent rendering. Use it as a z-prepass, or use it to generate a depth buffer.
Implements
IRenderGraphRecorder
Inherited Members
Namespace: UnityEngine.Rendering.Universal.Internal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class DepthOnlyPass : ScriptableRenderPass, IRenderGraphRecorder
Constructors
DepthOnlyPass(RenderPassEvent, RenderQueueRange, LayerMask)
Creates a new DepthOnlyPass
instance.
Declaration
public DepthOnlyPass(RenderPassEvent evt, RenderQueueRange renderQueueRange, LayerMask layerMask)
Parameters
Type | Name | Description |
---|---|---|
RenderPassEvent | evt | The |
RenderQueueRange | renderQueueRange | The |
LayerMask | layerMask | The layer mask to use for creating filtering settings that control what objects get rendered. |
See Also
Methods
Setup(RenderTextureDescriptor, RTHandle)
Configures the pass.
Declaration
public void Setup(RenderTextureDescriptor baseDescriptor, RTHandle depthAttachmentHandle)
Parameters
Type | Name | Description |
---|---|---|
RenderTextureDescriptor | baseDescriptor | The |
RTHandle | depthAttachmentHandle | The |
See Also
Implements
UnityEngine.Rendering.RenderGraphModule.IRenderGraphRecorder