--- src/rendergl.cpp 2005-01-03 18:45:48.000000000 -0800 +++ src-jjh/rendergl.cpp 2005-01-04 00:26:58.000000000 -0800 @@ -37,7 +37,7 @@ glEnable(GL_FOG); glFogi(GL_FOG_MODE, GL_LINEAR); - glFogf(GL_FOG_DENSITY, 0.25); + glFogf(GL_FOG_DENSITY, 0.25); // No effect with linear fog glHint(GL_FOG_HINT, GL_NICEST); GLfloat fogcolor[4] = { fogvalues }; glFogfv(GL_FOG_COLOR, fogcolor); @@ -309,7 +309,7 @@ glMatrixMode(GL_PROJECTION); glLoadIdentity(); - int farplane = max(fog*2, 384); + int farplane = max(fog*5/2, 384); gluPerspective(fovy, aspect, 4, farplane); glMatrixMode(GL_MODELVIEW); @@ -330,18 +330,20 @@ //renderstripssky(); /* + */ glLoadIdentity(); glRotated(player1->pitch, -1.0, 0.0, 0.0); glRotated(player1->yaw, 0.0, 1.0, 0.0); glRotated(90.0, 1.0, 0.0, 0.0); glColor3f(1.0f, 1.0f, 1.0f); glDisable(GL_FOG); - glDepthFunc(GL_GREATER); + //glDepthFunc(GL_GREATER); draw_envbox(14, fog*4/3); - glDepthFunc(GL_LESS); + //glDepthFunc(GL_LESS); glEnable(GL_FOG); transplayer(); + /* */ renderstrips();