diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_3D_polyline_frag.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_3D_polyline_frag.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_polyline_frag.glsl b/source/blender/gpu/shaders/gpu_shader_3D_polyline_frag.glsl index 8687763f4c1..648351e1059 100644 --- a/source/blender/gpu/shaders/gpu_shader_3D_polyline_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_3D_polyline_frag.glsl @@ -16,13 +16,13 @@ out vec4 fragColor; void main() { #ifdef CLIP - if (clip < 0.0) { + if (geom_out.clip < 0.0) { discard; } #endif - fragColor = finalColor; + fragColor = geom_out.finalColor; if (lineSmooth) { - fragColor.a *= clamp((lineWidth + SMOOTH_WIDTH) * 0.5 - abs(smoothline), 0.0, 1.0); + fragColor.a *= clamp((lineWidth + SMOOTH_WIDTH) * 0.5 - abs(geom_out.smoothline), 0.0, 1.0); } fragColor = blender_srgb_to_framebuffer_space(fragColor); } |