Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Motion vectors in URP

Resources for outputting and reading a texture with data about object motion in the camera view.
Read time 1 minuteLast updated 22 days ago

Resources for outputting and reading a texture with data about object motion in the camera view.

Page

Description

Introduction to motion vectorsLearn about how URP calculates the frame-to-frame screen-space movement of surface fragments.
Built-in shader support for motion vectorsLearn about which types of motion different shader types support for calculating motion vectors.
Motion vectors render passUnderstand how the
MotionVectors
render pass renders the motion vector texture.
Output a motion vector texture in a custom shaderRender a motion vector texture in a custom shader.
Sample motion vectors in a shaderRequest the motion vector texture as an input in a custom shader.
Troubleshooting motion vectorsSolve common issues with motion vectors, for example visual artefacts.
Motion Vectors settings in the MeshRenderer component window referenceExplore the properties in the Motion Vectors settings to specify how a GameObject contributes to a motion vector texture.

Additional resources