Skip to content
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

Update to commerce tone mapper #4614

Merged
merged 6 commits into from
Dec 29, 2023
Merged

Update to commerce tone mapper #4614

merged 6 commits into from
Dec 29, 2023

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Dec 28, 2023

I've added a small contrast "toe" to the function, aligned to compensate for the average Fresnel deesaturation that occurs with PBR for dielectrics with the default IoR of 1.5. This makes it much easier to match glTF base colors to output colors, and fixes the desaturated, low contrast look of commerce as compared to ACES.

The commerce tone mapper has a meaningful exposure: with lighting [1,1,1], you get exactly the base color out (for most of the sRGB range). ACES has no such peg - it happens to be a bit brighter. For our 'neutral' and 'legacy' lighting, I've made an automatic exposure compensation, so that ACES and commerce tone mapping have the same "visual" exposure. If you're using your own lighting environment and want to compare tone mapping, use exposure='1' for commerce and exposure='0.77' for ACES (or 1.3 and 1).

@elalish elalish self-assigned this Dec 28, 2023
@elalish elalish merged commit 734aff3 into master Dec 29, 2023
6 checks passed
@elalish elalish deleted the commerceLighting branch December 29, 2023 00:33
JL-Vidinoti pushed a commit to vidinoti/model-viewer that referenced this pull request Apr 22, 2024
* refactor environmentScene

* commerce lighting is testable

* removed commerce lighting

* upgrade commerce tone mapper

* added exposure compensation

* revert example changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant