X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=lift_gamma_gain_effect.frag;fp=lift_gamma_gain_effect.frag;h=43766a6265218621888cbf7a11ffe862ddb0fbba;hp=80e04d0659d52969bc287ffa3d96dca4010e129d;hb=e8650c7b7814c5beef59059b8acac3e5e7b8ddc6;hpb=b77dca09201f3373c5466d695338e1e29406072b diff --git a/lift_gamma_gain_effect.frag b/lift_gamma_gain_effect.frag index 80e04d0..43766a6 100644 --- a/lift_gamma_gain_effect.frag +++ b/lift_gamma_gain_effect.frag @@ -1,10 +1,3 @@ -// Standard lift/gamma/gain color correction tools. -// -// We do lift in a nonlinear (gamma-2.2) space since that looks a lot better -// than in linear (blacks stay a lot closer to black). The two others don't -// really care; they are (sans some constants) commutative with the x^2.2 -// operation. - // These are calculated in the host code to save some arithmetic. uniform vec3 PREFIX(gain_pow_inv_gamma); // gain^(1/gamma). uniform vec3 PREFIX(inv_gamma_22); // 2.2 / gamma.