diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-09-15 15:18:35 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-09-15 15:18:35 +0300 |
commit | 78ea6302f1c45992dd1166cc3978a2ba4201d638 (patch) | |
tree | 3593c650e9cbd88ad256634b2b4e01a02bf295c4 /source/blender/draw/engines/image/shaders | |
parent | 49dbf1324dccd014f4f65da26e29402ec299ba72 (diff) |
Fix T80746: Image blur in compositor creates halo from alpha
When applying alpha, an alpha of 0.0 was always ignored, creating the
Halo
Diffstat (limited to 'source/blender/draw/engines/image/shaders')
-rw-r--r-- | source/blender/draw/engines/image/shaders/engine_image_frag.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/image/shaders/engine_image_frag.glsl b/source/blender/draw/engines/image/shaders/engine_image_frag.glsl index d4eebb37ccb..f6a3e1affb9 100644 --- a/source/blender/draw/engines/image/shaders/engine_image_frag.glsl +++ b/source/blender/draw/engines/image/shaders/engine_image_frag.glsl @@ -82,7 +82,7 @@ void main() } if ((drawFlags & SIMA_DRAW_FLAG_APPLY_ALPHA) != 0) { - if (!imgPremultiplied && tex_color.a != 0.0 && tex_color.a != 1.0) { + if (!imgPremultiplied) { tex_color.rgb *= tex_color.a; } } |