Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-08-16 04:44:44 +0300
committerMike Erwin <significant.bit@gmail.com>2016-08-16 04:44:44 +0300
commit8619e091072c57a2b1c4d471c3c7823063a2d848 (patch)
tree27c2eb747a9971a3262d45b5e0d55ea26c1ec7cf /source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl
parent23d7ae184397dc6fa94af3a8d93ffc9d0d4b0393 (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/gpu_shader_2D_smooth_color_vert.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_smooth_color_vert.glsl2
1 files changed, 1 insertions, 1 deletions
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;