A downloadable tool

Download NowName your own price

A 2D pixel art shader unity package to filter out jitter when scaling and zooming.

If you want to use the shader yourself you will have to add the shader to your sprite material. You will have to make sure that the sprite textures you are applying it to have mipmap enabled, alpha is transparency and have the filter mode on the texture set to "Bilinear".

Tested on Unity 2020.3.12f1 Standard shader pipeline

For the moment this package will not work with unity SRP or HDRP.

Alternatively you can download the project and get more infomation here: UnitySmoothPixelFiltering Github

An Example


StatusReleased
CategoryTool
AuthorTony
Made withUnity
Tags2D, example, filter, jitter, Pixel Art, Shaders, Unity
Code licenseMIT License
Average sessionA few seconds
LanguagesEnglish
LinksGithub

Download

Download NowName your own price

Click download now to get access to the following files:

Unity_Smooth_Pixel_Filtering.zip 66 kB

Development log

Comments

Log in with itch.io to leave a comment.

Question: I started at the Github page using the Shaderlab code to recreate the shader under a new material, but when I added that to my game object, the sprite didn't look much different than when standard Bilinear filtering was enabled, mostly blurry. I made sure all the settings for mip map and compression were correct. I figured I'd done something wrong at some point and should just download your package from Itch.io.

The download instructions say to import the package in Unity by going to Assets>>Import Package>>Custom Package, but there aren't any packages to select in the unzipped downloaded file. It's just folders with some assets and path names, and some PNG files, none of which can be selected. Trying to figure out what I'm doing wrong. Any help is appreciated :)

(1 edit)

Hey, sorry i'm your having trouble importing the package, do you know what unity version your using? 

The import package for now only supports the standard unity shader pipeline not unity SRP or HDRP for the moment.

When impoting do you not get a package window link this?


You say there are some assets, if the Scenes are there like in the above one you should be able to just open one of them and play the scene to see the effect.

Thanks

I'm using 2020.3.12f1, but I worked it out. It was an issue with how Mac unzips packages for unity. This discussion shows what was happening:

https://answers.unity.com/questions/1473305/how-to-import-a-unitypackage-from-wi...

I'm still trying to work out my issues with slight blurring between pixels, but it's largely due to attempting to use sprite renderer to show pixel art with a 3D camera. I'm trying to avoid using textures on quads to animate. Thank you for your help :)

Ok no problem, thanks for the heads up about the mac issue!