
You drew a sprite pixel by pixel, every edge exactly where you wanted it. Then you drop it into Godot, press play, and it looks soft. The edges are smeared, the colors bleed into each other, and sometimes it even shimmers when the character walks.
Your drawing is fine. Godot simply starts with settings that are made for smooth, high-resolution graphics, not for pixel art. The fix isn’t one switch but four, and they’re spread across different corners of the Project Settings. On top of that come a few traps that only show up later: a single node with its own filter, a SubViewport that ignores your project setting, a shader that samples a texture on its own terms.
In this guide you’ll set up a Godot 4 project so your pixel art stays crisp and scales by whole numbers, and then you’ll go through a checklist for the cases where something is still blurry. It’s the engine half of Choosing the Right Resolution and Sprite Size. There you decide on the numbers, here you lock them in.
What You’ll Need
- Godot 4. I checked everything against the official documentation for Godot 4.7, the current stable version. Older Godot 4 releases have the same settings with one exception, which I’ll point out.
- A pixel art sprite as a PNG, ideally one with hard edges and a few single-pixel details. Those show blur first.
- A base resolution you’ve chosen. If you don’t have one yet, read the resolution tutorial first. I’ll use 640×360 as the example.
- About 20 minutes.
Step 1: Understand the Two Causes of Blur
Almost every blurry sprite in Godot comes down to one of two things.
Filtering. When Godot draws a texture larger than its original size, it has to decide what color each screen pixel gets. With linear filtering, it mixes the colors of the surrounding texture pixels. The Godot class reference describes it as: “The texture filter blends between the nearest 4 pixels.” For a photo, that’s perfect. For pixel art, it’s exactly what turns hard edges into mush. Nearest filtering instead “reads from the nearest pixel only”, so every texture pixel stays one solid block of color.

Fractional scaling. If your game is 640×360 and the window is 1366×768, the factor isn’t a whole number. Some game pixels then become two screen pixels wide, their neighbors three. The Godot documentation on multiple resolutions calls this “uneven pixel scaling”, which “makes pixel art not display as intended”. This one doesn’t look blurry so much as wobbly, especially in motion.

The steps below fix both. Steps 2 to 5 are the project setup. Step 6 is the checklist for everything that slips through.
Step 2: Set the Default Texture Filter to Nearest
This is the setting that fixes most cases, so do it first.
- Open Project → Project Settings.
- Go to Rendering → Textures → Canvas Textures.
- Set Default Texture Filter to
Nearest.
If you don’t see the Rendering → Textures section, turn on Advanced Settings at the top right of the window. GDQuest’s pixel art setup guide tells you to switch it on for this step.
The default is Linear. According to the ProjectSettings class reference, this setting is “the default texture filtering mode to use for CanvasItems built-in texture”. In plain words: every 2D node that draws a texture (Sprite2D, AnimatedSprite2D, TileMapLayer, TextureRect and so on) uses this filter unless you tell it otherwise. One change, and the whole project follows.
Remember the words “unless you tell it otherwise”. We’ll come back to them in Step 6.
Step 3: Set Your Base Resolution
Still in the Project Settings, go to Display → Window → Size and enter your base resolution as Viewport Width and Viewport Height, for example 640 and 360.
The default here is 1152×648. That’s a sensible size for a desktop window, but it’s not a pixel art resolution. If you leave it, your game world is 1152 pixels wide, and a 16-pixel sprite turns into a tiny speck.
Here’s a side effect that confuses many people the first time: Godot also uses the base resolution as the starting size of the game window. A 640×360 window is small on a modern monitor. If you want a larger window while you test, there are two settings for that: Window Width Override and Window Height Override, in the same section. They only show up with Advanced Settings turned on. The class reference says they override “the game’s initial window width” (and height) on desktop platforms. I set them to a whole-number multiple of the base resolution, for example 1280×720 for 640×360. Then the test window starts at a clean factor of 2.
Step 4: Set the Stretch Mode to viewport
Next, tell Godot how to bring your small game world onto a large screen. In Display → Window → Stretch, set Mode to viewport.
With viewport, Godot renders the whole game at your base resolution and then enlarges the finished image. The documentation describes it as “low-resolution rendering that is then stretched to the final window size”. Every sprite, every tile, every particle lives on the same low-resolution grid. That’s the classic pixel art look, and it’s what the documentation recommends for pixel art games.
The alternative is canvas_items. It renders at the window’s resolution and scales each 2D element on its own. GDQuest recommends it if you need smooth camera movement, tweens and particles. The price: the documentation states that “there is no longer a 1:1 correspondence between sprite pixels and screen pixels”. A sprite can then sit on half pixels, or rotate with pixels that no longer line up with the grid. Some games want that. If you’re not sure, start with viewport.
Watch out in new projects. The class reference lists disabled as the default for the Stretch Mode. But Godot 4.7 writes canvas_items (with Aspect expand) into every newly created project. So don’t assume what you’ll find. Open the setting and check what it actually says.
For Aspect, keep is a safe start. It keeps your aspect ratio and fills any leftover space with black bars. The documentation names keep or expand for pixel art games.
Step 5: Set the Scale Mode to integer
The last setup step deals with the second cause of blur from Step 1. In Display → Window → Stretch, change Scale Mode from fractional to integer.
The documentation explains it in one sentence: “When set to integer, the value is rounded down to the nearest integer.” Its own example uses a 640×360 base on a 1366×768 screen. With integer, the game is displayed at 1280×720, scale factor 2, and the rest of the screen gets black bars. Every game pixel becomes exactly a 2×2 block. No wobble, no uneven lines.
This setting exists “since Godot 4.2”, according to the documentation. GDQuest names Godot 4.3 or later for integer scaling. Either way, a current Godot 4 release has it.
One thing to know: if the player makes the window smaller than your base resolution, integer scaling can’t round down any further. The class reference says the contents will then be clipped and suggests setting the window’s minimum size to the base size. For a first project, you can ignore this. For a release build, add a line to your startup code that sets get_window().min_size to your base resolution.
That’s the full setup. Press play. Your sprite should now show hard edges at a clean multiple of its size. If it does, you can stop here. If it doesn’t, read on.
Step 6: Still Blurry? Check These Five Places
The project setting from Step 2 is a default, not a law. Here are the places where something else can take over. Go through them in this order.
1. A node with its own filter
Every 2D node has a Texture → Filter property in the Inspector. Its default is Inherit: the node takes the filter from its parent. If you (or an imported asset, or a tutorial you followed) set a node to Linear at some point, that node and all children set to Inherit will be blurry, no matter what the project setting says.
How to check: Select the blurry node, open Texture in the Inspector, and look at Filter. Then do the same for its parents, all the way up. A single Linear on a parent node is enough. Set it back to Inherit or set it to Nearest explicitly.
2. A SubViewport
This is the trap that cost someone in the Godot forum a lot of time in December 2025. They rendered their game into a SubViewport and scaled it up for a CRT effect. The player sprite got blurry while walking, although the sprite was already set to Nearest and both pixel snapping options were turned on. The cause was the SubViewport. After the fix, the poster wrote: “I did not know that viewports don’t use default texture filtering!”
The reason sits in the class reference. Every viewport has its own Canvas Item Default Texture Filter, and its default is Linear. The project setting from Step 2 is applied to the main window’s root viewport only. A SubViewport you add yourself starts with Linear and passes it on to everything inside it.
How to fix: Select the SubViewport and set Canvas Item Default Texture Filter to Nearest. Since Godot 4.7 there’s also an Inherit option for viewports, which takes the filter from the parent. In Godot 4.6 and older it doesn’t exist, so use Nearest there.
3. A shader with its own texture
If you write a shader that samples an extra texture through a uniform sampler2D, give it an explicit filter hint:
uniform sampler2D noise_texture : filter_nearest;
The shading language reference lists filter_nearest among the hints for sampler uniforms. It doesn’t say which filter a sampler gets without a hint, so don’t rely on the default. Set it explicitly and you’re done with it.
4. A scale that isn’t a whole number
Integer scaling in Step 5 only covers the window. Inside your game, you can still stretch things by odd factors. A sprite with a Scale of 1.5, or a Camera2D with a Zoom of 1.5, creates the same uneven pixels as fractional window scaling. Some pixels end up one unit wide, their neighbors two.
How to check: Look at Transform → Scale of the blurry node and its parents, and at the Zoom of your Camera2D. Keep them at whole numbers. If you need a bigger character, draw it bigger.
5. Positions between pixels
Positions in Godot can have decimals. A sprite at x = 100.5 sits between two pixels of your low-resolution grid. The poster in the forum thread above described exactly that as their first suspicion: the sprite seemed to sit half a pixel off while moving. In their case the SubViewport was the real culprit, which is why this point comes last. Godot has a setting for this: Rendering → 2D → Snap → Snap 2D Transforms to Pixel. It’s off by default.
The class reference says it’s “useful for low-resolution pixel art games” and that it “can lead to a crisper appearance at the cost of less smooth movement, especially when Camera2D smoothing is enabled”. There’s a second option, Snap 2D Vertices to Pixel, but the documentation doesn’t recommend using both together, because movement can then look even less smooth. Turn on the transform option, test how your character and camera move, and decide whether you like the result. It’s a trade-off, not a must.
Step 7: Test It Properly
A quick test tells you more than any setting:
- Use a sprite with single-pixel details, for example an eye that’s one pixel wide.
- Run the game and look closely. Every pixel should be a sharp square of identical size.
- Resize the window. With
integer, the image should jump from one factor to the next, with black bars in between, and never stretch smoothly. - Move the character and the camera. If edges flicker or the sprite looks wider in some frames than in others, go back to points 4 and 5 of Step 6.
Common Mistakes
Only changing the filter on one sprite. It works for that sprite, and you forget it for the next fifty. Set the project-wide default in Step 2 and only touch individual nodes when you have a reason.
Following a tutorial for a different stretch mode. Many guides use canvas_items, many use viewport. Both are valid, but they behave differently. Know which one your project uses before you copy a fix from a forum.
Assuming new projects start with disabled. The class reference lists disabled as the default, but a new Godot 4.7 project starts with canvas_items. Always check the actual value in your project.
Forgetting SubViewports. Pixel-perfect effects, minimaps, CRT filters and split screens often use SubViewports. Each one needs its filter set, because it doesn’t pick up the project setting.
Turning on both snap options. It sounds thorough, but the documentation advises against it. Start with Snap 2D Transforms to Pixel only.
Fixing blur with a bigger canvas. Drawing your sprites at four times the size so the blur is less visible hides the problem and multiplies your drawing work. Fix the setting instead.
Blaming your art. If your sprite looks soft in Godot but sharp in your pixel art editor, the cause is almost never the drawing. Go through Step 6.
Quick Reference
- Rendering → Textures → Canvas Textures → Default Texture Filter:
Nearest - Display → Window → Size → Viewport Width / Height: your base resolution, for example 640 × 360
- Display → Window → Stretch → Mode:
viewport(orcanvas_itemsif you want smooth motion) - Display → Window → Stretch → Scale Mode:
integer - Still blurry: node filter, SubViewport filter, shader hint
filter_nearest, whole-number scale and zoom, Snap 2D Transforms to Pixel
What You’ve Learned
- The two causes of blurry pixel art in Godot: linear filtering and fractional scaling
- The four project settings that keep pixel art crisp and why each one matters
- Why a SubViewport ignores your project-wide filter and how to fix it
- How to find the remaining sources of blur in nodes, shaders, scale and positions
Next up: if you haven’t settled your base resolution and sprite size yet, Choosing the Right Resolution and Sprite Size helps you pick numbers that scale cleanly. And if you need a sprite to test with, the Pixel Art Fundamentals get you there.
Sources
- Godot Engine documentation (4.7): Multiple resolutions, accessed November 2026
- Godot Engine class reference (4.7): ProjectSettings, Viewport, CanvasItem, accessed November 2026
- Godot Engine documentation (4.7): Shading language, accessed November 2026
- GDQuest: Setting up pixel art graphics in Godot 4 (June 2025, Godot 4.4)
- Godot Forum: Problem with 2d sprites getting blurred (December 2025, Godot 4.3)