I want to have a Day/ Night cycle in my game. I can change the ambient color fine.
However when I change the fog color during run time it always results in white?
Is this not allowed?
I have this is the programs loop:
float FogCol[3]={127.0f*time,185.0f*time,229.0f*time};
glFogfv(GL_FOG_COLOR,FogCol);
time being a float with a value from 1.0f to 0.0f.
So it should slowely go from Blue sky to Black.
Whats wrong with this?