From b912dbaa253ed1f091fd7201efd366c6f3154257 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 8 Jan 2014 22:30:22 +0100 Subject: [PATCH] Fix edge errors in the sRGB comment; I had used subs() on the wrong expression. --- gamma_expansion_effect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamma_expansion_effect.cpp b/gamma_expansion_effect.cpp index 9025b0b..5f9423f 100644 --- a/gamma_expansion_effect.cpp +++ b/gamma_expansion_effect.cpp @@ -72,8 +72,8 @@ void GammaExpansionEffect::set_gl_state(GLuint glsl_program_num, const std::stri // From the Wikipedia article on sRGB; ɑ (called a+1 there) = 1.055, // β = 0.04045, ɣ = 2.4. // maxerror = 0.000094 - // error at beta = 0.000094 - // error at 1.0 = 0.000094 + // error at beta = 0.000012 + // error at 1.0 = 0.000012 set_uniform_float(glsl_program_num, prefix, "linear_scale", 1.0 / 12.92); set_uniform_float(glsl_program_num, prefix, "c0", 0.001324469581); set_uniform_float(glsl_program_num, prefix, "c1", 0.02227416690); -- 2.39.2