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 |
|
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 3 | in float d;
|
| 4 | in vec4 bigColor, smallColor;
|
| 5 | in vec4 otherColor;
|
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 6 |
|
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 7 | in float c;
|
| 8 | in vec4 BaseColor;
|
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 9 |
|
| 10 | void main()
|
| 11 | {
|
| 12 | vec4 color = BaseColor;
|
| 13 | vec4 color2;
|
| 14 |
|
| 15 | color2 = otherColor;
|
| 16 |
|
| 17 | if (c > d)
|
| 18 | color += bigColor;
|
| 19 | else
|
| 20 | color += smallColor;
|
| 21 |
|
| 22 | gl_FragColor = color * color2;
|
| 23 | }
|