官术网_书友最值得收藏!

There's more...

When you import a texture to Unity, you are setting up some of the properties that sampler2D will use. The most important is the Filter mode, which determines how colors are interpolated when the texture is sampled. It is very unlikely that the UV data will point exactly to the center of a pixel; in all other cases, you might want to interpolate between the closest pixels to get a more uniform color. The following is a screenshot of the Inspector tab of an example texture:

For most applications, Bilinear provides an inexpensive, yet effective, way to smooth the texture. If you are creating a 2D game, however, Bilinear might produce blurred tiles. In this case, you can use Point to remove any interpolation from the texture sampling.

When a texture is seen from a steep angle, texture sampling is likely to produce visually unpleasant artifacts. You can reduce them by setting the Aniso Level to a higher value. This is particularly useful for floor and ceiling textures, where glitches can break the illusion of continuity.

主站蜘蛛池模板: 浪卡子县| 成都市| 贺州市| 阿尔山市| 临猗县| 海伦市| 天门市| 梁山县| 弋阳县| 壶关县| 綦江县| 岑溪市| 濮阳市| 鲜城| 平陆县| 兴宁市| 怀仁县| 黄浦区| 沙洋县| 芒康县| 靖州| 四平市| 安龙县| 麻栗坡县| 佛教| 安达市| 银川市| 卓资县| 磐安县| 雷州市| 盐池县| 麻阳| 阿拉善左旗| 长沙市| 浦城县| 北安市| 武乡县| 泽普县| 邵阳市| 永春县| 五寨县|