diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-29 21:35:50 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-29 21:35:50 +0400 |
commit | f135246c01e7e59c6718c781bbecbdb6eec5bc8b (patch) | |
tree | 3d36298242042e6be89922a75314dbc5e6d9afa1 /source/blender/windowmanager/intern/wm_operators.c | |
parent | 93e3107806466cc5de64d30298f843505e2b8f79 (diff) |
Fix #35140: texture paint would give 'noisy' strokes and poor results for strokes
crossing themselves.
Again an old issue, the code that was limiting the max contribution to a pixel by
doing a max() operation, which is very sensitive to the spacing of the stroke dabs.
Instead we now use a formula does adds up on repeated dabs but approaches the
maximum brush value slowly and never exceeds it, which gives nice smooth results.
mask_accum = mask_accum + (sqrt(brush_max) - mask_accum) * sqrt(brush_max) * mask;
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
0 files changed, 0 insertions, 0 deletions