From 41acdac2de5813c4d6b75e12581903134a0fd078 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 13 Jun 2019 12:37:01 +1000 Subject: Cleanup: clang-format --- source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl index 658c708ee19..009f58b8789 100644 --- a/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl +++ b/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl @@ -115,12 +115,11 @@ void main() if (mode == MODE_REGULAR) { if (stroke_color.a > 0) { if (mix_color.a > 0) { - /* premult */ + /* premult */ stroke_color = vec4(vec3(stroke_color.rgb / stroke_color.a), stroke_color.a); mix_color = vec4(vec3(mix_color.rgb / mix_color.a), mix_color.a); - FragColor = vec4(mix(stroke_color.rgb, mix_color.rgb, mix_color.a), - stroke_color.a); + FragColor = vec4(mix(stroke_color.rgb, mix_color.rgb, mix_color.a), stroke_color.a); gl_FragDepth = mix_depth; } else { -- cgit v1.2.3