This translation is community contributed and may not be up to date. We only maintain the English version of the documentation. Read this manual in English
纹理过滤决定了当一个 texel(纹理中的像素)与屏幕像素不是完美对齐时的视觉效果。当您移动包含纹理的图形元素小于一个像素的距离时,就会发生这种情况。以下过滤方法可用:
使用哪种过滤的设置存储在项目设置文件中。有两个设置:
两个设置都接受值 linear
、nearest
、nearest_mipmap_nearest
、nearest_mipmap_linear
、linear_mipmap_nearest
或 linear_mipmap_linear
。例如:
[graphics]
default_texture_min_filter = nearest
default_texture_mag_filter = nearest
如果您不指定任何内容,默认情况下两者都设置为 linear
。
请注意,game.project 中的设置由默认采样器使用。如果您在自定义材质中指定采样器,可以专门为每个采样器设置过滤方法。有关详细信息,请参阅材质手册。
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB