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

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.

主站蜘蛛池模板: 房山区| 曲水县| 桐梓县| 那坡县| 定西市| 将乐县| 吴江市| 密云县| 华容县| 德清县| 大名县| 山丹县| 开阳县| 黄浦区| 左云县| 黔东| 阜平县| 新宁县| 顺平县| 夏津县| 周至县| 诸暨市| 凤凰县| 沙河市| 巴东县| 洛川县| 鄂托克前旗| 唐山市| 山东| 卫辉市| 贺兰县| 苍南县| 固始县| 云南省| 扎赉特旗| 丹棱县| 黄冈市| 普洱| 安康市| 外汇| 涟水县|