ISF - Color - Sepia Tone
void main() {
vec4 color = IMG_THIS_PIXEL(inputImage);
vec4 sepia1 = vec4( 0.2, 0.05, 0.0, 1.0 );
vec4 sepia2 = vec4( 1.0, 0.9, 0.5, 1.0 );
float sepiaMix = dot(vec3(0.3, 0.59, 0.11), color.rgb);
color = mix(color, vec4(sepiaMix), 0.5);
vec4 sepia = mix(sepia1, sepia2, sepiaMix);
sepia = vec4( min( vec3( 1.0 ), sepia.rgb ), color.a );
float bright = 0.05;
sepia = sepia + vec4(bright, bright, bright, 0.0);
sepia.rgb = ((vec3(2.0) * (sepia.rgb - vec3(0.5))) * vec3(contrast) / vec3(2.0)) + vec3(0.5);
gl_FragColor = sepia;
}