Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 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. BindChannels
  15. {
  16. Bind "Vertex", vertex
  17. Bind "Normal", Normal
  18. Bind "texcoord", texcoord
  19. Bind "Color", color
  20. }
  21.  
  22. SetTexture[_TexA]
  23. {
  24. combine texture
  25. }
  26.  
  27. SetTexture[_TexB]
  28. {
  29. combine previous lerp(primary) texture
  30. }
  31. }
  32. }
  33. FallBack "Diffuse"
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement