From 1cb74768c12b0cd668f88af4ad8fe1598a5d44e9 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Thu, 30 May 2019 12:05:25 +0200 Subject: GPencil: Remove wrong premult in Blend shader The process was doing two times the same and the alpha was totally wrong. Related to T65279 --- .../blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source') 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 d415ce53137..73aed062cf1 100644 --- a/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl +++ b/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl @@ -111,14 +111,6 @@ void main() vec4 mix_color = texelFetch(blendColor, uv, 0).rgba; float mix_depth = texelFetch(blendDepth, uv, 0).r; - /* premult alpha factor to remove double blend effects */ - if (stroke_color.a > 0) { - stroke_color = vec4(vec3(stroke_color.rgb / stroke_color.a), stroke_color.a); - } - if (mix_color.a > 0) { - mix_color = vec4(vec3(mix_color.rgb / mix_color.a), mix_color.a); - } - /* Normal mode */ if (mode == MODE_NORMAL) { if (stroke_color.a > 0) { -- cgit v1.2.3