Hi.
I use this following shader for my mobile game.
http://wiki.unity3d.com/index.php?title=UnlitAlpha
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
}
}
}
}
}
My problem here is, that it has no depth. Can I add some depth like that?
I also saw this in the inspector:
PerformanceChecks.ShaderWithClipAndroid
Is this a problem on mobile device? I really don’t understand what this means.
Thanks a lot!