Closed GoogleCodeExporter closed 9 years ago
I'm not sure why that glColor3f statement is in the code at line 94, as it
doesn't actually do anything. The color of the torus is being set with the
later call to
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, vec(0.5, 0, 0.3, 1))
If you want the glColor3f to affect the torus at all, you must first
glEnable(GL_COLOR_MATERIAL).
Original comment by evil.phillip@gmail.com
on 13 Jan 2012 at 6:23
Oops. Apologies. It's been a while since I used OpenGL directly without a lot
of scaffolding to set up the scene for me, and I simply ignored the
lighting/ambient section.
Original comment by rui.ca...@gmail.com
on 13 Jan 2012 at 8:49
Original issue reported on code.google.com by
rca...@gmail.com
on 13 Jan 2012 at 10:25