25 const float value = *it.in(0);
26 const float inverted_value = 1.0f - value;
27 const float *color = it.in(1);
30 it.out[0] = (1.0f - color[0]) * value + color[0] * inverted_value;
31 it.out[1] = (1.0f - color[1]) * value + color[1] * inverted_value;
32 it.out[2] = (1.0f - color[2]) * value + color[2] * inverted_value;
39 it.out[3] = (1.0f - color[3]) * value + color[3] * inverted_value;