}
// draw the directory link lines
+ glUseProgram(glow_link_sdr);
+ set_uniform_float(glow_link_sdr, "tsec", time_sec);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
for(int i=0; i<nchildren; i++) {
xform.rotate_y(angle);
xform.translate(0, -0.3, 0);
- glUseProgram(glow_link_sdr);
glPushMatrix();
glMultMatrixf(xform[0]);
glDepthMask(0);
+ set_uniform_float(glow_link_sdr, "phase", col * 42.0);
+
glBegin(GL_QUADS);
glColor3f(0.2, 0.3, 0.8);
glTexCoord2f(0, 0);
- glVertex3f(-0.25, 0, 0.05);
+ glVertex3f(-0.2, 0, 0.05);
glTexCoord2f(1, 0);
- glVertex3f(0.25, 0, 0.05);
+ glVertex3f(0.2, 0, 0.05);
glTexCoord2f(1, 1);
- glVertex3f(0.25, 0, -2.0);
+ glVertex3f(0.2, 0, -5.0);
glTexCoord2f(0, 1);
- glVertex3f(-0.25, 0, -2.0);
+ glVertex3f(-0.2, 0, -5.0);
glColor3f(1, 1, 1);
glEnd();
glPopMatrix();