Game dev
Saved & recent

Texture filtering

Related terms: nearest, bilinear, trilinear, anisotropic

Decides what color to return when a texture is stretched or shrunk and screen pixels do not line up with texels. Nearest picks the closest texel and looks blocky, which is what pixel art wants. Bilinear blends the four closest texels and looks soft.

Trilinear also blends between two mip levels. Anisotropic keeps textures sharp on surfaces seen at a steep angle, like a road.

Further reading
Android Developers: Texture filtering
NearestBilinear

View in the full Game dev collection