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:
parent
23d7ae1843
commit
8619e09107
|
@ -1,6 +1,6 @@
|
|||
|
||||
#if __VERSION__ == 120
|
||||
varying vec4 finalColor;
|
||||
noperspective varying vec4 finalColor;
|
||||
#define fragColor gl_FragColor
|
||||
#else
|
||||
noperspective in vec4 finalColor;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
attribute vec2 pos;
|
||||
attribute vec4 color;
|
||||
|
||||
varying vec4 finalColor;
|
||||
noperspective varying vec4 finalColor;
|
||||
#else
|
||||
in vec2 pos;
|
||||
in vec4 color;
|
||||
|
|
Loading…
Reference in New Issue