Skip to content

Commit

Permalink
remove stupid hack that caused more problems than it fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Jun 25, 2019
1 parent 58575f8 commit 1d8902c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GPU3D_OpenGL_shaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1d8902c

Please sign in to comment.