Advertisement
Frank84

Vertex Colored Blended

Jan 17th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. Shader "Vertex Colored Blended"
  2. {
  3.     Properties
  4.     {
  5.         _Color ("Main Color", Color) = (1,1,1,1)
  6.     }
  7.    
  8.     SubShader
  9.     {
  10.         Pass
  11.         {
  12.             Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
  13.            
  14.             Lighting Off
  15.             Cull back
  16.             ZWrite off
  17.             Blend SrcAlpha OneMinusSrcAlpha
  18.        
  19.             BindChannels
  20.             {
  21.                 Bind "vertex", vertex
  22.                 Bind "color", color
  23.             }
  24.            
  25.             ColorMaterial AmbientAndDiffuse
  26.            
  27.             SetTexture [_]
  28.             {
  29.                 constantColor [_Color]
  30.                 Combine primary * constant
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement