16 hsv[0] =
fract(hsv[0] + hue + 0.5f);
17 hsv[1] =
clamp(hsv[1] * sat, 0.0f, 1.0f);
18 hsv[2] = hsv[2] * value;
22 outcol =
mix(col, outcol, fac);
void rgb_to_hsv(float4 rgb, float4 &outcol)
void hsv_to_rgb(float4 hsv, float4 &outcol)
constexpr T clamp(T, U, U) RET
void hue_sat(float hue, float sat, float value, float fac, float4 col, float4 &outcol)