gpuray_glsl

diff sdr/postsdr.glsl @ 0:f234630e38ff

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 09 Nov 2014 13:03:36 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/postsdr.glsl	Sun Nov 09 13:03:36 2014 +0200
     1.3 @@ -0,0 +1,9 @@
     1.4 +uniform sampler2D fb;
     1.5 +
     1.6 +void main()
     1.7 +{
     1.8 +	vec4 pixel = texture2D(fb, gl_TexCoord[0].st);
     1.9 +
    1.10 +	gl_FragColor.rgb = pow(pixel.rgb, vec3(1.0 / 2.2));
    1.11 +	gl_FragColor.a = pixel.a;
    1.12 +}