gpuray_glsl

annotate sdr/postsdr.glsl @ 1:92695e89164b

vc project
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 09 Nov 2014 14:30:37 +0200
parents
children
rev   line source
nuclear@0 1 uniform sampler2D fb;
nuclear@0 2
nuclear@0 3 void main()
nuclear@0 4 {
nuclear@0 5 vec4 pixel = texture2D(fb, gl_TexCoord[0].st);
nuclear@0 6
nuclear@0 7 gl_FragColor.rgb = pow(pixel.rgb, vec3(1.0 / 2.2));
nuclear@0 8 gl_FragColor.a = pixel.a;
nuclear@0 9 }