Skip to content

Conversation

@FrancescoC-unity
Copy link
Contributor

Fix for https://fogbugz.unity3d.com/f/cases/1262195/

The issue was due to the fact that we called probe.SetIsRendered(m_FrameCount); regardless of whether the render request has been issued or not. As a result, if we an "OnEnable" probe is deemed not visible, the render request is not queued but the probe is marked as rendered, therefore whenever becomes visible it will not be rendered.

This change forces the probe to be set as rendered only if the probe is visible, otherwise we don't mark it as such.

What have I tested: Tried the same scenario as reported in the bug report, tried on a separate map and tried other fade distances than the one indicated in the video.

@github-actions
Copy link

github-actions bot commented Aug 4, 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!

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.

Checked new template Ref Probes with OnEnable, OnDemand, in Scene/Game view with various fade distances, works as expected!

@sebastienlagarde sebastienlagarde merged commit 98a5aae into HDRP/staging Aug 5, 2020
@sebastienlagarde sebastienlagarde deleted the HDRP/fix-on-enable-probe-issue branch August 5, 2020 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants