Auto exposure breaks when object is too dark #13446
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Milestone
Bevy version
Tested on main commit 2aed777
Relevant system information
Windows 10
What you did
I have an object with just a base texture and a roughness map, exported from Blender to a gltf and then loaded in Bevy.
I'm using the AutoExposurePlugin with pretty much default settings.
What went wrong
If I place the camera near a dark corner of the mesh, facing the dark corner, the image becomes darker instead of brighter.
You can see what I mean in this video: https://discord.com/channels/691052431525675048/743663924229963868/1242088583108624444
Additional information
Removing the roughness map in Blender and setting the roughness to a fixed value 'fixes' the issue.
You can try it out in this fairly minimal reproduction: https://github.com/GitGhillie/bevy_repro/tree/auto-exposure
The camera will spawn roughly here:
Move the camera into the dark corner where the arrow is and you should be able to reproduce the effect.
The text was updated successfully, but these errors were encountered: