How to disable antialiasing on textures

Godot Version

v4.2.2.stable.oficial[15073afe3]

Question

Hi there! I’m trying to render a texture (Albedo) applied to a quad flat grometry without antialiasing. I’ve seen a solution here in the forums to change the texture filter to Nearest on Project Settings > Textures, but it doesn’t work.

Original (closed) topic: How do you disable anti-aliasing on drawn textures?

The original textute:

How’s rendeing in Godot:

Any ideas? Super thanks for the help!

Hi,

If we’re talking about a Sprite3D node, using Nearest as Texture Filter on the node properties works fine on my side:


Maybe you’re using a custom shader, in that case, you should specify that the sampled texture should be using nearest filtering, like this:

uniform sampler2D albedo_texture: filter_nearest;

If none of these two suggestions are helping, could you share a bit more context? What node type you’re using, is there any custom shader, what rendering method your project is using, etc.

2 Likes

That’s the ticket, thanks!

1 Like

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