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 (图素, 纹理中的一个像素) 与屏幕像素不是完美对齐时的视觉效果. 当可视元素移动小于1个像素的时候就会发生这种现象. 可以选择以下的过滤方式:
过滤设置保存在 项目设置 文件里. 一共有两项:
这两项取值都是 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