Created
October 11, 2018 03:49
-
-
Save davepape/0dee3b1550a1f4159bc173e1b32dbe0c to your computer and use it in GitHub Desktop.
minimal Unity shader, to use vertex colors without lighting or texture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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