Skip to content

Instantly share code, notes, and snippets.

@lucabelluccini
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucabelluccini/434edc94d33b93fb11bc to your computer and use it in GitHub Desktop.
Save lucabelluccini/434edc94d33b93fb11bc to your computer and use it in GitHub Desktop.
Self Lit, Alpha channel (global), Texture mapped to UV, Overlay
Shader "Custom/Shader4SHUD" {
Properties {
_MainTex ("Texture", 2D) = "white" { }
_Alpha ("Alpha", Range(0.0,1.0)) = 1.0
}
SubShader {
Tags { Queue = Overlay }
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
Pass {
SetTexture[_MainTex] {
constantColor(0,0,0,[_Alpha])
combine texture, texture * constant
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment