1#version 140 2 3in vec4 bigColor; 4in vec4 BaseColor; 5in float d; 6 7void main() 8{ 9 vec4 color = BaseColor; 10 11 do { 12 color += bigColor; 13 } while (color.x < d); 14 15 gl_FragColor = color; 16} 17