Original Post
I use glScalef to flip an object about the z-axis. But when I flip it it is almost totally dark. I thought it was ONLY the object that was flipped and not also the light position. Here is the code: Are both the light position and the object flipped but not the camera position?
glPushMatrix();
// Flip object upside down (reflect around z-axis).
glScalef(1.0, 1.0, -1.0);
render_bob(camera_pos[0], camera_pos[1], camera_pos[2], m_sun_position[0], m_sun_position[1], m_sun_position[2]);
glPopMatrix();