Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2020-09-15 15:18:35 +0300
committerJeroen Bakker <jeroen@blender.org>2020-09-15 15:18:35 +0300
commit78ea6302f1c45992dd1166cc3978a2ba4201d638 (patch)
tree3593c650e9cbd88ad256634b2b4e01a02bf295c4
parent49dbf1324dccd014f4f65da26e29402ec299ba72 (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
-rw-r--r--source/blender/draw/engines/image/shaders/engine_image_frag.glsl2
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;
}
}