-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Allow changing the HDR tonemap #12160
Conversation
Thank you for the pull request, @jjspace! ✅ We can confirm we have a CLA on file for you. |
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.
Thanks @jjspace! The new tonemapper looks great!
packages/engine/Source/Shaders/PostProcessStages/PBRNeutralTonemapping.glsl
Outdated
Show resolved
Hide resolved
packages/engine/Source/Shaders/PostProcessStages/PBRNeutralTonemapping.glsl
Outdated
Show resolved
Hide resolved
packages/engine/Source/Shaders/PostProcessStages/PBRNeutralTonemapping.glsl
Outdated
Show resolved
Hide resolved
packages/engine/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.glsl
Outdated
Show resolved
Hide resolved
packages/engine/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.glsl
Outdated
Show resolved
Hide resolved
packages/engine/Source/Shaders/PostProcessStages/AcesTonemappingStage.glsl
Show resolved
Hide resolved
We should switch to the Khronos PBR Neutral Tone Mapper for models as well. Should be a small change here: cesium/packages/engine/Source/Shaders/Model/LightingStageFS.glsl Lines 118 to 124 in 349364c
|
Yup! This is already included, thanks @lilleyse |
@ggetz updated based on your comments, thanks. The biggest thing I've changed was a slight overhaul on the tests to actually test multiple colors as you suggested using small helper function. It may change the stacktrace a bit as you mentioned but the extra Opened #12175 to track the bug I found with the modified Reinhard tonemap |
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.
Thanks @jjspace, this is really close!
@jjspace I see quite a few failing specs when running locally: Failing test logs
|
@ggetz thanks for catching those, I forgot to run all tests and had only verified the new ones work. It seems HDR is not possible in CI? if it is then i'm surprised those ones passed...? Either way they should all be updated now with the new colors as we discussed in person. |
Thanks @jjspace! I pushed a small change to the specs to allow for a 1-byte tolerance in the render tests. This allowed all the specs to pass on my machine. |
Looks awesome! 😎 |
Description
tonemapper
property ofPostProcessStageCollection
to allow changing the tonemap used when HDR is turned onIssue number and link
part of #12126
Testing plan
Author checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change