-
-
Notifications
You must be signed in to change notification settings - Fork 4k
More UI gradients fixes #20035
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
base: main
Are you sure you want to change the base?
More UI gradients fixes #20035
Conversation
…ration nears zero the hue is no longer interpolated.
Your PR caused a change in the graphical output of an example or rendering test. This might be intentional, but it could also mean that something broke! If it's expected, please add the M-Deliberate-Rendering-Change label. If this change seems unrelated to your PR, you can consider updating your PR to target the latest main branch, either by rebasing or merging main into it. |
It occurs to me that the This is a lot like the way animation keyframes work: If I have a rotating sub-mesh, and I want to set up a keyframe where it rotates 3 times, I will set a rotation of PI * 2 * 3. I recognize that there are some problems with this, as it might be less intuitive; but the upside is that the results would be more predictable. |
Positive values are reduced modulo 360, so you can use:
to define a gradient from green to blue, it's just negative values that seem to be clamped from below to zero. I'm not sure why, it might not even be intentional. |
Objective
Improve the gradients implementation further.
Solution
More UI gradients improvements:
before:

after:

Testing
The
testbed_ui
andgradients
examples can be used for testing.