2013-11-30 16:33:06 -05:00
|
|
|
uniform float power;
|
|
|
|
uniform sampler2D tex;
|
|
|
|
|
2014-01-19 13:31:00 -05:00
|
|
|
out vec4 FragColor;
|
|
|
|
|
2013-11-30 16:33:06 -05:00
|
|
|
void main()
|
|
|
|
{
|
2014-01-19 12:53:35 -05:00
|
|
|
vec4 col = texture(tex, gl_TexCoord[0].xy);
|
2013-11-30 16:33:06 -05:00
|
|
|
if (col.a < 0.5)
|
|
|
|
discard;
|
|
|
|
|
2014-01-19 13:31:00 -05:00
|
|
|
FragColor = vec4(col.xyz, power);
|
2013-11-30 16:33:06 -05:00
|
|
|
}
|