Class XRDepthMotionPass
Render all objects that have a 'XRMotionVectors' pass into the given depth buffer and motionvec buffer.
Implements
IRenderGraphRecorder
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public class XRDepthMotionPass : ScriptableRenderPass, IRenderGraphRecorder
Constructors
XRDepthMotionPass(RenderPassEvent, Shader)
Creates a new XRDepthMotionPass
instance.
Declaration
public XRDepthMotionPass(RenderPassEvent evt, Shader xrMotionVector)
Parameters
Type | Name | Description |
---|---|---|
RenderPassEvent | evt | The |
Shader | xrMotionVector | The Shader used for rendering XR camera motion vector. |
See Also
Methods
Dispose()
Cleans up resources used by the pass.
Declaration
public void Dispose()
Update(ref UniversalCameraData)
Update XRDepthMotionPass to use camera's view and projection matrix for motion vector calculation.
Declaration
public void Update(ref UniversalCameraData cameraData)
Parameters
Type | Name | Description |
---|---|---|
UniversalCameraData | cameraData | The cameraData used for rendering to XR moition textures. |
Implements
UnityEngine.Rendering.RenderGraphModule.IRenderGraphRecorder