Advertisement
Guest User

Character2Pass

a guest
Jan 31st, 2014
708
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Shader "Custom/Character2Pass"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (1,1,1,1)
  6. _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
  7. _Cutoff ("Alpha cutoff", Range(0,0.9)) = 0.5
  8. }
  9.  
  10. SubShader
  11. {
  12. Tags {"Queue"="Transparent"}
  13.  
  14. Pass
  15. {
  16. Tags { "LightMode" = "Vertex" }
  17. Alphatest Greater [_Cutoff]
  18. AlphaToMask True
  19. ColorMask RGB
  20. Blend SrcAlpha OneMinusSrcAlpha
  21.  
  22. Material
  23. {
  24. Diffuse [_Color]
  25. Ambient [_Color]
  26. }
  27. Lighting On
  28. SetTexture [_MainTex]
  29. {
  30. combine texture * primary double, texture * primary
  31. }
  32. }
  33.  
  34. Pass
  35. {
  36. ZWrite Off
  37. ZTest Less
  38. Blend SrcAlpha OneMinusSrcAlpha
  39.  
  40. Lighting Off
  41. SetTexture [_MainTex]
  42. {
  43. combine texture
  44. }
  45. }
  46. }
  47.  
  48. Fallback "Transparent/Cutout/Soft Edge Unlit"
  49. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement