[2022.1] Fixed "skip iterations" issue on Bloom by pbbastian · Pull Request #7175 · Unity-Technologies/Graphics · GitHub
Skip to content

[2022.1] Fixed "skip iterations" issue on Bloom#7175

Merged
phi-lira merged 2 commits into
2022.1/stagingfrom
2022.1/universal/fix-bloom-iterations
Feb 18, 2022
Merged

[2022.1] Fixed "skip iterations" issue on Bloom#7175
phi-lira merged 2 commits into
2022.1/stagingfrom
2022.1/universal/fix-bloom-iterations

Conversation

@pbbastian

Copy link
Copy Markdown
Contributor

Purpose of this PR

The "Skip Iterations" option on Bloom can cause the effect to not run at all due to the mip count being clamped too low. This causes the effect to never output anything in the bloom texture, thus ending up with whatever was in it when GetTemporaryRT returned it. But the rest of the pipeline still expects the bloom texture to contain valid data, and since GetTemporaryRT re-uses textures the contents would drastically change per frame.

On master this is fixed by #6369. We don't want to backport the new options, so instead we do this minimal fix.


Testing status

Verified bug locally by setting "Skip Iterations" too high, and then getting the scene view to render some frames while not in play mode.

@pbbastian pbbastian requested a review from ellioman February 17, 2022 11:49
@pbbastian pbbastian requested a review from a team as a code owner February 17, 2022 11:49
@pbbastian pbbastian requested a review from a team February 17, 2022 11:49
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

@pbbastian pbbastian changed the title Fixed "skip iterations" issue on Bloom [2022.1] Fixed "skip iterations" issue on Bloom Feb 17, 2022
@phi-lira phi-lira merged commit 43c1353 into 2022.1/staging Feb 18, 2022
@phi-lira phi-lira deleted the 2022.1/universal/fix-bloom-iterations branch February 18, 2022 10:50
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