diff options
| author | yum <yum.food.vr@gmail.com> | 2023-01-27 16:14:07 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-01-27 16:14:07 -0800 |
| commit | 45301ff0c0d732c3bf93f0a324e821a5f67f468c (patch) | |
| tree | 6bea0a3cf67e2de63a22c353155d1a0570742125 /Shaders/TaSTT_lighting_template.cginc | |
| parent | 30680445b1c59fe107a0be8295da2b8a38c0f6ea (diff) | |
Bugfixesv0.4.0
* Fix prefab: bounding box & position are now set to 0
* Fix shader: text is no longer upside down
* Update README
Diffstat (limited to 'Shaders/TaSTT_lighting_template.cginc')
| -rw-r--r-- | Shaders/TaSTT_lighting_template.cginc | 3 |
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). |
