Skip to content

Update to commerce tone mapper#4614

Merged
elalish merged 6 commits intomasterfrom
commerceLighting
Dec 29, 2023
Merged

Update to commerce tone mapper#4614
elalish merged 6 commits intomasterfrom
commerceLighting

Conversation

@elalish
Copy link
Contributor

@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
@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.

1 participant