Oculus-VR / Unity-Graphics

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

[2022.3][AppSW] Fix incorrect motionVector pass check #30

Open TrevorDaschOculus opened 7 months ago

TrevorDaschOculus commented 7 months ago

Please read the Contributing guide before making a PR.

Checklist for PR maker


Purpose of this PR

Instead of checking whether the motionVectorRenderTarget is equal to -1, simply copy the 'hasMotionVectorPass' from the engine's XRRenderPass.


Testing status

Confirmed that MotionVector pass executes when expected and is skipped when not expected


Comments to reviewers

Notes for the reviewers you have assigned.