hi everyone,
i work with vertex paint(RGB) and blend by alpha channel so this is shader code that i use
Shader "RGB Vertexcolor Blend by Vertex Alpha"
{
Properties
{
_MainTex ("Texture 1 (vertex A = red)", 2D) = ""
_Texture2 ("Texture 2 (vertex A = green)", 2D) = ""
_Texture3 ("Texture 2 (vertex A = blue)", 2D) = ""
}
SubShader
{
BindChannels
{
Bind "vertex", vertex
Bind "color", color
Bind "texcoord", texcoord
}
Pass
{
SetTexture [_MainTex]
SetTexture [_Texture2] {combine previous lerp(primary) texture}
SetTexture [_Texture3] {combine previous lerp(primary) texture}
}
}
}
it’s work well in unity but when i try to plublic on android, some object that use this shader is missing they didn’t show correctly texture as i see in unity. i wonder how it’s happen? or android/ios not support for vertex paint? any idea? pls help.
thk for share
ps. i test on android 2.3.4 with sony ericsson xperia neo-v (cpu 1g hz, ram512 single core)