Unity 2018 Cookbook(Third Edition)
上QQ阅读APP看书,第一时间看更新

Avoiding issues with the semi-transparent objects

You might have noticed that the plastic case was made from two objects (PackagePlastic and innerPlastic). This was done to avoid z-sorting problems, where faces are rendered in front of other geometry when they should be behind it. Having multiple meshes instead of a single one allows these faces to be correctly sorted for rendering. Materials in the Cutout mode are not affected by this problem, though.