summaryrefslogtreecommitdiffstats
path: root/Shaders/TaSTT_lighting_template.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'Shaders/TaSTT_lighting_template.cginc')
-rw-r--r--Shaders/TaSTT_lighting_template.cginc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Shaders/TaSTT_lighting_template.cginc b/Shaders/TaSTT_lighting_template.cginc
index e3b6239..ffdd7c5 100644
--- a/Shaders/TaSTT_lighting_template.cginc
+++ b/Shaders/TaSTT_lighting_template.cginc
@@ -504,6 +504,9 @@ bool f3ltf3(fixed3 a, fixed3 b)
fixed4 frag(v2f i) : SV_Target
{
float2 uv = i.uv.zw;
+ // Fix text orientation
+ uv.y = 0.5 - uv.y;
+ uv.x = 1.0 - uv.x;
uv.y *= 2; // Text box has 2:1 aspect ratio
// Derived from github.com/pema99/shader-knowledge (MIT license).