Mobile Transparent Vertex Color.shader 804 B

1234567891011121314151617181920212223242526272829303132333435
  1. Shader "Mobile/Transparent/Vertex Color" {
  2. Properties {
  3. _Color ("Main Color", Color) = (1,1,1,1)
  4. _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
  5. //_AlphaCutout("Alpha CutOut" , Range(0,1)) = 0.7
  6. }
  7. Category {
  8. Tags {"Queue"="Transparent-10" "IgnoreProjector"="True" "RenderType"="Transparent"}
  9. //ZWrite Off
  10. Alphatest Greater 0.5
  11. Blend SrcAlpha OneMinusSrcAlpha
  12. SubShader {
  13. Pass {
  14. Material {
  15. Diffuse [_Color]
  16. Ambient [_Color]
  17. Shininess [_Shininess]
  18. Specular [_SpecColor]
  19. Emission [_Emission]
  20. }
  21. //ColorMaterial AmbientAndDiffuse
  22. Fog { Mode Off }
  23. Lighting Off
  24. SeparateSpecular On
  25. SetTexture [_MainTex] {
  26. constantColor[_Color]
  27. Combine texture * constant DOUBLE, texture * primary
  28. }
  29. }
  30. }
  31. }
  32. }