stk-code_catmod/data/shaders/glow.frag

20 lines
277 B
GLSL
Raw Normal View History

#version 130
uniform sampler2D tex;
2014-01-17 12:13:57 -05:00
in vec2 uv;
void main()
{
2014-01-17 12:13:57 -05:00
vec2 coords = uv;
vec4 col = texture2D(tex, coords);
float alpha = col.a;
if (alpha < 0.04 || length(col.xyz) < 0.2) discard;
col *= vec4(vec3(4.0), 1.5);
col.a *= 0.6;
gl_FragColor = col;
}