istereo
view sdr/text.p.glsl @ 36:834503dcb486
fixed the rotated gui problem
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 09 Sep 2011 10:25:03 +0300 |
parents | fb4c9641059f |
children |
line source
1 #ifdef GL_ES
2 precision mediump float;
3 #endif
5 uniform sampler2D tex;
7 varying vec4 color;
8 varying vec3 vpos;
9 varying vec2 tc;
11 void main()
12 {
13 vec4 tcol = texture2D(tex, tc);
15 float fog = exp(-(0.2 * -vpos.z));
17 float alpha = fog * color.a;
19 vec4 color = vec4(1.0, 0.3, 0.2, tcol.x * alpha);
21 gl_FragColor = color;
22 }