The following shader works on Android:
Shader "Mobile/Lit Vertex Color" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Pass {
Lighting On
ColorMaterial AmbientAndDiffuse
SetTexture [_MainTex] {
combine texture * primary DOUBLE
}
}
}
}
Still, this modification will not -it shows pink-, while it works perfectly on Windows.
Shader "Mobile/Lit Inverse Vertex Color" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Pass {
Lighting On
ColorMaterial AmbientAndDiffuse
SetTexture [_MainTex] {
combine texture * primary DOUBLE
}
SetTexture [_MainTex] {
ConstantColor (0.7,0.7,0.7,0.7)
combine one - previous * constant
}
}
}
}
My intention is just to invert colors and reduce the brightness of the first shader. Any help is appreciated.
If you have a suggestion on a different method to invert the vertex color, that would also be welcome, at least to have an alternative to test.