Pixel Art Blurry in Godot or Unity? Fix It Step by Step

· 8 min read · Loopixel team

Godot captures from Godot 4.7.2; Unity settings from the official manual

The same pirate sprite rendered in Godot 4.7.2 with Linear and Nearest texture filtering

You drew (or generated) a crisp 64 × 64 px sprite, dropped it into the engine, and it looks soft, shimmers when it moves or shows a thin line between frames. Nothing is wrong with the art. Almost every case comes from five settings: how the texture is filtered, whether it is compressed, whether mipmaps are on, how the game is scaled to the screen, and where sprites sit relative to the pixel grid. This guide goes through each one for Godot 4 and Unity.

On this page · 6

Why sharp pixels turn soft

A GPU draws a sprite by sampling the texture at positions that rarely land exactly on a pixel centre. With a smoothing filter (bilinear), it blends the neighbouring texels, which is perfect for photos and wrong for pixel art. Scaling by a non-integer factor or moving a sprite by half a pixel makes the sampling position land between texels more often, so even a correct filter can still look uneven. That is why the fix is a short checklist, not one switch.

The same 64 px knight frame at 6 times size: soft with a bilinear filter, crisp with a nearest filter
One real Loopixel frame (64 px) scaled 6×. Only the texture filter differs. Side-by-side comparison rendered from the real frame.
SymptomMost likely causeFix
Whole sprite looks softLinear/bilinear filteringNearest (Godot) or Point (Unity)
Colour fringes, blocky noiseLossy texture compressionLossless in Godot, Compression None in Unity
Pixels differ in width on screenNon-integer scalingInteger scale mode or a Pixel Perfect Camera
Sprite shimmers while walkingPosition between pixelsSnap to pixel, move by whole pixels
Thin line between framesFiltering bleeds into the next cellNearest filter, then check slicing
Sprite is the wrong sizePixels Per Unit mismatchUse one PPU for every sprite

Fix it in Godot 4

1. Set the texture filter to Nearest

Since Godot 4.0, texture filtering is a property of each 2D node, with a project setting as the default. The quickest global fix is the project default.

  1. Open Project > Project Settings and go to Rendering > Textures > Canvas Textures.
  2. Set Default Texture Filter to Nearest. The setting is stored as rendering/textures/canvas_textures/default_texture_filter.
  3. For a single node, select it (for example an AnimatedSprite2D) and set CanvasItem > Texture > Filter to Nearest in the Inspector.
Godot 4.7.2 running the same pirate frame with Linear filtering on the left and Nearest filtering on the right
Godot 4.7.2 capture: the same Loopixel frame drawn with Linear (left) and Nearest (right) texture filtering. This is a real render, not a mock-up.
Godot 4.7.2 editor with a SpriteFrames panel showing walk_back, walk_front, walk_left and walk_right at 10 FPS and Texture Filter set to Nearest in the Inspector
Godot 4.7.2 editor (English UI): SpriteFrames with the four walk animations at 10 FPS, and Texture Filter set to Nearest in the Inspector.

2. Leave the import at Lossless with no mipmaps

Select the PNG in the FileSystem dock and open the Import dock. Godot’s defaults for 2D textures are no mipmaps and Lossless compression, which is what pixel art wants. Only change these if a texture was flagged as used in 3D, because Godot then switches it to mipmaps and VRAM Compressed. If you reimport a sprite and it gets worse, check the Import dock for those two options.

The same 64 px sprite saved with lossy JPEG compression, smeared with colour noise, next to the crisp lossless PNG
Why compression matters: the same 64 px frame saved as JPEG (quality 75) next to the lossless PNG, shown at 6×. Made from a real frame to show what lossy compression does to pixel art; it is not a capture of a specific engine setting.

3. Scale in whole numbers

Godot’s multiple resolutions guide recommends the viewport stretch mode with the integer stretch scale mode for pixel art. The scale mode otherwise defaults to fractional, which produces uneven line widths.

  1. Open Project Settings > Display > Window > Stretch.
  2. Set Mode to viewport and Scale Mode to integer.
  3. Pick a base window size that divides evenly into your target screens, for example 640 × 360.
The same crop scaled 3 times with every pixel 3 pixels wide, and 2.5 times with pixels 2 or 3 pixels wide
Same crop, Nearest filter in both. At 3× every pixel is 3 px wide; at 2.5× pixels alternate between 2 and 3 px, which reads as uneven or shimmering. Rendered from a real frame.

4. Snap to the pixel grid

Under Rendering > 2D > Snap there are two options, Snap 2D Transforms to Pixel and Snap 2D Vertices to Pixel, both off by default. The Godot reference points to them for pixel art. Turn them on and test; if movement feels too stepped for your game, enable only the one that fixes the shimmer.

Fix it in Unity

1. Sprite import settings

  1. Select the PNG in the Project window. Set Texture Type to Sprite (2D and UI).
  2. Set Filter Mode to Point (no filter).
  3. Set Compression to None. This is what the 2D Pixel Perfect package documentation asks for when preparing sprites.
  4. Set Pixels Per Unit to the same value for every sprite. For a 64 px Loopixel sheet, 64 makes one frame one world unit.
  5. Click Apply.

Mipmaps are not a normal part of the Sprite workflow. If you see a Generate Mip Maps option on your texture, leave it off for pixel art.

2. Add a Pixel Perfect Camera

The 2D Pixel Perfect package adds a Pixel Perfect Camera component for the main camera. Set Asset Pixels Per Unit to the same number as your sprites, and Reference Resolution to the resolution you drew the game for (for example 640 × 360). The component scales the view in whole steps. With Upscale Render Texture off you can use Pixel Snapping to snap sprite renderers to the pixel grid. Per the same documentation, also set Edit > Snap Settings Move X/Y/Z to 1 divided by the PPU (0.015625 for 64).

3. Mesh Type and Extrude Edges

In the sprite settings, Mesh Type can be Tight or Full Rect. Tight follows the alpha outline; Full Rect draws a quad. If you ever see a sprite edge clipped, try Full Rect first, since the documentation notes sprites smaller than 32 × 32 px use Full Rect anyway.

Thin lines between frames (atlas bleeding)

When a sheet is drawn with a smoothing filter, a sample at the edge of one cell can pick up colour from the next cell. That is the “seam” you see. Because Loopixel frames are packed with no padding, filtering is the thing to get right: with Nearest or Point it does not bleed. If you later pack the frames into an engine atlas, leave padding or extrusion in the atlas settings instead of editing the source art.

CheckGodot 4Unity
FilterNearestPoint (no filter)
CompressionLossless (2D default)None
MipmapsOff (2D default)Off
ScaleStretch mode viewport + integerPixel Perfect Camera
SnapSnap 2D Transforms/Vertices to PixelPixel Snapping, Snap Settings
SizeCell = sheet width ÷ 8Pixels Per Unit = frame size

Sheets that are easy to get crisp

A Loopixel sprite sheet is built to survive the settings above. Frames are fixed squares at 32, 48, 64, 96 or 128 px, 8 per row, with no padding, offset or trimming, so a plain grid slice always lands on the frame edges. Edges are hard transparent: every pixel is fully opaque or fully transparent, so there is no soft halo to turn into a fringe. The palette is at most 24 colours, locked across all frames, and all five sizes are in every ZIP, so you can pick the one that divides evenly into your base resolution.

If you work in Godot, the open-source import script builds the SpriteFrames for you, and the Unity guide and Aseprite guide cover the other two. Filtering, compression and scaling are engine settings, so those stay with you: the checklist above is the whole job. Every spec is on the facts page, and pricing lists the one-time credit packs.

Good to know: sheets are 8 frames at 10 fps, with no skeletal animation, 8-direction sheets or sizes above 128 px. A generated loop can have a frame worth touching up; an editor such as Aseprite handles that.

Quick answers

My sprite is sharp in the editor but blurry in the running game.

That points to scaling. The editor view often shows the texture at a whole-number zoom, while the game window may scale by a fraction. Use integer scaling (Godot) or a Pixel Perfect Camera (Unity) and test at a few window sizes.

Should I upscale the sprite art itself to hide the blur?

No. Keep the source at its native size and scale in the engine with a Nearest or Point filter. Scaling the file with a smoothing resampler is what creates blur in the first place.

Does the frame size matter?

Only for consistency. Pick one frame size for your project, match Pixels Per Unit to it in Unity, and make sure your base resolution is a clean multiple of it for the grid to stay tidy.

Sources

Engine menu paths and property names above were checked against the official documentation:

Try it with one image

Upload one image and get an 8-frame pixel sprite sheet in about a minute. 1 credit per animation, credit packs from $2.99, paid once.

Create a sprite sheet