Commit: 83d5a919e26affaa4e81258e629fe048215f6a04 Author: Mike Erwin Date: Tue Sep 27 21:25:31 2016 +0200 Branches: blender2.8 https://developer.blender.org/rB83d5a919e26affaa4e81258e629fe048215f6a04
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. =================================================================== M source/blender/gpu/shaders/gpu_shader_basic_geom.glsl =================================================================== diff --git a/source/blender/gpu/shaders/gpu_shader_basic_geom.glsl b/source/blender/gpu/shaders/gpu_shader_basic_geom.glsl index a88681a..13f05b3 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; _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
