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.glsl11
1 files changed, 6 insertions, 5 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 70026398937..627e91af4d6 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,17 +7,18 @@ 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