]> git.sesse.net Git - movit/commitdiff
Slightly clearer comments for the custom uniforms in LGG.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 17:24:21 +0000 (19:24 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 17:24:21 +0000 (19:24 +0200)
lift_gamma_gain_effect.glsl

index 17437fb246e717f985671d4970ce7d1b404056d0..7804f85a57e8f85621f417d09e9463ee6bd36596 100644 (file)
@@ -6,7 +6,8 @@
 // operation.
 
 // These are calculated in the host code to save some arithmetic.
-uniform vec3 PREFIX(gain_pow_inv_gamma), PREFIX(inv_gamma_22);
+uniform vec3 PREFIX(gain_pow_inv_gamma);  // gain^(1/gamma).
+uniform vec3 PREFIX(inv_gamma_22);  // 2.2 / gamma.
 
 vec4 FUNCNAME(vec2 tc) {
        vec4 x = LAST_INPUT(tc);