diff options
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl | 5 |
1 files 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 { |