D14887: Fix artifacts in hue filter

The hue color filter now wraps correctly.  Fixes T97768.

Reviewed By: Julien Kaspar & Joseph Eagar
Differential Revision: https://developer.blender.org/D14887
Ref D14887
This commit is contained in:
Ramil Roosileht 2022-05-09 19:46:22 -07:00 committed by Joseph Eagar
parent 1c1e842879
commit 4bb90b8f4c
Notes: blender-bot 2023-02-14 09:03:55 +01:00
Referenced by issue #97768, Color Filter: Inverted Hue filter type is broken
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 44cf4b4bf74f22fff55941e39cebeacec68a5a80
Subproject commit fb1eac2ec80c0adee69990a5386b74a5bd4ca00c

@ -1 +1 @@
Subproject commit 599a8db33c45c2ad94f8d482f01b281252799770
Subproject commit 67e43f9083b79b33f5aa6ac4d1630946804d9534

View File

@ -124,8 +124,8 @@ static void color_filter_task_cb(void *__restrict userdata,
}
case COLOR_FILTER_HUE:
rgb_to_hsv_v(orig_color, hsv_color);
hue = hsv_color[0] + fade;
hsv_color[0] = fabs((hsv_color[0] + fade) - hue);
hue = hsv_color[0];
hsv_color[0] = fmod((hsv_color[0] + fabs(fade)) - hue,1);
hsv_to_rgb_v(hsv_color, final_color);
break;
case COLOR_FILTER_SATURATION: