Skip to content
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

Fix GLES2 ambient light flickering with multiple refprobes #53740

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

clktmr
Copy link
Contributor

@clktmr clktmr commented Oct 12, 2021

Fixes #36399

@clktmr clktmr requested review from a team as code owners October 12, 2021 20:26
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Looks good, subject to CI passing!

edit: for future reference, this PR fixes the ambient light flickering experienced by users when there are 2 or more probes in the scene and it documents the limitation that each object on receives light from the nearest 2 reflection probes

@akien-mga akien-mga added this to the 3.4 milestone Oct 12, 2021
@clktmr clktmr force-pushed the gles2-multiple-refprobes branch from 6cffd12 to 3e5ee9c Compare October 12, 2021 22:42
@clayjohn
Copy link
Member

Can you please squash your two commits into one before we merge? How to do so is described here: https://docs.godotengine.org/en/latest/community/contributing/pr_workflow.html#the-interactive-rebase

This patch fixes rendering of multiple reflection probes for a single
mesh in the GLES2 renderer.  If there were two reflection probes, one of
them would always have the `interior` option flipped, resulting in
broken blending between probes and flickering of ambient reflection.

Also make note of GLES2 reflection probe limit
@clktmr clktmr force-pushed the gles2-multiple-refprobes branch from 3e5ee9c to e230bc6 Compare October 13, 2021 08:05
@akien-mga
Copy link
Member

Windows build failure is unrelated to this PR (GitHub Actions availability issue).

@akien-mga akien-mga merged commit 6fb7f18 into godotengine:3.x Oct 13, 2021
@akien-mga
Copy link
Member

Thanks!

@clktmr clktmr deleted the gles2-multiple-refprobes branch October 13, 2021 10:51
@akien-mga akien-mga changed the title Fix GLES2 rendering of multiple refprobes Fix GLES2 ambient light flickering with multiple refprobes Oct 19, 2021
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