blob: f7b7141eae7180a7b3c9a5c184198a6c790e9a8d [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 while (color.x < d) {
12 color += bigColor;
13 }
14
15 gl_FragColor = color;
16}