- Godot Engine Game Development Projects
- Chris Bradfield
- 119字
- 2021-06-18 18:51:26
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.
推薦閱讀
- Mastering Matplotlib 2.x
- Visualforce Development Cookbook(Second Edition)
- Learning Microsoft Azure Storage
- 影視后期制作(Avid Media Composer 5.0)
- 機器學習與大數據技術
- Windows環境下32位匯編語言程序設計
- 完全掌握AutoCAD 2008中文版:機械篇
- 聊天機器人:入門、進階與實戰
- 菜鳥起飛系統安裝與重裝
- Blender 3D Printing by Example
- 單片機C語言程序設計完全自學手冊
- 氣動系統裝調與PLC控制
- Serverless Design Patterns and Best Practices
- 7天精通Photoshop CS5平面視覺設計
- 深度學習之模型優化:核心算法與案例實踐