How do you disable anti-aliasing on drawn textures?

Godot Version

4.3

Question

I’m trying to use the DrawTexture method to draw pixelated textures, and everything works fine when drawing normally, but if I try to scale them up using DrawSetTransform I get an blurry looking anti-aliased result. Below is what the texture looks like, and what the result looks like when scaled up by a factor of 4.
Screenshot 2024-11-05 112106


I’ve tried turning off anti-aliasing in the project settings but that didn’t work, so how do I turn this off?

put a shader in front of it that uses SCREEN_TEXTURE
i think this is what any anti aliasing shader do, it takes the screen texture and show it

Is the texture filter is Nearest? in the project settings or sprite properties.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.