yum-slop/TaSTT
Free self-hosted STT for VRChat.
git clone https://git.yummers.dev/yum-slop/TaSTT
c218e2a
v0.20.0
1Shader "TaSTT/Simple_PBS" 2{ 3 Properties 4 { 5 [MaterialToggle] BG_Enable("Enable custom background", float) = 0 6 BG_BaseColor("Background base color", 2D) = "black" {} 7 [NoScaleOffset] BG_NormalMap ("Background normal map", 2D) = "bump" {} 8 BG_NormalStrength ("Background normal strength", Float) = 1 9 BG_Smoothness("Background smoothness", 2D) = "black" {} 10 [MaterialToggle]BG_Smoothness_Invert("Invert background smoothness", float) = 1 11 BG_Metallic("Background metallic", 2D) = "black" {} 12 BG_Emission_Mask("Background emission mask", 2D) = "black" {} 13 BG_Emission_Color("Background emission color", Color) = (0, 0, 0) 14 15 [MaterialToggle] Enable_Custom_Cubemap("Enable custom cubemap", float) = 0 16 Custom_Cubemap("Custom cubemap", Cube) = "" {} 17 18 // %TEMPLATE__UNITY_ROW_COL_PARAMS% 19 } 20 SubShader 21 { 22 Pass { 23 Tags { 24 "RenderType"="Opaque" 25 "Queue"="AlphaTest+499" 26 "LightMode" = "ForwardBase" 27 } 28 Blend SrcAlpha OneMinusSrcAlpha 29 30 CGPROGRAM 31 #pragma target 3.0 32 33 #pragma multi_compile _ VERTEXLIGHT_ON 34 35 #pragma vertex vert 36 #pragma fragment frag 37 38 #define FORWARD_BASE_PASS 39 40 #include "PBS_lighting.cginc" 41 ENDCG 42 } 43 Pass { 44 Tags { 45 "RenderType" = "Opaque" 46 "LightMode" = "ForwardAdd" 47 "Queue"="AlphaTest+499" 48 } 49 Blend One One 50 ZWrite Off 51 52 CGPROGRAM 53 #pragma target 3.0 54 55 #pragma multi_compile_fwdadd 56 57 #pragma vertex vert 58 #pragma fragment frag 59 60 #include "PBS_lighting.cginc" 61 ENDCG 62 } 63 } 64} 65