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 lighting example following emissive material changes in #13350 #13480

Merged
merged 2 commits into from
May 23, 2024
Merged

Fix lighting example following emissive material changes in #13350 #13480

merged 2 commits into from
May 23, 2024

Conversation

jirisvd
Copy link
Contributor

@jirisvd jirisvd commented May 22, 2024

Objective

After the emissive material changes in #13350, the red and green point lights in the lighting example turned white.

Solution

This PR gives the point lights the emissive_exposure_weight property in order for them to appear with correct color again.

Testing

The lighting example before this fix:

image

After this fix (looks the same as before #13350):

image

Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

The fix is good, but should we turn down the emissive color value instead?

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples labels May 22, 2024
@jirisvd
Copy link
Contributor Author

jirisvd commented May 22, 2024

The fix is good, but should we turn down the emissive color value instead?

That makes sense, I pushed a change to do this instead to get a similar result:

image

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label May 23, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 23, 2024
Merged via the queue into bevyengine:main with commit 4dbfdcf May 23, 2024
28 checks passed
@jirisvd jirisvd deleted the fix-lighting-example branch May 23, 2024 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants