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

Add shader color conversion methods #12201

Open
alice-i-cecile opened this issue Feb 29, 2024 · 0 comments · May be fixed by #12939
Open

Add shader color conversion methods #12201

alice-i-cecile opened this issue Feb 29, 2024 · 0 comments · May be fixed by #12939
Labels
A-Color Color spaces and color math A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible

Comments

@alice-i-cecile
Copy link
Member

alice-i-cecile commented Feb 29, 2024

That makes sense. I've done something similar: my gradient slider UiMaterial shader interpolates in Srgba, because it looks much better that way.
I can envision a future version of Gizmos which does the interpolation in oklab (which, by many accounts, produces the best looking gradients).
Maybe we need to consider a library of color conversion functions written for shader code?

Originally posted by @viridia in #12162 (comment)

@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen labels Feb 29, 2024
@lynn-lumen lynn-lumen linked a pull request Apr 12, 2024 that will close this issue
@alice-i-cecile alice-i-cecile added the A-Color Color spaces and color math label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Color Color spaces and color math A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant