slimecing

a fighting game featuring slimes and swords
Log | Files | Refs | README

UnlitVertexColour_Alpha.shader (523B)


      1 Shader "SyntyStudios/Unlit Vertex Color_Alpha" 
      2 {
      3 
      4 Properties {
      5     _MainTex ("Base (RGB)", 2D) = "white" {}
      6 }
      7 
      8 SubShader 
      9 {
     10    	   Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
     11 	   Lighting Off ZWrite Off Fog { Mode Off }
     12 	   Blend SrcAlpha OneMinusSrcAlpha
     13 
     14   
     15 	BindChannels {
     16 		Bind "Color", color
     17 		Bind "Vertex", vertex
     18 		Bind "texcoord", texcoord
     19 	}
     20    
     21    Pass {
     22         ColorMaterial AmbientAndDiffuse
     23         SetTexture [_MainTex] {Combine texture * primary
     24         }
     25     }
     26 }
     27 }