summaryrefslogtreecommitdiffstats
path: root/Shaders/TaSTT_template.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-03-23 16:32:22 -0700
committeryum <yum.food.vr@gmail.com>2023-03-23 16:52:51 -0700
commitd58d36d9ef533b526d33c511526d6e481d243c96 (patch)
tree06fd5082841fc183246964206679c558a63aef35 /Shaders/TaSTT_template.shader
parent1f15133dd985442af20d42a96fbcd0007f03bd2b (diff)
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.
Diffstat (limited to 'Shaders/TaSTT_template.shader')
-rw-r--r--Shaders/TaSTT_template.shader9
1 files changed, 6 insertions, 3 deletions
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