Skip to content

Instantly share code, notes, and snippets.

@davepape
Created October 11, 2018 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davepape/0dee3b1550a1f4159bc173e1b32dbe0c to your computer and use it in GitHub Desktop.
Save davepape/0dee3b1550a1f4159bc173e1b32dbe0c to your computer and use it in GitHub Desktop.
minimal Unity shader, to use vertex colors without lighting or texture
// taken from http://answers.unity3d.com/questions/391561/create-a-mesh-and-color-cubes.html
Shader "Custom/Vertex Colored"
{
Properties
{
}
SubShader
{
Pass
{
ColorMaterial AmbientAndDiffuse
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment