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