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

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.

主站蜘蛛池模板: 焦作市| 东辽县| 阿合奇县| 阆中市| 宕昌县| 塔城市| 兴化市| 徐汇区| 宜春市| 固始县| 绥芬河市| 汾阳市| 紫阳县| 商河县| 繁峙县| 福州市| 桓仁| 敦煌市| 开江县| 麻江县| 蓬安县| 巫山县| 青神县| 浦北县| 五大连池市| 黑山县| 南澳县| 文安县| 西贡区| 九龙坡区| 宜黄县| 策勒县| 启东市| 宜丰县| 梅州市| 永寿县| 于田县| 修文县| 正蓝旗| 昆明市| 维西|