2016-01-23 00:47:22 +00:00
|
|
|
#version 140
|
2015-05-15 21:32:46 +00:00
|
|
|
uniform sampler2D texSampler2D;
|
2016-01-23 00:47:22 +00:00
|
|
|
in vec4 color;
|
|
|
|
in float alpha;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
2016-01-23 00:47:22 +00:00
|
|
|
in vec4 TexCoord[6];
|
2015-05-15 21:32:46 +00:00
|
|
|
|
2016-01-23 00:47:22 +00:00
|
|
|
in vec4 userIn[2];
|
2015-05-15 21:32:46 +00:00
|
|
|
|
2016-02-16 03:58:50 +00:00
|
|
|
flat in int a, b;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2016-01-23 00:47:22 +00:00
|
|
|
vec4 texColor = texture(texSampler2D, vec2(userIn[b] + TexCoord[a] + TexCoord[5]));
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
texColor += color;
|
|
|
|
|
|
|
|
texColor.a = alpha;
|
|
|
|
|
2016-01-23 00:47:22 +00:00
|
|
|
gl_FragColor = TexCoord[0] + TexCoord[b] + texColor + userIn[a];
|
2015-05-15 21:32:46 +00:00
|
|
|
}
|