-
Notifications
You must be signed in to change notification settings - Fork 860
[11.x.x] Fixed per camera MSAA regression #2293
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
[11.x.x] Fixed per camera MSAA regression #2293
Conversation
…alled. Added runtime XR on/off check for XR camera.
… into universal/xr/fix-camera-msaa-regression
| #if ENABLE_VR && ENABLE_XR_MODULE | ||
| List<XRDisplaySubsystemDescriptor> displayDescriptors = new List<XRDisplaySubsystemDescriptor>(); | ||
| SubsystemManager.GetSubsystemDescriptors(displayDescriptors); | ||
| additionData.allowXRRendering = displayDescriptors.Count > 0; |
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.
I don't think we should be changing serialized component data in OnEnable. We shouldn't have to change this value based on the presence of XR. It should be enough to have the checks during rendering.
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.
For the fogbugz case, the runtime check is good enough.
The code here improved the default value for camera's target eye. It will defaults new camera's target eye field to None when it gets created in editor and no XR provider is installed.
I will revert the change here and put it into another PR. We can review it separately.
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.
Addressed in
1d87eaa
|
merging to stage branch |
* [11.x.x] Fixing NullReferenceException with Lift Gamma Gain & upgrading URP Package (#2386) * Fixing issue 1283588 * Similar fix to ShadowsMidtonesHighlightsEditor.cs * Minor fixes * More minor fixes * [11.x.x] Soft Particle bugfixes. Cases 1162556, 1256953& 1226288 + 1268079 (#1922) * Bugfix 1162556 * Fixing issue 1226288 * Minor fix to ParticlesEditorPass * Removing HasDepthTexture() from the shaders and instead setting the depth texture to black/white if we're not doing a prepass or copydepth * Fixing compile errors * Fixes based on review * Fixing an copy/paste error * Fixing things based on reviews * Renaming PARTICLES_EDITOR define to PARTICLES_EDITOR_META_PASS * Changing the message from info to warning * Changelog * changelog * Bugfix: The code was overriding the depth texture for overlay cameras, which is incorrect. * [11.x.x] MSAA fix for Metal MacOS/Editor (#2391) * Metal MacOS/Editor MSAA fix. Require an explicit MSAA resolve pass unless the platform is mobile * Added changelog entry * [11.x.x] Fixed per camera MSAA regression (#2293) * Default to XR off when creating the camera and no XR provider is installed. Added runtime XR on/off check for XR camera. * Updated CHANGELOG.md and small format fixes. * Reverted changes in URPCameraEditor and URPCameraData. * [11.x.x] Early camera color target assignment (#2377) * Assign the camera color target early in case it is needed during AddRenderPasses * Update to reflect PR feedback * Get rid of warnings from accessing cameraColorTarget during AddRenderPasses * Update CHANGELOG.md * Removed tile shaders are currently unused. (#2383) Co-authored-by: Elvar Örn Unnþórsson <[email protected]> Co-authored-by: manuele-bonanno <[email protected]> Co-authored-by: thomas-zeng <[email protected]> Co-authored-by: Peter Bay Bastian <[email protected]> Co-authored-by: Kay Chang <[email protected]>
* Default to XR off when creating the camera and no XR provider is installed. Added runtime XR on/off check for XR camera. * Updated CHANGELOG.md and small format fixes. * Reverted changes in URPCameraEditor and URPCameraData. # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md
* [11.x.x] Fixing NullReferenceException with Lift Gamma Gain & upgrading URP Package (#2386) * Fixing issue 1283588 * Similar fix to ShadowsMidtonesHighlightsEditor.cs * Minor fixes * More minor fixes # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md * [11.x.x] Soft Particle bugfixes. Cases 1162556, 1256953& 1226288 + 1268079 (#1922) * Bugfix 1162556 * Fixing issue 1226288 * Minor fix to ParticlesEditorPass * Removing HasDepthTexture() from the shaders and instead setting the depth texture to black/white if we're not doing a prepass or copydepth * Fixing compile errors * Fixes based on review * Fixing an copy/paste error * Fixing things based on reviews * Renaming PARTICLES_EDITOR define to PARTICLES_EDITOR_META_PASS * Changing the message from info to warning * Changelog * changelog * Bugfix: The code was overriding the depth texture for overlay cameras, which is incorrect. # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md * [11.x.x] MSAA fix for Metal MacOS/Editor (#2391) * Metal MacOS/Editor MSAA fix. Require an explicit MSAA resolve pass unless the platform is mobile * Added changelog entry # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md * [11.x.x] Fixed per camera MSAA regression (#2293) * Default to XR off when creating the camera and no XR provider is installed. Added runtime XR on/off check for XR camera. * Updated CHANGELOG.md and small format fixes. * Reverted changes in URPCameraEditor and URPCameraData. # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md * [11.x.x] Early camera color target assignment (#2377) * Assign the camera color target early in case it is needed during AddRenderPasses * Update to reflect PR feedback * Get rid of warnings from accessing cameraColorTarget during AddRenderPasses * Update CHANGELOG.md # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md Co-authored-by: Elvar Örn Unnþórsson <[email protected]> Co-authored-by: manuele-bonanno <[email protected]> Co-authored-by: thomas-zeng <[email protected]> Co-authored-by: Peter Bay Bastian <[email protected]>
Checklist for PR maker
need-backport-*label. After you backport the PR, the label changes tobackported-*.CHANGELOG.mdfile.Purpose of this PR
Testing status
Describe what manual/automated tests were performed for this PR
Comments to reviewers