Oculus-VR / Unity-Graphics

Unity Graphics - Including Scriptable Render Pipeline
Other
66 stars 51 forks source link

Add motion vectors pass for opaque particles #10

Closed Theundeadwarrior closed 5 months ago

Theundeadwarrior commented 2 years ago

Please read the Contributing guide before making a PR.

Checklist for PR maker


Purpose of this PR

Add a simple motion vectors pass for opaque particles to use with application space warp. We're only using the camera motion and not the motion of the particles themselves as an approximation for now.


Testing status

Tested in an application with opaque and transparent particles with application space warp enabled and verified that we were writing the camera motion to the color buffer and the depth of the particles in the depth buffer of the motion vector pass (and only for opaque particles).


Comments to reviewers

Notes for the reviewers you have assigned.