diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-01 09:42:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-01 09:42:16 +0300 |
commit | b4998548ab1edc513a47038872b3282efe6dfef9 (patch) | |
tree | 4244014dcb1bbbccd3fa6d136731c677475b62d5 /source/blender/gpu/shaders/gpu_shader_2D_line_dashed_geom.glsl | |
parent | ab6e23ffbbcdadaba305008bcaeae8516fd98c2b (diff) |
Cleanup: use '_len' suffix for line stipple
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_2D_line_dashed_geom.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_2D_line_dashed_geom.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_line_dashed_geom.glsl b/source/blender/gpu/shaders/gpu_shader_2D_line_dashed_geom.glsl index db4bdf0a9f0..8fa19f94b39 100644 --- a/source/blender/gpu/shaders/gpu_shader_2D_line_dashed_geom.glsl +++ b/source/blender/gpu/shaders/gpu_shader_2D_line_dashed_geom.glsl @@ -12,7 +12,7 @@ uniform vec2 viewport_size; /* Uniforms from fragment shader, used here to optimize out useless computation in case of solid line. */ uniform float dash_factor; /* if > 1.0, solid line. */ -uniform int num_colors; /* Enabled if > 0, 1 for solid line. */ +uniform int colors_len; /* Enabled if > 0, 1 for solid line. */ layout(lines) in; @@ -34,7 +34,7 @@ void main() gl_Position = v2; color_geom = color_vert[1]; - if ((num_colors == 1) || (dash_factor >= 1.0f)) { + if ((colors_len == 1) || (dash_factor >= 1.0f)) { /* Solid line, optimize out distance computation! */ distance_along_line = 0.0f; } |