2013-11-30 16:33:06 -05:00
|
|
|
uniform sampler2D tex;
|
|
|
|
uniform vec2 res;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec2 coords = gl_FragCoord.xy / res;
|
|
|
|
|
|
|
|
vec4 col = texture2D(tex, coords);
|
|
|
|
float alpha = col.a;
|
|
|
|
|
|
|
|
if (alpha < 0.04) discard;
|
2013-12-10 20:16:40 -05:00
|
|
|
|
2013-11-30 16:33:06 -05:00
|
|
|
col *= vec4(vec3(4.0), 1.5);
|
2013-12-10 20:16:40 -05:00
|
|
|
col.a *= 0.6;
|
|
|
|
|
2013-11-30 16:33:06 -05:00
|
|
|
gl_FragColor = col;
|
|
|
|
}
|