John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 1 | #version 140 |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 2 | uniform sampler2D texSampler2D; |
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 3 | in vec4 color; |
4 | in float alpha; | ||||
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 5 | |
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 6 | in vec4 TexCoord[6]; |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 7 | |
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 8 | in vec4 userIn[2]; |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 9 | |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 10 | flat in int a, b; |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 11 | |
12 | void main() | ||||
13 | { | ||||
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 14 | vec4 texColor = texture(texSampler2D, vec2(userIn[b] + TexCoord[a] + TexCoord[5])); |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 15 | |
16 | texColor += color; | ||||
17 | |||||
18 | texColor.a = alpha; | ||||
19 | |||||
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 20 | gl_FragColor = TexCoord[0] + TexCoord[b] + texColor + userIn[a]; |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 21 | } |