summaryrefslogtreecommitdiff
path: root/src/render/shaders
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-26 23:55:41 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-26 23:55:41 +0000
commit6cbaad896c8177d255aa90d1de6aeac963490312 (patch)
tree2b0babbb3c3a555e44dd54f8ec8446673cc54886 /src/render/shaders
parent9247f88d0c9905dec186ea607bee0cf6c00fdb44 (diff)
use highp for pixcoord to fix nvidia border issues
Diffstat (limited to 'src/render/shaders')
-rw-r--r--src/render/shaders/Border.hpp3
1 files changed, 2 insertions, 1 deletions
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;