diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-16 04:44:44 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-16 04:44:44 +0300 |
commit | 8619e091072c57a2b1c4d471c3c7823063a2d848 (patch) | |
tree | 27c2eb747a9971a3262d45b5e0d55ea26c1ec7cf /source/blender/gpu/shaders | |
parent | 23d7ae184397dc6fa94af3a8d93ffc9d0d4b0393 (diff) |
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.
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_2D_smooth_color_frag.glsl | 2 | ||||
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_frag.glsl index 89d23e277cb..654439d1feb 100644 --- a/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_frag.glsl @@ -1,6 +1,6 @@ #if __VERSION__ == 120 - varying vec4 finalColor; + noperspective varying vec4 finalColor; #define fragColor gl_FragColor #else noperspective in vec4 finalColor; diff --git a/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl index 49bed5db430..01606622c78 100644 --- a/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl +++ b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl @@ -3,7 +3,7 @@ attribute vec2 pos; attribute vec4 color; - varying vec4 finalColor; + noperspective varying vec4 finalColor; #else in vec2 pos; in vec4 color; |