diff options
author | Antonioya <blendergit@gmail.com> | 2019-05-30 13:05:25 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-05-30 14:23:26 +0300 |
commit | 1cb74768c12b0cd668f88af4ad8fe1598a5d44e9 (patch) | |
tree | af7d36d5c5488c5758ddf627e595381e89ccf323 /source | |
parent | 9c00429ee77e1d390dc6736bdc675aa38a468c43 (diff) |
GPencil: Remove wrong premult in Blend shader
The process was doing two times the same and the alpha was totally wrong.
Related to T65279
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl | 8 |
1 files changed, 0 insertions, 8 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 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) { |