9D-Tony / UnitySmoothPixelFiltering

A unity shader for smooth pixel filtering, based on CptPotato's smooth filtering
MIT License
81 stars 7 forks source link
filter game-development game-engine gamedev jitter jitter-removal pixel pixel-art shader shaders smooth unity unity2d unity3d

Unity Smooth Pixel Filtering

A unity example scene of CptPotato's smooth pixel filtering.

It uses a material with a custom JitterFreePixel shader.

To get jitter free pixel art set the filter to bilinear filtering on the imported textures under the advanced tab, create the sprites and apply the JitterFree material.

Built using Unity 2020.3.12f1 I have not tested it with older versions of unity so it may not work. Should work on mobile down to GLES 3.0

Background artwork by Luis Zuno

Shadertoy example by d7samurai

There is also a Godot version

Explanation of how the shader works on Handmade Hero



An Example