summaryrefslogtreecommitdiff
path: root/source/shaders
diff options
context:
space:
mode:
authortalha <sarcxd@gmail.com>2025-02-22 20:46:25 +0500
committertalha <sarcxd@gmail.com>2025-02-22 20:46:25 +0500
commit936b9b3e0f09edf92a17fcbacc43098c61728d9d (patch)
treed948a3d9e6c6d1d5c3c255fc9fb9ba6074d841ac /source/shaders
parent7342249cbdac9aa1ed061552d4a10746eab72c6c (diff)
WIP: replacing freetype with stb_truetype
Diffstat (limited to 'source/shaders')
-rwxr-xr-xsource/shaders/ui_text.vs.glsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/shaders/ui_text.vs.glsl b/source/shaders/ui_text.vs.glsl
index 9bba904..d33cdbe 100755
--- a/source/shaders/ui_text.vs.glsl
+++ b/source/shaders/ui_text.vs.glsl
@@ -11,6 +11,7 @@ void main() {
gl_Position = Projection * View * LetterTransforms[gl_InstanceID] * vec4(aPos, 0.0, 1.0);
vec2 tex = aPos;
TexCoords = tex;
+ // flip texture coordinates
TexCoords.y = 1.0 - TexCoords.y;
Index = gl_InstanceID;
}