Hello developers, I have this simple shader here which reads vertex colors from the 3D model…
Shader "Vertex Color Lit" {
Properties {
_MainTex ("Texture", 2D) = "white" {}
}
SubShader {
Tags { "Queue"="Geometry" }
Pass {
BindChannels {
Bind "Color", color
Bind "Vertex", vertex
Bind "TexCoord", texcoord
}
SetTexture [_MainTex] {
Combine texture * primary
}
}
}
}
I’m having some hard times at adding basic illumination to it. Adding a simple Lighting On
in the Pass makes the object look deep black. I kept trying for an hour without success, I’m pretty sure I’m missing something very basic here. Thanks for anyone willing to help!