Texture filtering decides the visual result in cases when a texel (a pixel in a texture) is not perfectly aligned with a screen pixel. This happens when you move a graphical element that contains the texture less than a pixel. The following filter methods are available:
The setting for which filtering to use is stored in the Project Settings file. There are two settings:
Both settings accept the values linear
, nearest
, nearest_mipmap_nearest
, nearest_mipmap_linear
, linear_mipmap_nearest
or linear_mipmap_linear
. For example:
[graphics]
default_texture_min_filter = nearest
default_texture_mag_filter = nearest
If you don’t specify anything, both are set to linear
by default.
Note that the setting in game.project is used by in the default samplers. If you specify samplers in a custom material, you can set the filter method on each sampler specifically. See the Materials manual for details.
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB