Fix T80746: Image blur in compositor creates halo from alpha
When applying alpha, an alpha of 0.0 was always ignored, creating the Halo
This commit is contained in:
parent
49dbf1324d
commit
78ea6302f1
Notes:
blender-bot
2023-02-14 10:29:32 +01:00
Referenced by issue #81026, Image Editor: Alpha (like Bloom) not showing properly again Referenced by issue #80746, Image blur in compositor creates halo from alpha
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue