The problem: my fog is stationary and does not move along with the camera. Looking through the archives, this seems to be a common issue and is usually caused by transformations with the projection matrix. However, I don't think this is what I did. Is there someone willing to go over this piece of code (I've simplified it as much as possible) and help me out? I've been stuck for too long...
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
void reshape(int w, int h)
glLoadIdentity(); // Reset the camera
glLoadIdentity(); // Reset the drawing perspective
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
int main(int argc, char** argv)
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB);