blob: f10c767307af33bdfe0ef9d4575a7d6255e6801f [file] [log] [blame]
John Kessenichf6eae2a2016-01-22 17:47:22 -07001#version 140
John Kessenich39374da2015-05-15 21:32:46 +00002
John Kessenich6c292d32016-02-15 20:58:50 -07003in float d;
4in vec4 bigColor, smallColor;
5in vec4 otherColor;
John Kessenich39374da2015-05-15 21:32:46 +00006
John Kessenichf6eae2a2016-01-22 17:47:22 -07007in float c;
8in vec4 BaseColor;
John Kessenich39374da2015-05-15 21:32:46 +00009
10void 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}