c_olin
08-03-2003, 11:45 AM
I've ben playing around with fog, but it hasn't been working like i want it too... here's the code so far:
GLuint fogMode[]= { GL_EXP, GL_EXP2, GL_LINEAR };
GLfloat fogColor[4]= {0.32f, 0.5f, 1.0f, 1.0f};
glFogi(GL_FOG_MODE, fogMode[0]);
glFogfv(GL_FOG_COLOR, fogColor);
glFogf(GL_FOG_DENSITY, 0.7f);
glHint(GL_FOG_HINT, GL_DONT_CARE);
glFogf(GL_FOG_START, 500.0f);
glFogf(GL_FOG_END, 1000.0f);
glEnable(GL_FOG);
I want the fog to start way off in the distance, but however i set Gl_START and GL_END it is sitll the same, please help!
GLuint fogMode[]= { GL_EXP, GL_EXP2, GL_LINEAR };
GLfloat fogColor[4]= {0.32f, 0.5f, 1.0f, 1.0f};
glFogi(GL_FOG_MODE, fogMode[0]);
glFogfv(GL_FOG_COLOR, fogColor);
glFogf(GL_FOG_DENSITY, 0.7f);
glHint(GL_FOG_HINT, GL_DONT_CARE);
glFogf(GL_FOG_START, 500.0f);
glFogf(GL_FOG_END, 1000.0f);
glEnable(GL_FOG);
I want the fog to start way off in the distance, but however i set Gl_START and GL_END it is sitll the same, please help!