上QQ阅读APP看书,第一时间看更新
Pixel rendering
Vector coordinates in Godot are floating point numbers, not integers. This means a Vector2 could have a fractional value, such as (1.5, 1.5). Since objects can't be drawn at half pixels, this can cause visual problems for pixel art games where you want to ensure that all the pixels of the textures are drawn.
To address this, open Project | Project Settings and find the Rendering/Quality section in the sidebar and enable Use Pixel Snap, as shown in the following screenshot:
If you're using 2D pixel art in your game, it's a good idea to always enable this setting when you start your project. This setting has no effect in 3D games.