0 votes

when i go full screen some of my pixel become half , some double. how do i fix it?

enter image description here
in pink circle my pixel become double. in green in just one pixel.
i try to use 16:9 ratio.
i set
width :1024 ,
hight: 576,
mode:2d ,
aspect : keep
my screen 1920x1080
i try change my cam zoom to 1.875 when full screen, my map become small? but pixel scale dont have half pixel, but my ui still have same problem

in Engine by (413 points)
edited by

1 Answer

+1 vote

Try using viewport instead of 2D for stretch mode. Note that this will only work if the aspect ratio of the user's screen is 16:9, same as the base aspect ratio. Otherwise you'll get imprecise scaling.

by (7,839 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected]godotengine.org with your username.