Pixeltools Hueshift Dctl Pluginzip

WRITE_IMAGE((float4)(out_rgb.x, out_rgb.y, out_rgb.z, a)); ) Filename: PixelTools_HueShift.dctl.json Flightlifexxx - Manyvids - Remy Lacroix - Part ... Link

( float4 in = READ_IMAGE(input_image); float r = in.x; float g = in.y; float b = in.z; float a = in.w; Movielinkbdcommeg 2 The Trench 2023dual Au Updated File

// Orange (Center 1/12 = 0.0833) float d_o = hue_dist(h, 0.0833f); if (d_o < tolerance) shift += orange_range * (1.0f - d_o/tolerance);

// Magenta (Center 5/6 = 0.8333) float d_m = hue_dist(h, 0.8333f); if (d_m < tolerance) shift += magenta_range * (1.0f - d_m/tolerance);

// Helper: Convert RGB to Hue (0.0 to 1.0) DEFINE_FUNC(float, get_hue, (float r, float g, float b)) ( float max_c = max(max(r, g), b); float min_c = min(min(r, g), b); float delta = max_c - min_c; float h = 0.0f; if (delta > 0.00001f) { if (max_c == r) { h = (g - b) / delta; if (h < 0.0f) h += 6.0f; } else if (max_c == g) { h = 2.0f + (b - r) / delta; } else { h = 4.0f + (r - g) / delta; } h /= 6.0f; } return h; )

// Convert back to RGB float3 out_rgb = hsv_to_rgb(h, s, v);

// PixelTools_HueShift.dctl // A simple tool to shift hues globally or by range.

// Apply calculated shift h += shift;