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

Exposure settings (adopted) #11347

Merged
merged 59 commits into from
Jan 16, 2024
Merged

Exposure settings (adopted) #11347

merged 59 commits into from
Jan 16, 2024

Conversation

JMS55
Copy link
Contributor

@JMS55 JMS55 commented Jan 14, 2024

Rebased and finished version of #8407. Huge thanks to @GitGhillie for adjusting all the examples, and the many other people who helped write this PR (@superdump , @coreh , among others) :)

Fixes #8369


Changelog

  • Added a brightness control to Skybox.
  • Added an intensity control to EnvironmentMapLight.
  • Added ExposureSettings and PhysicalCameraParameters for controlling exposure of 3D cameras.
  • Removed the baked-in DirectionalLight exposure Bevy previously hardcoded internally.

Migration Guide

  • If using a Skybox or EnvironmentMapLight, use the new brightness and intensity controls to adjust their strength.
  • All 3D scene will now have different apparent brightnesses due to Bevy implementing proper exposure controls. You will have to adjust the intensity of your lights and/or your camera exposure via the new ExposureSettings component to compensate.

superdump and others added 30 commits April 16, 2023 22:33
ExposureSettings rebase + improvements
JMS55 and others added 2 commits January 14, 2024 15:42
Co-authored-by: vero <email@atlasdostal.com>
@alice-i-cecile alice-i-cecile added P-High This is particularly urgent, and deserves immediate attention C-Usability A simple quality-of-life change that makes Bevy easier to use labels Jan 15, 2024
Co-authored-by: vero <email@atlasdostal.com>
JMS55 and others added 2 commits January 15, 2024 15:22
@JMS55 JMS55 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 Jan 15, 2024
@@ -8,7 +8,7 @@ fn main() {
.add_plugins(DefaultPlugins)
.insert_resource(AmbientLight {
color: Color::WHITE,
brightness: 0.2,
brightness: 0.0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a (non-zero) default value for the ambient light? Because it doesn't seem like inserting a light with brightness set to zero should actually do much of anything

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the default is 0.005 or something. If you don't want any ambient light (using lightmaps or IBL instead), then you need to override it to be 0 like this.

Copy link
Contributor

Choose a reason for hiding this comment

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

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 16, 2024
Merged via the queue into bevyengine:main with commit fcd7c0f Jan 16, 2024
22 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Jan 17, 2024
…11389)

# Objective

Fixes #11376
During the development of the exposure settings PR (#11347) all examples
with lighting had to be adjusted, but three were missed or simply didn't
exist yet at the time. This PR restores the brightness in those examples
again:

render_ui_to_texture
asset_loading
hot_asset_reloading

All of them are a bit brighter now compared to before the exposure PR,
but it looks better IMO.
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-Breaking-Change A breaking change to Bevy's public API that needs to be noted in a migration guide C-Usability A simple quality-of-life change that makes Bevy easier to use P-High This is particularly urgent, and deserves immediate attention 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.

Directional lights are 4800x dimmer than point lights and spot lights
7 participants