blob: 5abdb61be314f7d75a42ea984afaffe7d5adca0b [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 vec4 bigColor;
John Kessenichf6eae2a2016-01-22 17:47:22 -07004in vec4 BaseColor;
John Kessenich6c292d32016-02-15 20:58:50 -07005in float d;
John Kessenich39374da2015-05-15 21:32:46 +00006
7void main()
8{
9 vec4 color = BaseColor;
10
11 do {
12 color += bigColor;
13 } while (color.x < d);
14
15 gl_FragColor = color;
16}