-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Remove redundant math in tonemapping. #9669
Conversation
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.
The math checks out.
I'm not good enough at math to see this easily 😅, @DGriffin91 do you mind writing out the derivation for me? |
This impl doesn't have the extra math: https://github.com/h3r2tic/tony-mc-mapface/blob/main/shader/tony_mc_mapface.hlsl |
I have a feeling that the new version is more correct and the difference is too subtle for me to really make out, but the 3d examples are different before/after this PR. (testing on macos) Output from edit: |
# Objective - Tony McMapface has some math that cancels out. ## Solution - Remove it.
Objective
Solution