- 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.
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- DBA攻堅指南:左手Oracle,右手MySQL
- 移動UI設計(微課版)
- 自制編譯器
- Learning Informatica PowerCenter 10.x(Second Edition)
- Implementing Cisco Networking Solutions
- 鋒利的SQL(第2版)
- 正則表達式經典實例(第2版)
- HTML5+CSS3網站設計基礎教程
- Arduino家居安全系統構建實戰
- Java程序設計案例教程
- 算法設計與分析:基于C++編程語言的描述
- 軟件工程與UML案例解析(第三版)
- Software Development on the SAP HANA Platform
- Android編程權威指南(第4版)