OpenGL: tweak legacy 2D shader

EXT_gpu_shader4 lets us say “noperspective” in GLSL #version 120 just
like in later GLSL.

Mac shader now matches modern GLSL available on other platforms.
This commit is contained in:
Mike Erwin 2016-08-15 21:44:44 -04:00
parent 23d7ae1843
commit 8619e09107
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#if __VERSION__ == 120
varying vec4 finalColor;
noperspective varying vec4 finalColor;
#define fragColor gl_FragColor
#else
noperspective in vec4 finalColor;

View File

@ -3,7 +3,7 @@
attribute vec2 pos;
attribute vec4 color;
varying vec4 finalColor;
noperspective varying vec4 finalColor;
#else
in vec2 pos;
in vec4 color;