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:
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl b/source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl
index 627e91af4d6..9cdaae7c114 100644
--- a/source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl
@@ -41,26 +41,26 @@ vec4 clip_line_point_homogeneous_space(vec4 p, vec4 q)
void do_vertex(const int i, vec4 pos, vec2 ofs)
{
#if defined(UNIFORM)
- finalColor = color;
+ geom_out.finalColor = color;
#elif defined(FLAT)
/* WATCH: Assuming last provoking vertex. */
- finalColor = finalColor_g[1];
+ geom_out.finalColor = geom_in[1].finalColor_g;
#elif defined(SMOOTH)
- finalColor = finalColor_g[i];
+ geom_out.finalColor = geom_in[i].finalColor_g;
#endif
#ifdef CLIP
- clip = clip_g[i];
+ geom_out.clip = geom_in[i].clip_g;
#endif
- smoothline = (lineWidth + SMOOTH_WIDTH * float(lineSmooth)) * 0.5;
+ geom_out.smoothline = (lineWidth + SMOOTH_WIDTH * float(lineSmooth)) * 0.5;
gl_Position = pos;
gl_Position.xy += ofs * pos.w;
EmitVertex();
- smoothline = -(lineWidth + SMOOTH_WIDTH * float(lineSmooth)) * 0.5;
+ geom_out.smoothline = -(lineWidth + SMOOTH_WIDTH * float(lineSmooth)) * 0.5;
gl_Position = pos;
gl_Position.xy -= ofs * pos.w;
EmitVertex();