vertex panit shader support for android/ios ?

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 :slight_smile:

ps. i test on android 2.3.4 with sony ericsson xperia neo-v (cpu 1g hz, ram512 single core)

Maybe it’s a bit too late, but i’ll try to answer for anyone there having trouble)

Try to bind texcoord for each SetTexture. Like this:

BindChannels

{

Bind "vertex", vertex
Bind "color", color
Bind "texcoord", texcoord0
Bind "texcoord", texcoord1
Bind "texcoord", texcoord2

}

Worked for me with ICS. But with Gingerbread i’m getting trouble with that.
If that does’nt work, try to split your shader in different passes.

Also, check this nice tutorial about ShaderLab: