Blender Git Commit Log

Git Commits -> Revision fb03f50

Revision fb03f50 by Brecht Van Lommel (master)
June 7, 2019, 18:51 (GMT)
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.

Commit Details:

Full Hash: fb03f50e069d66c99391e4796e1b9eaa2b4cc133
Parent Commit: d05f27c
Lines Changed: +221, -78

19 Modified Paths:

/source/blender/draw/engines/gpencil/gpencil_draw_utils.c (+6, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_fill_frag.glsl (+10, -3) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_point_frag.glsl (+8, -5) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_stroke_frag.glsl (+9, -3) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_common_lib.glsl (+6, -3) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_forward_transparent_accum_frag.glsl (+2, -1) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_frag.glsl (+2, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+2, -0) (Diff)
/source/blender/draw/modes/object_mode.c (+5, -2) (Diff)
/source/blender/draw/modes/paint_texture_mode.c (+7, -2) (Diff)
/source/blender/draw/modes/shaders/object_empty_image_frag.glsl (+7, -2) (Diff)
/source/blender/draw/modes/shaders/paint_texture_frag.glsl (+10, -3) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+37, -38) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+5, -0) (Diff)
/source/blender/imbuf/IMB_colormanagement.h (+10, -2) (Diff)
/source/blender/imbuf/intern/colormanagement.c (+56, -3) (Diff)
/source/blender/makesrna/intern/rna_image_api.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_environment.c (+14, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_image.c (+24, -8) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021