2014-02-12 16:16:10 -05:00
|
|
|
#version 330
|
2014-01-19 12:53:35 -05:00
|
|
|
uniform sampler2D tex;
|
2014-01-13 17:16:04 -05:00
|
|
|
|
|
|
|
in vec2 uv;
|
|
|
|
in vec4 col;
|
2014-01-19 13:31:00 -05:00
|
|
|
out vec4 FragColor;
|
2014-01-13 17:16:04 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2014-01-19 12:53:35 -05:00
|
|
|
vec4 res = texture(tex, uv);
|
2014-01-19 13:31:00 -05:00
|
|
|
FragColor = vec4(res.xyz * col.xyz, res.a);
|
2014-01-13 17:16:04 -05:00
|
|
|
}
|