projects
/
laserbrain_demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6b323f8e4dfa741de31f74917aa250161259623c
[laserbrain_demo]
/
post_gamma.p.glsl
1
uniform sampler2D tex;
2
3
void main()
4
{
5
const vec3 invgamma3 = vec3(1.0 / 2.2);
6
vec3 texel = texture2D(tex, gl_TexCoord[0].st).xyz;
7
8
gl_FragColor.rgb = pow(texel, invgamma3);
9
gl_FragColor.a = 1.0;
10
}