1
0
Fork 0

Change fog punch through value a bit. Either way it's a WAG for now, but

at least it's less obviously wrong.
This commit is contained in:
curt 2002-03-14 00:52:38 +00:00
parent cabbc08c07
commit 56fef38054
2 changed files with 3 additions and 3 deletions

View file

@ -416,7 +416,7 @@ void fgRenderFrame( void ) {
fog_exp_density = m_log01 / actual_visibility; fog_exp_density = m_log01 / actual_visibility;
fog_exp2_density = sqrt_m_log01 / actual_visibility; fog_exp2_density = sqrt_m_log01 / actual_visibility;
fog_exp2_punch_through = sqrt_m_log01 / ( actual_visibility * 4.0 ); fog_exp2_punch_through = sqrt_m_log01 / ( actual_visibility * 2.5 );
} }
// double angle; // double angle;

View file

@ -151,7 +151,6 @@ void display()
glEnable(GL_TEXTURE_GEN_S); glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T); glEnable(GL_TEXTURE_GEN_T);
/*
glBegin(GL_QUADS); glBegin(GL_QUADS);
glNormal3f(0.0, 0.0, 1.0); glNormal3f(0.0, 0.0, 1.0);
glVertex3f(1.0, 1.0, 0.0); glVertex3f(1.0, 1.0, 0.0);
@ -159,13 +158,14 @@ void display()
glVertex3f(-1.0, -1.0, 0.0); glVertex3f(-1.0, -1.0, 0.0);
glVertex3f(1.0, -1.0, 0.0); glVertex3f(1.0, -1.0, 0.0);
glEnd(); glEnd();
*/
/*
glPointSize(48.0); glPointSize(48.0);
glBegin(GL_POINTS); glBegin(GL_POINTS);
glNormal3f(0.0, 0.0, 1.0); glNormal3f(0.0, 0.0, 1.0);
glVertex3f(0.0, 0.0, 0.0); glVertex3f(0.0, 0.0, 0.0);
glEnd(); glEnd();
*/
glDisable(GL_TEXTURE_GEN_S); glDisable(GL_TEXTURE_GEN_S);
glDisable(GL_TEXTURE_GEN_T); glDisable(GL_TEXTURE_GEN_T);