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

fix(ColorManagement): export as namespace, add static properties #257

Merged
merged 4 commits into from
Sep 2, 2022
Merged

fix(ColorManagement): export as namespace, add static properties #257

merged 4 commits into from
Sep 2, 2022

Conversation

CodyJasonBennett
Copy link
Contributor

Why

Support for globally correct color management was added to r139 with mrdoob/three.js#23392. Background and API usage can be found at https://threejs.org/docs/#manual/en/introduction/Color-management.

What

I've added missing static properties and exported ColorManagement, its SRGBToLinear and LinearToSRGB methods are private and not user-facing.

Checklist

  • Checked the target branch (current goes master, next goes dev)
  • Added myself to contributors table
  • Ready to be merged

Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@joshuaellis joshuaellis linked an issue Sep 2, 2022 that may be closed by this pull request
@joshuaellis
Copy link
Member

Looks like you need to run prettier?

@joshuaellis joshuaellis merged commit c239971 into three-types:master Sep 2, 2022
@CodyJasonBennett CodyJasonBennett deleted the fix/colormanagement branch September 2, 2022 09:45
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.

Missing definition for THREE.ColorManagement.legacyMode
2 participants