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
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.

| Symptom | Most likely cause | Fix |
|---|---|---|
| Whole sprite looks soft | Linear/bilinear filtering | Nearest (Godot) or Point (Unity) |
| Colour fringes, blocky noise | Lossy texture compression | Lossless in Godot, Compression None in Unity |
| Pixels differ in width on screen | Non-integer scaling | Integer scale mode or a Pixel Perfect Camera |
| Sprite shimmers while walking | Position between pixels | Snap to pixel, move by whole pixels |
| Thin line between frames | Filtering bleeds into the next cell | Nearest filter, then check slicing |
| Sprite is the wrong size | Pixels Per Unit mismatch | Use 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.
- Open
Project > Project Settingsand go toRendering > Textures > Canvas Textures. - Set
Default Texture FiltertoNearest. The setting is stored asrendering/textures/canvas_textures/default_texture_filter. - For a single node, select it (for example an
AnimatedSprite2D) and setCanvasItem > Texture > FiltertoNearestin 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.

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.
- Open
Project Settings > Display > Window > Stretch. - Set
ModetoviewportandScale Modetointeger. - Pick a base window size that divides evenly into your target screens, for example 640 × 360.

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
- Select the PNG in the Project window. Set
Texture TypetoSprite (2D and UI). - Set
Filter ModetoPoint (no filter). - Set
CompressiontoNone. This is what the 2D Pixel Perfect package documentation asks for when preparing sprites. - Set
Pixels Per Unitto the same value for every sprite. For a 64 px Loopixel sheet, 64 makes one frame one world unit. - 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.
| Check | Godot 4 | Unity |
|---|---|---|
| Filter | Nearest | Point (no filter) |
| Compression | Lossless (2D default) | None |
| Mipmaps | Off (2D default) | Off |
| Scale | Stretch mode viewport + integer | Pixel Perfect Camera |
| Snap | Snap 2D Transforms/Vertices to Pixel | Pixel Snapping, Snap Settings |
| Size | Cell = sheet width ÷ 8 | Pixels 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:
- Godot: Importing images
- Godot: Multiple resolutions
- Godot: ProjectSettings class reference
- Unity: Sprite (2D and UI) texture Import Settings
- Unity: 2D Pixel Perfect package
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