diff options
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.glsl | 11 |
1 files changed, 5 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..70026398937 100644 --- a/source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl +++ b/source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl @@ -1,4 +1,4 @@ -#ifndef USE_GPU_SHADER_CREATE_INFO + layout(lines) in; layout(triangle_strip, max_vertices = 4) out; @@ -7,18 +7,17 @@ uniform vec2 viewportSize; uniform float lineWidth; uniform bool lineSmooth = true; -# if !defined(UNIFORM) +#if !defined(UNIFORM) in vec4 finalColor_g[]; -# endif +#endif -# ifdef CLIP +#ifdef CLIP in float clip_g[]; out float clip; -# endif +#endif out vec4 finalColor; noperspective out float smoothline; -#endif #define SMOOTH_WIDTH 1.0 |