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