Skip to content

A version of Unity's "Standard Shader" with support for per-vertex color

Notifications You must be signed in to change notification settings

rejemy/UnityStandardShaderVertexColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

UnityStandardShaderVertexColor

A version of Unity's "Standard Shader" with support for per-vertex color

This should hopefully be the definitive repository for Unity3d users looking to use the standard shader with meshes that have vertex colors. This shader supports everything the stock "Standard Shader" does, with addition of a new material option that multiplies vertex colors by the material's albedo color. That means this shader allows the use of vertex colors in conjunction with all the great built-in features of the standard shader, including alpha support, instancing, shadows, meta probe info and more!

Why use per-vertex colors? It allows you to re-use the same material for many meshes in your scene, which will allow them to be batch rendered or instanced with very little overhead. Also you get to have that sweet, indie low-poly look for free!

Usage:

Just drop the StandardVertColorShader folder into your Unity3d project. Now in your material properties, pick either "Standard (Vertcolor)" or "Standard (Specular Setup, Vertcolor)" for your shader. Next, make sure the "Per-Vertex Color" option is turned on in the material properties, and you are ready to go.

Please let me know if you have any problems! Thanks!

About

A version of Unity's "Standard Shader" with support for per-vertex color

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published