DecalBlended.shader 518 B

123456789101112131415161718192021
  1. Shader "Max820/DecalBlended" {
  2. Properties {
  3. _MainColor ("Main Color", Color) = (.2,.2,.2,0)
  4. _MainTex ("Main Texture", 2D) = "white" {}
  5. }
  6. SubShader {
  7. Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
  8. Tags { "LightMode" = "Vertex" }
  9. Cull Off
  10. Lighting On
  11. Material { Emission [_MainColor ] }
  12. ColorMaterial AmbientAndDiffuse
  13. ZWrite Off
  14. ColorMask RGB
  15. Blend SrcAlpha OneMinusSrcAlpha
  16. Pass {
  17. SetTexture [_MainTex] { combine primary * texture DOUBLE}
  18. }
  19. }
  20. }