Advertisement
Guest User

Alpha Vertex Color Shader

a guest
Nov 18th, 2016
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Shader "Phigames/Alpha Vertex Color" {
  2. Properties {
  3. _Color ("Color", Color) = (1,1,1,1)
  4. _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
  5. }
  6.  
  7. SubShader {
  8. ZWrite Off
  9. Alphatest Greater 0
  10. Tags {Queue=Transparent}
  11. Blend SrcAlpha OneMinusSrcAlpha
  12. ColorMask RGB
  13. Pass {
  14. ColorMaterial AmbientAndDiffuse
  15. Lighting Off
  16. SeparateSpecular Off
  17. SetTexture [_MainTex] {
  18. Combine texture * primary, texture * primary
  19. }
  20. SetTexture [_MainTex] {
  21. constantColor [_Color]
  22. Combine previous * constant DOUBLE, previous * constant
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement