Class DepthNormalOnlyPass
Render all objects that have a 'DepthNormals' and/or 'DepthNormalsOnly' pass into the given depth and normal buffers.
Implements
Inherited Members
Namespace: UnityEngine.Rendering.Universal.Internal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class DepthNormalOnlyPass : ScriptableRenderPass, IRenderGraphRecorder
Constructors
DepthNormalOnlyPass(RenderPassEvent, RenderQueueRange, LayerMask)
Creates a new DepthNormalOnlyPass
instance.
Declaration
public DepthNormalOnlyPass(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
GetGraphicsFormat()
Finds the format to use for the normals texture.
Declaration
public static GraphicsFormat GetGraphicsFormat()
Returns
Type | Description |
---|---|
GraphicsFormat | The GraphicsFormat to use with the Normals texture. |
OnCameraCleanup(CommandBuffer)
Called upon finish rendering a camera. You can use this callback to release any resources created by this render pass that need to be cleanup once camera has finished rendering. This method should be called for all cameras in a camera stack.
Declaration
public override void OnCameraCleanup(CommandBuffer cmd)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Use this CommandBuffer to cleanup any generated data |
Overrides
Setup(RTHandle, RTHandle)
Configures the pass.
Declaration
public void Setup(RTHandle depthHandle, RTHandle normalHandle)
Parameters
Type | Name | Description |
---|---|---|
RTHandle | depthHandle | The |
RTHandle | normalHandle | The |
See Also
Setup(RTHandle, RTHandle, RTHandle)
Configure the pass
Declaration
public void Setup(RTHandle depthHandle, RTHandle normalHandle, RTHandle decalLayerHandle)
Parameters
Type | Name | Description |
---|---|---|
RTHandle | depthHandle | The |
RTHandle | normalHandle | The |
RTHandle | decalLayerHandle | The |