From 6cbaad896c8177d255aa90d1de6aeac963490312 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 26 Nov 2022 23:55:41 +0000 Subject: [PATCH] use highp for pixcoord to fix nvidia border issues --- src/render/shaders/Border.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render/shaders/Border.hpp b/src/render/shaders/Border.hpp index 274ae362..aa0329fe 100644 --- a/src/render/shaders/Border.hpp +++ b/src/render/shaders/Border.hpp @@ -52,7 +52,8 @@ vec4 getColorForCoord(vec2 normalizedCoord) { void main() { highp vec2 pixCoord = vec2(gl_FragCoord); - vec2 originalPixCoord = fullSizeUntransformed * v_texcoord; + highp vec2 originalPixCoord = v_texcoord; + originalPixCoord *= fullSizeUntransformed; vec4 pixColor = getColorForCoord(v_texcoord); pixColor[3] *= alpha;