From ea152053ab9865991ef7b08cfbe67dc093210505 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Sat, 23 Sep 2023 06:30:22 -0400 Subject: display: Fix glyph angles --- virtual-programs/display.folk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'virtual-programs') diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk index d508748a..67f12767 100644 --- a/virtual-programs/display.folk +++ b/virtual-programs/display.folk @@ -137,10 +137,10 @@ On process { float bottom = planeGlyphBounds[1] * em; float right = planeGlyphBounds[2] * em; float top = planeGlyphBounds[3] * em; - vec2 a = pos + rotate(vec2(left, -top), radians); - vec2 b = pos + rotate(vec2(right, -top), radians); - vec2 c = pos + rotate(vec2(right, -bottom), radians); - vec2 d = pos + rotate(vec2(left, -bottom), radians); + vec2 a = pos + rotate(vec2(left, -top), -radians); + vec2 b = pos + rotate(vec2(right, -top), -radians); + vec2 c = pos + rotate(vec2(right, -bottom), -radians); + vec2 d = pos + rotate(vec2(left, -bottom), -radians); vec2 glyphUv = invBilinear(gl_FragCoord.xy, a, b, c, d); if( max( abs(glyphUv.x-0.5), abs(glyphUv.y-0.5))>=0.5 ) { -- cgit v1.2.3