Fix AutoExposure and ColorGrading stopping working when Tonemapping is set to None#23522
Fix AutoExposure and ColorGrading stopping working when Tonemapping is set to None#23522momoluna444 wants to merge 1 commit intobevyengine:mainfrom
AutoExposure and ColorGrading stopping working when Tonemapping is set to None#23522Conversation
| if *tonemapping == Tonemapping::None { | ||
| return; | ||
| } | ||
| // NOTE: Do not return early when tonemapping is set to None, as color grading |
There was a problem hiding this comment.
Could we instead check that color grading and exposure are enabled? I don't like that this pass would now run unconditionally.
There was a problem hiding this comment.
I just checked, and found AutoExposure is in bevy_post_process. This means we'd have to add it as a dependency for bevy_core_pipeline, would that be okay?
There was a problem hiding this comment.
Ah, I guess that won't work. It would cause a circular dependency. Maybe the right way is moving tonemapping into bevy_post_process? I wonder why we didn't do that before.
There was a problem hiding this comment.
I recall there being a complication when i tried to put tonemapping in bevy_post_process, things may have changed its worth trying again.
|
Your PR caused a change in the graphical output of an example or rendering test. This might be intentional, but it could also mean that something broke! If it's expected, please add the M-Deliberate-Rendering-Change label. If this change seems unrelated to your PR, you can consider updating your PR to target the latest main branch, either by rebasing or merging main into it. |
|
Currently, I can think of the following potential solutions:
|
This makes intuitive sense to me, but the rendering folks may have nuanced opinions about why this would be bad. Tonemapping is more common that the other post-processing steps, so we may want to granularly feature-flag that crate at some point. |
Objective
Fix
AutoExposureandColorGradingstopping working whenTonemappingis set toNone.Solution
Removed the early return in the tonemapping pass.
Testing
Now
auto_exposureandcolor_gradingare working even withTonemapping::None.