Shader for pixel art?

Hey, so…

I’m making a game with very low-resolution pixel graphics. And I’d like to find a shader that will take a very small pixellated image (I’d like to keep the file size extremely small) and scale it up big and NES-beautiful in Unity, but without causing the texture to look blurry–as it does with any of the standard shaders that I’m trying out Is there a shader for this that anyone could point me to? I will give you a pixel bicycle if you can find one/have one.

I’ve tried setting the Filter mode to point and the aniso level to 0, but I’m still getting the following weird anti-aliasing. In the picture, the in-game unity build is next to the original image file in the image-editing software I’m using.

that's some weird problems you have going on there. Try setting the importer texture type to 'Advanced' and messing around with that- it may have something to do with the texture compression mode.

2 Answers

2

It's in the texture import settings- under 'Aniso Level', you need to set 'Filter Mode' to 'Point'- this disables anti-aliasing on imported textures!

(Which is to say, it doesn't have anything to do with your shaders!)

Yay! Yippeee! Hooray! Thanks. I can send you your pixel bike, if you'd like.

wait, though...this still causes some slight anti-aliasing. see the picture...

Picture? Try setting 'Aniso Level' to 0.

yes, i've reposted the picture below--and the aniso is set to nil. But no luck as of yet.

yeah, I don't think that picture is working. It's a shame, I can't really help you without it! I know there's a solution to this one.

To the guys who search for solution, but stuck at same point: Disable texture compression/optimization or whatever it is called.