Fonts with a shader that has depth

This commit is contained in:
2016-05-23 21:16:31 +02:00
parent 3ed120f4a3
commit 6a21aa1ea6
17 changed files with 137 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
Shader "GUI/TextWithDepth" {
Properties{
_MainTex("Font Texture", 2D) = "white" {}
_Color("Text Color", Color) = (1, 1, 1, 1)
}
SubShader{
Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
Lighting Off Cull Off ZWrite Off Fog{ Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass{
Color[_Color]
SetTexture[_MainTex]{
combine primary, texture * primary
}
}
}
}