Skip to content

Instantly share code, notes, and snippets.

View MichaelZhou's full-sized avatar
💭
focusing

michael MichaelZhou

💭
focusing
View GitHub Profile
@MichaelZhou
MichaelZhou / VertexColor.shader
Last active June 18, 2019 20:29
Shader that allows 3D meshes that support vertex colors (.fbx, .ply) to be colored by their vertices
Shader "Custom/VertexColor" { // Where it will appear inside of the Shader Dropdown Menu of the Material / Name of the shader
Properties{
_Toggle ("Toggle context", int) = 1
}
SubShader{
Tags { "RenderType" = "Opaque" }
LOD 200
CGPROGRAM