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 Neutral tone mapper #27925

Merged
merged 1 commit into from
Mar 16, 2024
Merged

update Neutral tone mapper #27925

merged 1 commit into from
Mar 16, 2024

Conversation

elalish
Copy link
Contributor

@elalish elalish commented Mar 15, 2024

This one-liner makes a pretty much imperceptible change (<1% difference at maximum), but allows the Khronos PBR Neutral tone mapper to be analytically invertible, which turns out to be important for a bunch of industry use-cases. See details here: google/model-viewer#4716

Khronos now has an official repo for this spec, such as it is, which has just been updated accordingly: https://github.com/KhronosGroup/ToneMapping. It also includes the inverse function.

FYI @mrdoob @WestLangley

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
670.2 kB (166.2 kB) 670.2 kB (166.2 kB) +10 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
450.4 kB (108.9 kB) 450.4 kB (108.9 kB) +10 B

@mrdoob mrdoob added this to the r163 milestone Mar 16, 2024
@mrdoob mrdoob merged commit 9347c2e into mrdoob:dev Mar 16, 2024
12 checks passed
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.

2 participants