Guest User

Untitled

a guest
Jun 23rd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Shader "Transparent/Vertex Colored" {
  2. Properties {
  3. _Color ("Main Color", Color) = (0.5,0.5,0.5,1)
  4. _Emission ("Emmisive Color", Color) = (0,0,0,0)
  5. _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
  6. }
  7.  
  8. Category {
  9. Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
  10. ZWrite Off
  11. Blend SrcAlpha OneMinusSrcAlpha
  12. SubShader {
  13. Material {
  14. Diffuse [_Color]
  15. Ambient [_Color]
  16. Emission [_Emission]
  17. }
  18. Pass {
  19. ColorMaterial AmbientAndDiffuse
  20. Lighting Off
  21. Cull Off
  22. SetTexture [_MainTex] {
  23. Combine texture * primary, texture * primary
  24. }
  25. SetTexture [_MainTex] {
  26. constantColor [_Color]
  27. Combine previous * constant DOUBLE, previous * constant
  28. }
  29. }
  30. }
  31. }
  32. }
Add Comment
Please, Sign In to add comment