Skip to content

Instantly share code, notes, and snippets.

@hwei
Created May 20, 2015 06:46
Show Gist options
  • Save hwei/601a7076b03460beb5ca to your computer and use it in GitHub Desktop.
Save hwei/601a7076b03460beb5ca to your computer and use it in GitHub Desktop.
Vertex color shader for Unity3D
Shader "G42/vertex_color" {
SubShader {
Tags { "RenderType"="Opaque" }
Lighting Off
BindChannels {
Bind "Color", color
}
Pass {
SetTexture[_] {
Combine primary
}
}
}
FallBack "Diffuse"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment