blob: a556c9eb5af2139378f92d5d5df87efede068a13 [file] [log] [blame]
John Kessenichf6eae2a2016-01-22 17:47:22 -07001#version 140
John Kessenich39374da2015-05-15 21:32:46 +00002uniform sampler2D texSampler2D;
John Kessenichf6eae2a2016-01-22 17:47:22 -07003in vec4 color;
4in float alpha;
John Kessenich39374da2015-05-15 21:32:46 +00005
John Kessenichf6eae2a2016-01-22 17:47:22 -07006in vec4 TexCoord[6];
John Kessenich39374da2015-05-15 21:32:46 +00007
John Kessenichf6eae2a2016-01-22 17:47:22 -07008in vec4 userIn[2];
John Kessenich39374da2015-05-15 21:32:46 +00009
John Kessenich6c292d32016-02-15 20:58:50 -070010flat in int a, b;
John Kessenich39374da2015-05-15 21:32:46 +000011
12void main()
13{
John Kessenichf6eae2a2016-01-22 17:47:22 -070014 vec4 texColor = texture(texSampler2D, vec2(userIn[b] + TexCoord[a] + TexCoord[5]));
John Kessenich39374da2015-05-15 21:32:46 +000015
16 texColor += color;
17
18 texColor.a = alpha;
19
John Kessenichf6eae2a2016-01-22 17:47:22 -070020 gl_FragColor = TexCoord[0] + TexCoord[b] + texColor + userIn[a];
John Kessenich39374da2015-05-15 21:32:46 +000021}