2013-11-30 16:33:06 -05:00
|
|
|
uniform sampler2D tex;
|
2014-01-17 12:13:57 -05:00
|
|
|
|
|
|
|
in vec2 uv;
|
2014-01-19 13:31:00 -05:00
|
|
|
out vec4 FragColor;
|
2013-11-30 16:33:06 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2014-01-17 12:13:57 -05:00
|
|
|
vec2 coords = uv;
|
2013-11-30 16:33:06 -05:00
|
|
|
|
2014-01-19 12:53:35 -05:00
|
|
|
vec4 col = texture(tex, coords);
|
2013-11-30 16:33:06 -05:00
|
|
|
float alpha = col.a;
|
|
|
|
|
2014-01-18 14:11:18 -05:00
|
|
|
if (alpha < 0.04 || length(col.xyz) < 0.2) 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;
|
|
|
|
|
2014-01-19 13:31:00 -05:00
|
|
|
FragColor = col;
|
2013-11-30 16:33:06 -05:00
|
|
|
}
|