From fb03f50e069d66c99391e4796e1b9eaa2b4cc133 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 7 Jun 2019 17:49:58 +0200 Subject: Fix T64625: Eevee image textures with alpha have dark edges Now texture storage of images is defined by the alpha mode of the image. The downside of this is that there can be artifacts near alpha edges where pixels with zero alpha bleed in. It also adds more code complexity since image textures are no longer all stored the same way. This changes allows us to keep using sRGB texture formats, which have edge darkening when stored with premultiplied alpha. Game engines seems to generally do the same thing, and we want to be compatible with them. --- source/blender/makesrna/intern/rna_image_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_image_api.c') diff --git a/source/blender/makesrna/intern/rna_image_api.c b/source/blender/makesrna/intern/rna_image_api.c index a26b4c6b6e4..933dae70457 100644 --- a/source/blender/makesrna/intern/rna_image_api.c +++ b/source/blender/makesrna/intern/rna_image_api.c @@ -342,7 +342,7 @@ void RNA_api_image(StructRNA *srna) func, "Load the image into an OpenGL texture. On success, image.bindcode will contain the " "OpenGL texture bindcode. Colors read from the texture will be in scene linear color space " - "and have premultiplied alpha."); + "and have premultiplied or straight alpha matching the image alpha mode"); RNA_def_function_flag(func, FUNC_USE_REPORTS); RNA_def_int( func, "frame", 0, 0, INT_MAX, "Frame", "Frame of image sequence or movie", 0, INT_MAX); -- cgit v1.2.3