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 17437fb..7804f85 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);