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 foo[3];
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2016-01-23 00:47:22 +00:00
|
|
|
vec4 texColor = texture(texSampler2D, vec2(TexCoord[4] + 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 = foo[1] + TexCoord[0] + TexCoord[4] + texColor;
|
2015-05-15 21:32:46 +00:00
|
|
|
}
|