Skip to content

Estradel/URP-Simple-Per-Object-Motion-Blur

Repository files navigation

Unity URP - Simple Per Object Motion Blur

example.png

A simple implementation of a Per-object motion blur effect for Unity's Universal Render Pipeline. Developed as a weekend project, it uses the new Full Screen Pass Renderer Feature and Fullscreen Shader Graph introduced in Unity 2022.2. This is a fullscreen effect that applies to all object using motion vectors in the scene.

Demo

demo.mp4

Instructions

  • Import the "URP Simple Per Object Motion Blur" package into your Unity project.
  • Add a Full Screen Pass Renderer Feature into your URP renderer.
  • In the renderer feature, add a the "PerObjectMotionBlur" material provided by the package. Or use your own material.
  • In the requirements, select "Color" and "Motion".

renderFeature.png

  • In the material settings, you can adjust :
    • The number of samples for the motion blur
    • The amplitude of the motion blur
    • The target frame rate / shutter speed

material.png

Requirements

  • Unity 2022.2 or later
  • Universal Render Pipeline 14.0.5 or later

Known issues

  • The motion blur effect messes with the scene view in the Unity editor. I recommend to disable the effect while working in the scene view.

Related Links