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

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.

主站蜘蛛池模板: 武平县| 惠州市| 罗平县| 赫章县| 阳江市| 涡阳县| 乌拉特中旗| 正镶白旗| 聂拉木县| 霞浦县| 湘乡市| 鄂托克前旗| 南华县| 肇东市| 夹江县| 凌海市| 上蔡县| 仁布县| 敖汉旗| 民权县| 盈江县| 沈阳市| 佳木斯市| 万源市| 石屏县| 台安县| 明水县| 闽清县| 沅江市| 托里县| 双辽市| 客服| 靖边县| 筠连县| 祁门县| 博爱县| 淮安市| 武隆县| 安陆市| 宿迁市| 阜城县|