For flat shading use "glHint (GL_FOG_HINT, GL_FASTEST )"
This commit is contained in:
parent
2adc0b8d12
commit
1904751726
1 changed files with 8 additions and 2 deletions
|
@ -209,8 +209,11 @@ static void fgInitVisuals( void ) {
|
||||||
xglFogf (GL_FOG_START, w->visibility / 1000000.0 );
|
xglFogf (GL_FOG_START, w->visibility / 1000000.0 );
|
||||||
xglFogf (GL_FOG_END, w->visibility);
|
xglFogf (GL_FOG_END, w->visibility);
|
||||||
// xglFogf (GL_FOG_DENSITY, w->visibility);
|
// xglFogf (GL_FOG_DENSITY, w->visibility);
|
||||||
xglHint (GL_FOG_HINT, GL_NICEST /* GL_FASTEST */ );
|
if ( o->shading ) {
|
||||||
|
xglHint (GL_FOG_HINT, GL_NICEST );
|
||||||
|
} else {
|
||||||
|
xglHint (GL_FOG_HINT, GL_FASTEST );
|
||||||
|
}
|
||||||
if ( o->wireframe ) {
|
if ( o->wireframe ) {
|
||||||
// draw wire frame
|
// draw wire frame
|
||||||
xglPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
|
xglPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
|
||||||
|
@ -747,6 +750,9 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.13 1998/05/11 18:18:15 curt
|
||||||
|
// For flat shading use "glHint (GL_FOG_HINT, GL_FASTEST )"
|
||||||
|
//
|
||||||
// Revision 1.12 1998/05/07 23:14:15 curt
|
// Revision 1.12 1998/05/07 23:14:15 curt
|
||||||
// Added "D" key binding to set autopilot heading.
|
// Added "D" key binding to set autopilot heading.
|
||||||
// Made frame rate calculation average out over last 10 frames.
|
// Made frame rate calculation average out over last 10 frames.
|
||||||
|
|
Loading…
Reference in a new issue