use highp for pixcoord to fix nvidia border issues

This commit is contained in:
vaxerski 2022-11-26 23:55:41 +00:00
parent 9247f88d0c
commit 6cbaad896c

View file

@ -52,7 +52,8 @@ vec4 getColorForCoord(vec2 normalizedCoord) {
void main() { void main() {
highp vec2 pixCoord = vec2(gl_FragCoord); highp vec2 pixCoord = vec2(gl_FragCoord);
vec2 originalPixCoord = fullSizeUntransformed * v_texcoord; highp vec2 originalPixCoord = v_texcoord;
originalPixCoord *= fullSizeUntransformed;
vec4 pixColor = getColorForCoord(v_texcoord); vec4 pixColor = getColorForCoord(v_texcoord);
pixColor[3] *= alpha; pixColor[3] *= alpha;