- Unity 2018 Shaders and Effects Cookbook
- John P. Doran Alan Zucconi
- 179字
- 2021-06-18 19:04:19
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.
- 程序員面試白皮書
- Mastering Articulate Storyline
- HTML5 Mobile Development Cookbook
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實訓版)
- 數(shù)據(jù)結(jié)構(gòu)與算法分析(C++語言版)
- HTML5秘籍(第2版)
- 一本書講透Java線程:原理與實踐
- 移動互聯(lián)網(wǎng)軟件開發(fā)實驗指導
- Visual FoxPro 6.0程序設(shè)計
- Struts 2.x權(quán)威指南
- UX Design for Mobile
- Python Programming for Arduino
- C#程序設(shè)計基礎(chǔ)入門教程
- Learning C++ by Creating Games with UE4
- 軟件測試分析與實踐