Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Shader "Custom/Vertex Color Texture Blend"
  2. {
  3. Properties
  4. {
  5. _TexA ("Diffuse A", 2D) = "white" {}
  6. _TexB ("Diffuse B", 2D) = "white" {}
  7. }
  8.  
  9. SubShader
  10. {
  11. Tags { "RenderType"="Opaque" }
  12. Pass
  13. {
  14. Lighting on
  15.  
  16. BindChannels
  17. {
  18. Bind "Vertex", vertex
  19. Bind "texcoord", texcoord0
  20. Bind "texcoord1", texcoord1
  21. Bind "Color", color
  22. }
  23.  
  24. SetTexture[_TexA]
  25. {
  26. combine texture
  27. }
  28.  
  29. SetTexture[_TexB]
  30. {
  31. combine previous lerp(primary) texture, texture
  32. }
  33. }
  34. }
  35. FallBack "Diffuse"
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement