I am having a hard time adding lighting to a vertex color shader (e.g. directional lights). It should run on an iPhone 3G, so it has to be fixed pipeline (no Cg/GLSL).
That is my vertex color shader. Yes, it is very basic:
Shader "Vertex Color Shader" {
SubShader {
BindChannels {
Bind "Color", color
Bind "Vertex", vertex
}
Pass {
SetTexture [_MainTex] {
Combine primary
}
}
}
}
Any help is much appreciated.
Christian