-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Round UI coordinates after scaling #9784
Round UI coordinates after scaling #9784
Conversation
… into round-after-scaling
I think this is probably an improvement in that it brings the rounding later in the process (thus reducing float error). But it looks like this is now rounding in logical coordinates, whereas I think ideally it needs to be done in physical coordinates but after Transform has been applied. Not sure how feasible this is. |
Yes this rounds the logical coords (or it's meant to). I tried a couple of approaches and this one seemed to be the most accurate. By after Transform has been applied do you mean after the GlobalTransform has been computed? |
@ickshonpe I'll merge this once you fix merge conflicts (I love import merge conflicts...). |
# Objective Fixes bevyengine#9754 ## Solution Don't round UI coordinates until they've been multiplied by the inverse scale factor.
Objective
Fixes #9754
Solution
Don't round UI coordinates until they've been multiplied by the inverse scale factor.