plug-ins: Use pre-multiplied alpha for Lighting Effect's...

...bump map settings.
Currently, the Lighting Effect's bump map options uses
the RGB values of transparent pixels as part of its map.
As the Bump map filter does not do this, this patch tries
to make it consistent by using associated alpha for the
bump map Babl format to fix this.
This commit is contained in:
Alx Sa 2024-08-10 19:20:08 +00:00
parent 9c4425f0f0
commit 979a3c3c32
1 changed files with 2 additions and 2 deletions

View File

@ -391,9 +391,9 @@ bumpmap_setup (GimpDrawable *bumpmap)
}
if (gimp_drawable_is_rgb (bumpmap))
bump_format = babl_format ("R'G'B' u8");
bump_format = babl_format ("R'aG'aB'aA u8");
else
bump_format = babl_format ("Y' u8"); /* FIXME */
bump_format = babl_format ("Y'aA u8"); /* FIXME */
}
}