microsoft / MixedReality-GraphicsTools-Unity

Graphics tools and components for developing Mixed Reality applications in Unity.
MIT License
182 stars 42 forks source link

2022 Blit Fix #188

Closed Cameron-Micka closed 1 year ago

Cameron-Micka commented 1 year ago

Overview

This PR introduces a forked version of DrawFullscreenPass that works in Unity 2022. Unity 2022 requires the use of RTHandle when working with camera targets. Unity 2021 doesn't have RTHandle based camera targets (hence the need to fork the code). The 2022 code is a lot smaller which is one good thing about this update.

Before: image

After: image

Verification

As a reviewer, it is possible to check out this change locally by using the following commands (substituting {PR_ID} with the ID of this pull request):

git fetch origin pull/{PR_ID}/head:name_of_local_branch

git checkout name_of_local_branch