-
Notifications
You must be signed in to change notification settings - Fork 861
[10.x.x] Fixed mirror view shader reading wrong viewport region from the eye textures #2283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| output.positionCS.xy = output.positionCS.xy * float2(2.0f, -2.0f) + float2(-1.0f, 1.0f); //convert to -1..1 | ||
|
|
||
| #if UNITY_UV_STARTS_AT_TOP | ||
| // Unity viewport converntion is bottom left as origin. Adjust Scalebias to read the correct region. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo converntion -> convention
ryanhy-unity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run locally the editor game view looked good using Mock HMD. Thomas tested locally with standalone which worked well there too. Oculus is still not functioning properly but this is being tracked separately so shouldn't prevent this change.
The associated Mock HMD changes fixed URP for that provider as well with this change.
… into universal/xr/fix-mirror-view-convention
Updated CHANGELOG.md
commit 4168f84 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:53:27 2020 -0700 Fixed typo. Updated CHANGELOG.md commit d9b0581 Merge: 53b2082 8bc58a4 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:50:33 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/fix-mirror-view-convention commit 53b2082 Author: thomas-zeng <[email protected]> Date: Mon Oct 19 16:47:33 2020 -0700 Fixed mirror view shader reading wrong viewport region from the eye textures.
commit 4168f84 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:53:27 2020 -0700 Fixed typo. Updated CHANGELOG.md commit d9b0581 Merge: 53b2082 8bc58a4 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:50:33 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/fix-mirror-view-convention commit 53b2082 Author: thomas-zeng <[email protected]> Date: Mon Oct 19 16:47:33 2020 -0700 Fixed mirror view shader reading wrong viewport region from the eye textures.
* Merge of #2283 commit 4168f84 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:53:27 2020 -0700 Fixed typo. Updated CHANGELOG.md commit d9b0581 Merge: 53b2082 8bc58a4 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:50:33 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/fix-mirror-view-convention commit 53b2082 Author: thomas-zeng <[email protected]> Date: Mon Oct 19 16:47:33 2020 -0700 Fixed mirror view shader reading wrong viewport region from the eye textures. * Merge of #2253 commit e5e780c Author: Elvar Örn Unnþórsson <[email protected]> Date: Fri Oct 16 10:53:25 2020 +0200 Hide warnings about mismatched particle normals We always include vertex normals by default when building particle data, so users can switch between lit + unlit shaders without any extra config changes. This causes the standard particle gui to complain, but we should hide this error. # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md * Merge of #2222 commit bfb132b Author: thomas-zeng <[email protected]> Date: Tue Oct 13 16:45:52 2020 -0700 Fixed camera matrix not restored after modification. * Merge of #2284 commit 502a242 Merge: 2c742d8 acaf95d Author: Nigel John Williams <[email protected]> Date: Thu Oct 22 13:30:58 2020 +0200 Merge branch 'master' into universal/sun-source-light-type commit 2c742d8 Merge: 00042cb 4acb87d Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:52:38 2020 +0200 Merge branch 'master' into universal/sun-source-light-type commit 00042cb Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:16:20 2020 +0200 Fix sun source warning text Changed sun source warning message to explicitly specify light window's environment settings. commit 489e90f Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:00:56 2020 +0200 Fix code comment about sun light Corrected legacy code comment about sun light for selection of main light. commit 51e3147 Author: Nigel John Williams <[email protected]> Date: Fri Oct 16 16:50:03 2020 +0200 Restrict sun source to only directional lights and display warning message if user changes the sun light type. * Merge of #2135 commit 6633ec9 Author: thomas-zeng <[email protected]> Date: Tue Oct 20 16:30:22 2020 -0700 Updated CHANGELOG.md. commit 7078aa1 Merge: a706832 52ec802 Author: thomas-zeng <[email protected]> Date: Tue Oct 20 16:28:14 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/clamp-msaa commit a706832 Author: thomas-zeng <[email protected]> Date: Thu Oct 8 10:34:38 2020 -0700 Added next power of 2 logic and clamp logic to XR msaa setter. * Added missing changelog for #2284 Co-authored-by: Nigel John Williams <[email protected]>
|
Closing. Merged in: #2390 |
* Merge of #2283 commit 4168f84 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:53:27 2020 -0700 Fixed typo. Updated CHANGELOG.md commit d9b0581 Merge: 53b2082 8bc58a4 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:50:33 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/fix-mirror-view-convention commit 53b2082 Author: thomas-zeng <[email protected]> Date: Mon Oct 19 16:47:33 2020 -0700 Fixed mirror view shader reading wrong viewport region from the eye textures. * Merge of #2253 commit e5e780c Author: Elvar Örn Unnþórsson <[email protected]> Date: Fri Oct 16 10:53:25 2020 +0200 Hide warnings about mismatched particle normals We always include vertex normals by default when building particle data, so users can switch between lit + unlit shaders without any extra config changes. This causes the standard particle gui to complain, but we should hide this error. # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md * Merge of #2222 commit bfb132b Author: thomas-zeng <[email protected]> Date: Tue Oct 13 16:45:52 2020 -0700 Fixed camera matrix not restored after modification. * Merge of #2284 commit 502a242 Merge: 2c742d8 acaf95d Author: Nigel John Williams <[email protected]> Date: Thu Oct 22 13:30:58 2020 +0200 Merge branch 'master' into universal/sun-source-light-type commit 2c742d8 Merge: 00042cb 4acb87d Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:52:38 2020 +0200 Merge branch 'master' into universal/sun-source-light-type commit 00042cb Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:16:20 2020 +0200 Fix sun source warning text Changed sun source warning message to explicitly specify light window's environment settings. commit 489e90f Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:00:56 2020 +0200 Fix code comment about sun light Corrected legacy code comment about sun light for selection of main light. commit 51e3147 Author: Nigel John Williams <[email protected]> Date: Fri Oct 16 16:50:03 2020 +0200 Restrict sun source to only directional lights and display warning message if user changes the sun light type. * Merge of #2135 commit 6633ec9 Author: thomas-zeng <[email protected]> Date: Tue Oct 20 16:30:22 2020 -0700 Updated CHANGELOG.md. commit 7078aa1 Merge: a706832 52ec802 Author: thomas-zeng <[email protected]> Date: Tue Oct 20 16:28:14 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/clamp-msaa commit a706832 Author: thomas-zeng <[email protected]> Date: Thu Oct 8 10:34:38 2020 -0700 Added next power of 2 logic and clamp logic to XR msaa setter. * Added missing changelog for #2284 Co-authored-by: Nigel John Williams <[email protected]> # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md
* Merge of #2283 commit 4168f84 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:53:27 2020 -0700 Fixed typo. Updated CHANGELOG.md commit d9b0581 Merge: 53b2082 8bc58a4 Author: thomas-zeng <[email protected]> Date: Thu Oct 22 10:50:33 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/fix-mirror-view-convention commit 53b2082 Author: thomas-zeng <[email protected]> Date: Mon Oct 19 16:47:33 2020 -0700 Fixed mirror view shader reading wrong viewport region from the eye textures. * Merge of #2253 commit e5e780c Author: Elvar Örn Unnþórsson <[email protected]> Date: Fri Oct 16 10:53:25 2020 +0200 Hide warnings about mismatched particle normals We always include vertex normals by default when building particle data, so users can switch between lit + unlit shaders without any extra config changes. This causes the standard particle gui to complain, but we should hide this error. # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md * Merge of #2222 commit bfb132b Author: thomas-zeng <[email protected]> Date: Tue Oct 13 16:45:52 2020 -0700 Fixed camera matrix not restored after modification. * Merge of #2284 commit 502a242 Merge: 2c742d8 acaf95d Author: Nigel John Williams <[email protected]> Date: Thu Oct 22 13:30:58 2020 +0200 Merge branch 'master' into universal/sun-source-light-type commit 2c742d8 Merge: 00042cb 4acb87d Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:52:38 2020 +0200 Merge branch 'master' into universal/sun-source-light-type commit 00042cb Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:16:20 2020 +0200 Fix sun source warning text Changed sun source warning message to explicitly specify light window's environment settings. commit 489e90f Author: nigeljw-unity <[email protected]> Date: Tue Oct 20 11:00:56 2020 +0200 Fix code comment about sun light Corrected legacy code comment about sun light for selection of main light. commit 51e3147 Author: Nigel John Williams <[email protected]> Date: Fri Oct 16 16:50:03 2020 +0200 Restrict sun source to only directional lights and display warning message if user changes the sun light type. * Merge of #2135 commit 6633ec9 Author: thomas-zeng <[email protected]> Date: Tue Oct 20 16:30:22 2020 -0700 Updated CHANGELOG.md. commit 7078aa1 Merge: a706832 52ec802 Author: thomas-zeng <[email protected]> Date: Tue Oct 20 16:28:14 2020 -0700 Merge branch 'master' of https://github.com/Unity-Technologies/Graphics into universal/xr/clamp-msaa commit a706832 Author: thomas-zeng <[email protected]> Date: Thu Oct 8 10:34:38 2020 -0700 Added next power of 2 logic and clamp logic to XR msaa setter. * Added missing changelog for #2284 Co-authored-by: Nigel John Williams <[email protected]> # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md
Checklist for PR maker
need-backport-*label. After you backport the PR, the label changes tobackported-*.CHANGELOG.mdfile.Purpose of this PR
Fixed https://fogbugz.unity3d.com/f/cases/1286161/
Requires mock provider side fix to work: https://github.cds.internal.unity3d.com/unity/xr.sdk.mock-hmd/pull/28
Testing status
Describe what manual/automated tests were performed for this PR
Comments to reviewers
Notes for the reviewers you have assigned.