Shaders I’ll be using…

Okay, I’m going untextured for this game. In the interests of not messing about with shaders in Unity I hereby declare and share this shader for lit vertex colours…

 

Shader "Custom/VertexColourLit"
 {
 SubShader
 {
 BindChannels
 {
 Bind "vertex", vertex
 Bind "normal", normal
 Bind "color", color
 }
 
 Pass
 {
 ColorMaterial AmbientAndDiffuse
Lighting On
 }
 }
 }

And this one for lit verts with a specified colour, yay…

Shader "Custom/ColourLit"
 {
 Properties
 {
 _Color ("Main Color", Color) = (1,1,1,1)
 }
 
 SubShader
 {
 Pass
 {
 Material
 {
 Diffuse [_Color]
 Ambient [_Color]
 }
 
 Lighting On
 }
 }
 }