Skip to content

Conversation

@pmavridis
Copy link
Contributor

@pmavridis pmavridis commented Aug 3, 2020

Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1264552/
https://fogbugz.unity3d.com/f/cases/1266223/

Camera stacking was broken in the graphics compositor (we were getting flickering) because the draw-order of the layer cameras was overwritten when updating other runtime properties.

This PR also fixes some errors that we were getting because the internal layer cameras, which are created as clones of the user cameras, were also cloning children and other components.


Testing status

  • Compositor test is green
  • Hitting play in the compositor test scene does not reproduce the flickering any more.
  • The test project in case 1266223 does not flicker anymore.
  • Also tested another (local) compositor project with camera stacking and the flickering is fixed there too.

@pmavridis pmavridis requested review from a team and sebastienlagarde August 3, 2020 15:23
@pmavridis pmavridis added the HDRP label Aug 3, 2020
@pmavridis pmavridis marked this pull request as draft August 3, 2020 15:23
@github-actions
Copy link

github-actions bot commented Aug 3, 2020

It appears that you made a non-draft PR!
Please convert your PR to draft (button on the right side of the page)
and cancel any jobs that started on Yamato.
See the PR template for more information.
Thank you!

@pmavridis pmavridis changed the title Hdrp/case 1264552 [Hdrp][Compositor] Fix flickering with camera stacking Aug 3, 2020
Copy link
Contributor

@TomasKiniulis TomasKiniulis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the description, looks like this has been tested extensively already and tests are green

@sebastienlagarde sebastienlagarde marked this pull request as ready for review August 6, 2020 10:05
@sebastienlagarde sebastienlagarde merged commit c5556cc into HDRP/staging Aug 6, 2020
@sebastienlagarde sebastienlagarde deleted the HDRP/case_1264552 branch August 6, 2020 10:05
@sebastienlagarde sebastienlagarde mentioned this pull request Sep 3, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants