DiffuseAlwaysVisible.shader 838 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Shader "Diffuse - Always visible" {
  2. Properties {
  3. _NotVisibleColor ("X-ray color (RGB)", Color) = (0,1,0,1)
  4. _Color ("Main Color",Color) = (0.5,0.5,0.5,1)
  5. _MainTex ("Base (RGB)", 2D) = "white" {}
  6. }
  7. SubShader {
  8. Tags { "RenderType"="Opaque-1" }
  9. LOD 200
  10. Pass {
  11. ZTest LEqual
  12. Material {
  13. Diffuse [_Color]
  14. Ambient [_Color]
  15. }
  16. Lighting On
  17. SetTexture [_MainTex] {
  18. Combine texture * primary DOUBLE, texture * primary
  19. }
  20. }
  21. Pass {
  22. ZTest Greater
  23. Material {
  24. Diffuse [_NotVisibleColor]
  25. }
  26. Color [_NotVisibleColor]
  27. }
  28. }
  29. FallBack "Diffuse"
  30. }