level 3
你可以利用以下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分
