16 "Hue rotation offset, from 0 (-180°) to 1 (+180°). Note that 0 and 1 have the same result");
22 "Value of 0 removes color from the image, making it black-and-white. "
23 "A value greater than 1.0 increases saturation");
30 "Value shift. 0 makes the color black, 1 keeps it the same, and higher values make it "
37 .description(
"Amount of influence the node exerts on the image");
39 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
40 .description(
"Color input on which HSV color transformation will be applied");
56 NodeItem hue = get_input_value(
"Hue", NodeItem::Type::Float);
57 NodeItem saturation = get_input_value(
"Saturation", NodeItem::Type::Float);
58 NodeItem value = get_input_value(
"Value", NodeItem::Type::Float);
59 NodeItem fac = get_input_value(
"Fac", NodeItem::Type::Float);
60 NodeItem color = get_input_value(
"Color", NodeItem::Type::Color3);
63 hue = hue - val(0.5f);
65 NodeItem combine = create_node(
66 "combine3", NodeItem::Type::Vector3, {{
"in1", hue}, {
"in2", saturation}, {
"in3", value}});
68 NodeItem hsv = create_node(
69 "hsvadjust", NodeItem::Type::Color3, {{
"in", color}, {
"amount", combine}});
71 return fac.mix(color, hsv);
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)