From d58d36d9ef533b526d33c511526d6e481d243c96 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 23 Mar 2023 16:32:22 -0700 Subject: Custom chatbox shader writes depth This fixes issues where the transparent corners of the textbox render in front of other materials, causing those other materials to skip rendering. * Update README.md with roadmap and avatar resource usage. --- Shaders/TaSTT_template.shader | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Shaders/TaSTT_template.shader') diff --git a/Shaders/TaSTT_template.shader b/Shaders/TaSTT_template.shader index e92a1bd..823eb67 100644 --- a/Shaders/TaSTT_template.shader +++ b/Shaders/TaSTT_template.shader @@ -55,9 +55,11 @@ "LightMode" = "ForwardBase" } Blend SrcAlpha OneMinusSrcAlpha + ZWrite On + ZTest LEqual CGPROGRAM - #pragma target 3.0 + #pragma target 5.0 #pragma multi_compile _ VERTEXLIGHT_ON @@ -76,10 +78,11 @@ "Queue"="AlphaTest+499" } Blend One One - ZWrite Off + ZWrite On + ZTest LEqual CGPROGRAM - #pragma target 3.0 + #pragma target 5.0 #pragma multi_compile_fwdadd -- cgit v1.2.3