aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-06-25 13:09:06 +0200
committerArisotura <thetotalworm@gmail.com>2019-06-25 13:09:06 +0200
commit1d8902c631da44756d80db1bb303dba3aab19dea (patch)
treef15b1e9aefd11c56f8fe89fe2fdfc2008a24ef26
parent58575f82b7453c16616333e043651a57ea713eb6 (diff)
remove stupid hack that caused more problems than it fixed
-rw-r--r--src/GPU3D_OpenGL_shaders.h4
1 files 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;