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

Change glow calculation back to max(r,g,b) #88612

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

BastiaanOlij
Copy link
Contributor

Follow up on #87360 based on a remark by @clayjohn :

  1. Improve the luminance calculation. Using the current method means that blue objects don't glow

In this PR I change the calculation back to max(r, g, b) which gives a more pronounced glow on all colors. I've also renamed the variable because it isn't really a luminance calculation, it's really the max strength that is important here for the glow, as we end up using the color as is. I think with the normal luminance calculation we're actually doubling up and making the glow fairly unusable..

@akien-mga akien-mga changed the title Change glow calculation back to max(r,g,b) Change glow calculation back to max(r,g,b) Feb 21, 2024
@akien-mga akien-mga merged commit e91438c into godotengine:master Feb 21, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@BastiaanOlij BastiaanOlij deleted the gles_glow_factor branch February 27, 2024 23:39
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.

3 participants