Blender Git Loki
Git Commits -> Revision fe6c45e
Revision fe6c45e by Brecht Van Lommel (master) April 28, 2013, 11:55 (GMT) |
Fix #34233: bad alpha blending for 3D texture painting. Same changes as the previous fix for 2D image painting were done, and also: * For brushes that do masking (keeping the max contribution to a pixel limited), the alpha from textures is now part of the mask. In many cases the logic worked out the same and where it didn't it used to cause artifacts. * Color interpolation for smear and soften tools now happens in premultipied space, to avoid bleeding of RGB colors from zero alpha areas. * Fix a few cases where byte <=> float conversion was not doing the proper straight <=> premul conversion. * Replace some float division by constants with multiplications, is faster. Note: float texture painting seems to have some issues updating the OpenGL texture, but issue was already there before this commit. |
Commit Details:
Full Hash: fe6c45e36e4fae22bbddbf3e51c7d1fca03c3c1a
SVN Revision: 56359
Parent Commit: 753fe9f
Lines Changed: +196, -442
5 Modified Paths:
/source/blender/blenlib/intern/math_color.c (+10, -10) (Diff)
/source/blender/blenlib/intern/math_color_inline.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+155, -191) (Diff)
/source/blender/imbuf/IMB_imbuf.h (+3, -3) (Diff)
/source/blender/imbuf/intern/rectop.c (+26, -236) (Diff)
/source/blender/blenlib/intern/math_color_inline.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+155, -191) (Diff)
/source/blender/imbuf/IMB_imbuf.h (+3, -3) (Diff)
/source/blender/imbuf/intern/rectop.c (+26, -236) (Diff)