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

Creating a transparent material

All the shaders we have seen so far have something in common; they are used for solid materials. If you want to improve the look of your game, transparent materials are often a good way to start. They can be used for anything from a fire effect to a glass window. Working with them, unfortunately, is slightly more complicated. Before rendering solid models, Unity orders them according to the distance from the camera (Z ordering) and skips all the triangles that are facing away from the camera (culling). When rendering transparent geometries, there are instances in which these two aspects can cause problems. This recipe will show you how to solve some of these issues when it comes to creating a transparent Surface Shader. This topic will be heavily revisited in Chapter 7, Fragment Shaders and Grab Passes, where realistic glass and water shaders will be provided.

主站蜘蛛池模板: 建瓯市| 西安市| 鲜城| 长垣县| 许昌县| 北川| 谷城县| 洛隆县| 泽库县| 墨竹工卡县| 陵水| 册亨县| 镇远县| 安图县| 额济纳旗| 临沧市| 钟祥市| 桐庐县| 聂拉木县| 隆回县| 乡城县| 铁岭县| 和硕县| 隆安县| 铁岭市| 上犹县| 自贡市| 佛冈县| 双桥区| 望都县| 金溪县| 靖西县| 时尚| 边坝县| 习水县| 越西县| 青川县| 赤水市| 简阳市| 阜新| 拜城县|