Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Shader "Skidmarks" {
  2. Properties {
  3. _Color ("Main Color", Color) = (1,1,1,1)
  4. _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
  5. }
  6.  
  7. Category {
  8. Offset -4, -4
  9. ZWrite Off
  10. Alphatest Greater 0
  11. Tags {"Queue"="Transparent" "RenderType"="Transparent"}
  12. SubShader {
  13. ColorMaterial AmbientAndDiffuse
  14. Lighting Off
  15. Blend SrcAlpha OneMinusSrcAlpha
  16. Pass {
  17. ColorMask RGBA
  18. SetTexture [_MainTex] {
  19. Combine texture, texture * primary
  20. // * primary
  21. }
  22. SetTexture [_MainTex] {
  23. ConstantColor [_Color]
  24. Combine constant * previous
  25. }
  26. }
  27. }
  28. }
  29.  
  30. // Fallback to Alpha Vertex Lit
  31. Fallback "Transparent/VertexLit", 2
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement