Linear (bilinear) filter type. Smooths textures by interpolating between neighbouring pixels when scaling, producing a blended, anti-aliased result. Suitable for high-resolution artwork but will appear blurry on pixel art.
Nearest neighbor filter type. Samples the single closest pixel when scaling, preserving hard edges and producing a crisp, blocky result. Ideal for pixel art games where texture sharpness is important.
Texture Filter Mode constants, used when setting the filter mode on a texture via
Texture.setFilter. The filter mode controls how WebGL samples a texture when it is scaled or displayed at a non-native resolution. UseLINEARfor smooth scaling of high-resolution artwork, orNEARESTto preserve hard pixel edges in pixel art games.