duck

duck

Oct 9th, 2009
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Shader "Decal UV Layer 2" {
  2. Properties {
  3. _Color ("Main Color", Color) = (1,1,1,1)
  4. _SpecColor ("Spec Color", Color) = (1,1,1,1)
  5. _Emission ("Emmisive Color", Color) = (0,0,0,0)
  6. _Shininess ("Shininess", Range (0.01, 1)) = 0.7
  7. _MainTex ("Base (RGB)", 2D) = "white" {}
  8. _DecalTex ("Decal (RGBA)", 2D) = "black" {}
  9. }
  10.  
  11. SubShader {
  12. Tags { "RenderType"="Opaque" }
  13. BindChannels {
  14. Bind "Vertex", vertex
  15. Bind "texcoord", texcoord0
  16. Bind "texcoord1", texcoord1
  17. Bind "texcoord", texcoord2
  18. }
  19. Material {
  20. Diffuse [_Color]
  21. Ambient [_Color]
  22. Shininess [_Shininess]
  23. Specular [_SpecColor]
  24. Emission [_Emission]
  25. }
  26. Pass {
  27. Lighting On
  28. SeparateSpecular On
  29. SetTexture [_MainTex] {combine texture}
  30. SetTexture [_DecalTex] {combine texture lerp (texture) previous}
  31. SetTexture [_MainTex] {combine previous * primary DOUBLE, previous * constant constantColor [_Color]}
  32. }
  33. }
  34.  
  35. Fallback "VertexLit", 1
  36.  
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment