yum-slop/TaSTT
Free self-hosted STT for VRChat.
git clone https://git.yummers.dev/yum-slop/TaSTT
323eeba
v0.19.2
1Shader "TaSTT/Chatbox" 2{ 3 Properties 4 { 5 _Text_Color ("Text color", Color) = (1, 1, 1, 1) 6 _Text_Metallic ("Text metallic", Range(0, 1)) = 0 7 _Text_Smoothness ("Text smoothness", Range(0, 1)) = 0 8 _Text_Emissive ("Text emission", Range(0, 1)) = 0.2 9 10 _BG_Color ("Background color", Color) = (0, 0, 0, 1) 11 _BG_Metallic ("Background metallic", Range(0, 1)) = 0 12 _BG_Smoothness ("Background smoothness", Range(0, 1)) = 0 13 _BG_Emissive ("Background emission", Range(0, 1)) = 0.2 14 15 _Frame_Color ("Frame color", Color) = (1, 1, 1, 1) 16 _Frame_Metallic ("Frame metallic", Range(0, 1)) = 0 17 _Frame_Smoothness ("Frame smoothness", Range(0, 1)) = 0 18 _Frame_Emissive ("Frame emission", Range(0, 1)) = 0.2 19 20 _Emerge("Emerge animation time", Range(0, 1)) = 1.0 21 [MaterialToggle] _Ellipsis("Show ellipsis", float) = 0 22 23 _Font_0x0000_0x1FFF ("_Font 0 (unicode 0x0000 - 0x1FFFF)", 2D) = "white" {} 24 _Font_0x2000_0x3FFF ("_Font 1 (unicode 0x2000 - 0x3FFFF)", 2D) = "white" {} 25 _Font_0x4000_0x5FFF ("_Font 2 (unicode 0x4000 - 0x5FFFF)", 2D) = "white" {} 26 _Font_0x6000_0x7FFF ("_Font 3 (unicode 0x6000 - 0x7FFFF)", 2D) = "white" {} 27 _Font_0x8000_0x9FFF ("_Font 4 (unicode 0x8000 - 0x9FFFF)", 2D) = "white" {} 28 _Font_0xA000_0xBFFF ("_Font 5 (unicode 0xA000 - 0xBFFFF)", 2D) = "white" {} 29 _Font_0xC000_0xDFFF ("_Font 6 (unicode 0xC000 - 0xDFFFF)", 2D) = "white" {} 30 _Img_0xE000_0xE03F ("_Images", 2D) = "white" {} 31 32 // %TEMPLATE__UNITY_ROW_COL_PARAMS% 33 } 34 SubShader 35 { 36 Pass { 37 Tags { 38 "RenderType"="Opaque" 39 "Queue"="AlphaTest+499" 40 "LightMode" = "ForwardBase" 41 } 42 Blend SrcAlpha OneMinusSrcAlpha 43 Cull Back 44 ZWrite On 45 ZTest LEqual 46 47 CGPROGRAM 48 #pragma target 5.0 49 50 #pragma multi_compile _ VERTEXLIGHT_ON 51 52 #pragma vertex vert 53 #pragma fragment frag 54 55 #define FORWARD_BASE_PASS 56 57 #include "TaSTT_lighting.cginc" 58 ENDCG 59 } 60 Pass { 61 Tags { 62 "RenderType" = "Opaque" 63 "LightMode" = "ForwardAdd" 64 "Queue"="AlphaTest+499" 65 } 66 Blend One One 67 Cull Back 68 ZWrite On 69 ZTest LEqual 70 71 CGPROGRAM 72 #pragma target 5.0 73 74 #pragma multi_compile_fwdadd 75 76 #pragma vertex vert 77 #pragma fragment frag 78 79 #include "TaSTT_lighting.cginc" 80 ENDCG 81 } 82 } 83 //CustomEditor "TaSTTShaderGUI" 84} 85