From 1d8902c631da44756d80db1bb303dba3aab19dea Mon Sep 17 00:00:00 2001 From: Arisotura Date: Tue, 25 Jun 2019 13:09:06 +0200 Subject: remove stupid hack that caused more problems than it fixed --- src/GPU3D_OpenGL_shaders.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GPU3D_OpenGL_shaders.h b/src/GPU3D_OpenGL_shaders.h index afe7518..2545ee0 100644 --- a/src/GPU3D_OpenGL_shaders.h +++ b/src/GPU3D_OpenGL_shaders.h @@ -656,7 +656,7 @@ void main() int zshift = (attr >> 16) & 0x1F; vec4 fpos; - fpos.xy = (((vec2(vPosition.xy) + 0.5) * 2.0) / uScreenSize) - 1.0; + fpos.xy = (((vec2(vPosition.xy) ) * 2.0) / uScreenSize) - 1.0; fpos.z = (float(vPosition.z << zshift) / 8388608.0) - 1.0; fpos.w = float(vPosition.w) / 65536.0f; fpos.xyz *= fpos.w; @@ -679,7 +679,7 @@ void main() int zshift = (attr >> 16) & 0x1F; vec4 fpos; - fpos.xy = (((vec2(vPosition.xy) + 0.5) * 2.0) / uScreenSize) - 1.0; + fpos.xy = (((vec2(vPosition.xy) ) * 2.0) / uScreenSize) - 1.0; fZ = float(vPosition.z << zshift) / 16777216.0; fpos.w = float(vPosition.w) / 65536.0f; fpos.xy *= fpos.w; -- cgit v1.2.3