DoubleSideDiffuse.shader 488 B

123456789101112131415161718192021222324252627282930
  1. Shader "DoubleSide/Diffuse"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (1,1,1,1)
  6. _MainTex ("Base (RGB)", 2D) = "white" {}
  7. }
  8. SubShader
  9. {
  10. Tags { "Queue" = "Transparent" }
  11. Material
  12. {
  13. Diffuse [_Color]
  14. Ambient (1,1,1,1)
  15. }
  16. Pass
  17. {
  18. Lighting On
  19. Cull off
  20. Blend SrcAlpha OneMinusSrcAlpha
  21. SetTexture [_MainTex]
  22. {
  23. constantColor [_Color]
  24. Combine texture * primary DOUBLE, texture * constant
  25. }
  26. }
  27. }
  28. FallBack "Diffuse", 1
  29. }