// Green (Center 1/3 = 0.3333) float d_g = hue_dist(h, 0.3333f); if (d_g < tolerance) shift += green_range * (1.0f - d_g/tolerance);
( float4 in = READ_IMAGE(input_image); float r = in.x; float g = in.y; float b = in.z; float a = in.w;
// Green (Center 1/3 = 0.3333) float d_g = hue_dist(h, 0.3333f); if (d_g < tolerance) shift += green_range * (1.0f - d_g/tolerance);
( float4 in = READ_IMAGE(input_image); float r = in.x; float g = in.y; float b = in.z; float a = in.w;