-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Exposure settings (adopted) #11347
Conversation
ExposureSettings rebase + improvements
Co-authored-by: vero <email@atlasdostal.com>
Co-authored-by: vero <email@atlasdostal.com>
Co-authored-by: vero <email@atlasdostal.com>
Fix lightmaps example
more fixing ...
@@ -8,7 +8,7 @@ fn main() { | |||
.add_plugins(DefaultPlugins) | |||
.insert_resource(AmbientLight { | |||
color: Color::WHITE, | |||
brightness: 0.2, | |||
brightness: 0.0, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it has a non-zero default. https://github.com/bevyengine/bevy/blob/main/crates/bevy_pbr/src/light.rs#L550
…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.
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
brightness
control toSkybox
.intensity
control toEnvironmentMapLight
.ExposureSettings
andPhysicalCameraParameters
for controlling exposure of 3D cameras.DirectionalLight
exposure Bevy previously hardcoded internally.Migration Guide
Skybox
orEnvironmentMapLight
, use the newbrightness
andintensity
controls to adjust their strength.ExposureSettings
component to compensate.