blob: d45e601b4c56f4e2ac7a621070b9d349cf9bc505 [file] [log] [blame]
John Kessenich2f21fcc2015-06-17 16:15:09 +00001#version 130
2uniform sampler2D texSampler2D;
3varying vec4 color;
4varying float alpha;
5
6varying vec4 gl_TexCoord[6];
7
8varying vec4 userIn[2];
9
10uniform int a, b;
11
12void main()
13{
14 vec4 texColor = texture2D(texSampler2D, vec2(userIn[b] + gl_TexCoord[a] + gl_TexCoord[5]));
15
16 texColor += color;
17
18 texColor.a = alpha;
19
20 gl_FragColor = gl_TexCoord[0] + gl_TexCoord[b] + texColor + userIn[a];
21}