- 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.
- JIRA 7 Administration Cookbook(Second Edition)
- Neo4j Essentials
- Practical DevOps
- Python高級(jí)機(jī)器學(xué)習(xí)
- MATLAB實(shí)用教程
- Mastering Yii
- Interactive Applications Using Matplotlib
- Cocos2d-x學(xué)習(xí)筆記:完全掌握Lua API與游戲項(xiàng)目開發(fā) (未來書庫)
- Expert Data Visualization
- Visual C#通用范例開發(fā)金典
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- Visual FoxPro程序設(shè)計(jì)習(xí)題集及實(shí)驗(yàn)指導(dǎo)(第四版)
- 鴻蒙OS應(yīng)用編程實(shí)戰(zhàn)
- Python從入門到精通(第3版)
- 從零開始學(xué)Selenium自動(dòng)化測(cè)試:基于Python:視頻教學(xué)版