8 if (gl_Vertex.x >= 50.0){
9 if (gl_Vertex.x >= 70.0) {
10 gl_FrontColor = vec4(0.0, 0.0, 1.0, 0.0);
13 gl_FrontColor = vec4(1.0, 0.0, 0.0, 0.0);
16 gl_FrontColor = vec4(0.0, 1.0, 0.0, 0.0);
19 if (gl_Vertex.x <= 20.0) {
20 gl_FrontColor = vec4(0.0, 0.0, 0.0, 1.0);
23 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
26 [fragment shader file]
31 clear color 0.5 0.5 0.5 0.5
37 probe rgba 15 15 0.0 0.0 0.0 1.0
38 probe rgba 35 15 0.0 1.0 0.0 0.0
39 probe rgba 55 15 1.0 0.0 0.0 0.0
40 probe rgba 75 15 0.0 0.0 1.0 0.0