22 "Hue rotation offset, from 0 (-180°) to 1 (+180°). Note that 0 and 1 have the same "
29 "Value of 0 removes color from the image, making it black-and-white. "
30 "A value greater than 1.0 increases saturation");
37 "Value shift. 0 makes the color black, 1 keeps it the same, and higher values make it "
44 .description(
"Amount of influence the node exerts on the image");
46 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
47 .description(
"Color input on which HSV color transformation will be applied");
63 NodeItem hue = get_input_value(
"Hue", NodeItem::Type::Float);
64 NodeItem saturation = get_input_value(
"Saturation", NodeItem::Type::Float);
65 NodeItem value = get_input_value(
"Value", NodeItem::Type::Float);
66 NodeItem fac = get_input_value(
"Fac", NodeItem::Type::Float);
67 NodeItem
color = get_input_value(
"Color", NodeItem::Type::Color3);
70 hue = hue - val(0.5f);
72 NodeItem combine = create_node(
73 "combine3", NodeItem::Type::Vector3, {{
"in1", hue}, {
"in2", saturation}, {
"in3", value}});
75 NodeItem hsv = create_node(
76 "hsvadjust", NodeItem::Type::Color3, {{
"in", color}, {
"amount", combine}});
78 return fac.mix(color, hsv);