-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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 sprite crunch at half-pixels #86670
Conversation
6a1f9e6
to
de24824
Compare
Out of curiosity, why is this only done when the filter mode is Linear and not Nearest? |
de24824
to
f4f15f6
Compare
f4f15f6
to
3242ca1
Compare
My bad, I just found out that I mixed up Linear and Nearest. I meant to do this on Nearest only. Nearest: Linear (I don't want to round up, because it will look like nearest if I round up (without the pixelated inbetweens): |
3242ca1
to
1ddb85e
Compare
I think this should be tucked behind a check for For performance reasons we should cache the result of course and add a method to enable pixel snapping inside the rendering server. |
Rounds the canvas item position for nearest filtered textures before rendering it.
Fixes #84632