thoean
06-11-2003, 07:14 AM
i move my camera, but the fog does not move, so when i move the camera about 50 units, then i am fully in the fog.
how can I solve it, that the fog is moving with my camera eye?
my settings for the fog are:
GLfloat fogColor[4] = {1.0, 1.0, 1.0, 1.0};
glEnable(GL_FOG);
glFogf(GL_FOG_START, SKYSIZE*0.4f);
glFogf(GL_FOG_END, SKYSIZE*0.5f);
glFogi(GL_FOG_MODE, GL_LINEAR);
glFogfv(GL_FOG_COLOR, fogColor);
glFogf(GL_FOG_DENSITY, 0.35);
glHint(GL_FOG_HINT, GL_NICEST);
thx for any help
how can I solve it, that the fog is moving with my camera eye?
my settings for the fog are:
GLfloat fogColor[4] = {1.0, 1.0, 1.0, 1.0};
glEnable(GL_FOG);
glFogf(GL_FOG_START, SKYSIZE*0.4f);
glFogf(GL_FOG_END, SKYSIZE*0.5f);
glFogi(GL_FOG_MODE, GL_LINEAR);
glFogfv(GL_FOG_COLOR, fogColor);
glFogf(GL_FOG_DENSITY, 0.35);
glHint(GL_FOG_HINT, GL_NICEST);
thx for any help