-
-
Notifications
You must be signed in to change notification settings - Fork 35.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
ColorManagement: Rename .legacyMode=false → .enabled=true #24940
Conversation
I oppose this (and the previous) PR for two reasons:
(Something like Also (not very related to this PR, but coming from the idea in 2), maybe we can log a deprecation warning if ColorManagement is used in the legacy mode? |
Thanks @LeviPesin —
Do you mean logging a warning for all apps that do not specify
I can't argue about what it feels like — that's certainly going to depend on the reader, and I understand your reaction. I guess I'd just point out that others have found the
|
Yes — but if it is too soon currently, maybe in a few releases? |
No need to convince me, I like the API already. :) Practically I think we'll want to make the change in some number of examples, and see what issues or feedback comes up, either from users or maintainers. If we decide to move forward, the other question is whether to make the change in isolation, or to time it alongside any other changes. Changing these two defaults at the same time would reduce friction, compared to changing either one alone:
1 or similarly, |
787517f
to
edd78bf
Compare
Rebased and updated the Editor — I'll merge the PR this week, if that's OK. |
Would be nice to see this change in |
Related issue:
.legacyMode
to.enabled
#24700Renames
ColorManagement.legacyMode = false
toColorManagement.enabled = true
. While I think it's fair to say that three.js "is color managed" in some sense with or without this flag, the .legacyMode terminology is confusing. I'd frame this as a flag that enables/disables the THREE.ColorManagement API, specifically, rather than enabling/disabling all colorspace-aware decisions globally (which no one wants).Also updates the
webgl_mirror.html
example to useColorManagement.enabled = true
. Because hexadecimal and CSS-like colors are assumed to be sRGB in that mode (as they are in HTML/CSS) it is necessary to update the currently-specified colors, doing either of two things:I've opted for (A) here.