-
-
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
AmbientLight docs doesn't specify units #11933
Comments
(ambient_light_resource.color * ambient_light_resource.brightness) Which is equivalent to a bevy/crates/bevy_pbr/src/render/light.rs Lines 983 to 984 in a9ca849
|
You could say the same thing about the skybox's
|
That's a very good point. So would |
Looking at the code I think @fintelia ’s last comment is the correct answer. |
Marking this as a good first issue. |
Maybe it would also be good to specify that this is not equivalent to Filament's IBL, even though the units are the same and they are both used for global illumination. |
@janhohenheim my understanding is that if one sets bevy’s ambient light brightness to 1 then it would be the same. Or you can consider the combination of color * brightness to be the same as Filament’s IBL. |
@superdump I'm very skeptical because per google/filament#1667, Blender's background shader is the same as IBL, but my testing in #12280 reveals that it does not correspond at all to an |
# Objective - Fixes #11933. - Related: #12280. ## Solution - Specify that, after applying `AmbientLight`, the resulting units are in cd/m^2. - This is based on [@fintelia's comment](#11933 (comment)), and will need to be verified. --- ## Changelog - Specified units for `AmbientLight`'s `brightness` field.
How can Bevy's documentation be improved?
The documentation for
AmbientLight
s brightness field says:However, it would be helpful to know the units of the product of multiplying color and the scale factor. I suspect the unit is either lux or nits, but I haven't investigated
The text was updated successfully, but these errors were encountered: