fa068d7810
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14919 178a84e3-b1eb-0310-8ba1-8eac791a3b58
19 lines
276 B
GLSL
19 lines
276 B
GLSL
#version 130
|
|
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;
|
|
|
|
col *= vec4(vec3(4.0), 1.5);
|
|
col.a *= 0.6;
|
|
|
|
gl_FragColor = col;
|
|
}
|