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

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.

主站蜘蛛池模板: 临桂县| 鱼台县| 云南省| 陇川县| 五莲县| 宁蒗| 新田县| 永济市| 河南省| 宝坻区| 潜江市| 年辖:市辖区| 荥阳市| 莱阳市| 岳池县| 于田县| 曲周县| 闽清县| 南充市| 和田县| 酒泉市| 深州市| 石家庄市| 论坛| 孟村| 沁源县| 孟村| 宽甸| 龙井市| 逊克县| 汾西县| 中西区| 白银市| 册亨县| 乐昌市| 社旗县| 南汇区| 江西省| 海晏县| 崇义县| 右玉县|