From 83d5a919e26affaa4e81258e629fe048215f6a04 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Tue, 27 Sep 2016 21:25:31 +0200 Subject: [PATCH] modernize basic shader a tiny bit "varying" is redundant here, all GS inputs & outputs vary. Any code that uses this will be GLSL 1.3 or newer. --- source/blender/gpu/shaders/gpu_shader_basic_geom.glsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/gpu/shaders/gpu_shader_basic_geom.glsl b/source/blender/gpu/shaders/gpu_shader_basic_geom.glsl index a88681a5fd3..13f05b340bf 100644 --- a/source/blender/gpu/shaders/gpu_shader_basic_geom.glsl +++ b/source/blender/gpu/shaders/gpu_shader_basic_geom.glsl @@ -14,9 +14,9 @@ layout(line_strip, max_vertices = 10) out; layout(triangle_strip, max_vertices = 6) out; #endif -varying out float t; -varying in vec4 varying_vertex_color_line[]; -varying out vec4 varying_vertex_color; +out float t; +in vec4 varying_vertex_color_line[]; +out vec4 varying_vertex_color; uniform ivec4 viewport; uniform float line_width;