2016-06-07 13:54:14 +00:00
|
|
|
#version 330 core
|
|
|
|
in vec2 texCoord;
|
|
|
|
|
|
|
|
out vec4 color;
|
|
|
|
|
2016-06-07 15:35:00 +00:00
|
|
|
uniform sampler2D tex;
|
2016-07-09 06:08:03 +00:00
|
|
|
uniform vec4 spriteColor;
|
2016-06-07 13:54:14 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2016-07-09 06:08:03 +00:00
|
|
|
color = spriteColor * texture(tex, texCoord);
|
2016-06-07 13:54:14 +00:00
|
|
|
}
|