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_line_dashed_uniform_color_vert.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_3D_line_dashed_uniform_color_vert.glsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_line_dashed_uniform_color_vert.glsl b/source/blender/gpu/shaders/gpu_shader_3D_line_dashed_uniform_color_vert.glsl
index 9328e0a13e9..aefa47275f5 100644
--- a/source/blender/gpu/shaders/gpu_shader_3D_line_dashed_uniform_color_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_3D_line_dashed_uniform_color_vert.glsl
@@ -6,13 +6,11 @@
* Dashed is performed in screen space.
*/
-#ifndef USE_GPU_SHADER_CREATE_INFO
-
uniform mat4 ModelViewProjectionMatrix;
-# ifdef USE_WORLD_CLIP_PLANES
+#ifdef USE_WORLD_CLIP_PLANES
uniform mat4 ModelMatrix;
-# endif
+#endif
uniform vec4 color;
uniform vec2 viewport_size;
@@ -24,7 +22,6 @@ flat out vec4 color_vert;
/* We leverage hardware interpolation to compute distance along the line. */
noperspective out vec2 stipple_pos; /* In screen space */
flat out vec2 stipple_start; /* In screen space */
-#endif
void main()
{