diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-04-12 08:49:18 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-04-12 08:54:32 +0300 |
commit | d683ea4862130b448077de08b2dcebc20418784e (patch) | |
tree | c6cbf5011dbf4d8a95122a362ea28971db2b9939 /source/blender/editors/sculpt_paint/sculpt_intern.h | |
parent | 2451d7d57ed354aa3721153af417f06b2cebeec0 (diff) |
Fix T97098: Color filter sharpening artifacts.
Color filter sharpening now clamps the output.
The sharpening delta is now calculated from the
difference of two levels of vertex averaging instead
of one smooth iteration and the base color.
TODO: Sharpen in a different color space;
SRGB-linear has saturation artifacts. I
tried HSL but it had value artifacts. I'd
like to try LAB but we don't seem to have
conversion functions for it (at least as far
as I could see).
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_intern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index 38905b50c59..bd18810acf8 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -439,6 +439,9 @@ typedef struct FilterCache { /* Auto-masking. */ AutomaskingCache *automasking; + + /* Pre-smoothed colors used by sharpening. Colors are HSL.*/ + float (*pre_smoothed_color)[4]; } FilterCache; /** |