请问类似3dmax的背面消隐怎么修改?
unity吧
全部回复
仅看楼主
level 3
wojiuxuihuan 楼主
如题,所有物体已转为可编辑多边形,但是有些物体旋转的时候会看不到背面,应该怎么设置呢[haha][乖][OK]
2013年06月05日 07点06分 1
level 6
你可以利用以下shader创建双层效果,记住把这代码保存为SHADER格式并且存放在你的工程中、:、Shader "UnlitAlpha"{ Properties { _Color ("Main Color", Color) = (1,1,1,1) _MainTex ("Base (RGB) Trans. (Alpha)", 2D) = "white" { } }
Category { ZWrite On Alphatest Greater 0.5 Cull Off SubShader { Pass { Lighting Off SetTexture [_MainTex] { constantColor [_Color] Combine texture * constant, texture * constant } } } }}
2013年06月05日 07点06分 2
好的谢谢!
2013年06月05日 08点06分
level 1
双面 半透明 shader 都是用的比较多的
2013年06月15日 15点06分 3
1