From 45301ff0c0d732c3bf93f0a324e821a5f67f468c Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 27 Jan 2023 16:14:07 -0800 Subject: Bugfixes * Fix prefab: bounding box & position are now set to 0 * Fix shader: text is no longer upside down * Update README --- Shaders/TaSTT_lighting_template.cginc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Shaders') 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). -- cgit v1.2.3