ISF - Color - Channel Slide
void main() {
vec4 srcPixel = IMG_THIS_PIXEL(inputImage);
if (reflection == true) {
vec4 outPixel;
outPixel.rgb = srcPixel.rgb - slideAmt.rgb;
outPixel.a = srcPixel.a + slideAmt.a;
gl_FragColor.x = (outPixel.x<0.0) ? outPixel.x+1.0 : outPixel.x;
gl_FragColor.y = (outPixel.y<0.0) ? outPixel.y+1.0 : outPixel.y;
gl_FragColor.z = (outPixel.z<0.0) ? outPixel.z+1.0 : outPixel.z;
gl_FragColor.a = (outPixel.a>1.0) ? outPixel.a-1.0 : outPixel.a;
}
else {
vec4 outPixel = srcPixel+slideAmt;
gl_FragColor.x = (outPixel.x>1.0) ? outPixel.x-1.0 : outPixel.x;
gl_FragColor.y = (outPixel.y>1.0) ? outPixel.y-1.0 : outPixel.y;
gl_FragColor.z = (outPixel.z>1.0) ? outPixel.z-1.0 : outPixel.z;
gl_FragColor.a = (outPixel.a>1.0) ? outPixel.a-1.0 : outPixel.a;
}
}