sepia.glsl 339 B

1234567891011121314
  1. void main()
  2. {
  3. float4 c0 = Sample();
  4. // Same coefficients as grayscale2 at this point
  5. float avg = (0.222 * c0.r) + (0.707 * c0.g) + (0.071 * c0.b);
  6. float red=avg;
  7. // Not sure about these coefficients, they just seem to produce the proper yellow
  8. float green=avg*.75;
  9. float blue=avg*.5;
  10. SetOutput(float4(red, green, blue, c0.a));
  11. }