dbf-udg

diff sdr/dither.p.glsl @ 2:c45c7a1f7d9d

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 09 Jan 2013 02:37:05 +0200
parents 2d27bfd21fc5
children 403ec1be3a1a
line diff
     1.1 --- a/sdr/dither.p.glsl	Tue Jan 08 14:19:06 2013 +0200
     1.2 +++ b/sdr/dither.p.glsl	Wed Jan 09 02:37:05 2013 +0200
     1.3 @@ -7,6 +7,8 @@
     1.4  
     1.5  	vec4 pixel = texture2D(framebuf, gl_TexCoord[0].xy);
     1.6  	float lum = dot(pixel.xyz, vec3(0.2126, 0.7152, 0.0722));
     1.7 +	// gamma correct luminance?
     1.8 +	//lum = pow(lum, 1.0 / 2.2);
     1.9  	float coord_shift = floor(lum * levels) / levels;
    1.10  
    1.11  	vec2 dsz2 = vec2(float(dither_size), float(dither_size));