]> git.mxchange.org Git - flightgear.git/commitdiff
Fix fog / light punchthrough.
authorcurt <curt>
Mon, 4 Dec 2000 22:35:10 +0000 (22:35 +0000)
committercurt <curt>
Mon, 4 Dec 2000 22:35:10 +0000 (22:35 +0000)
src/Main/main.cxx

index 03d88904ac8e0a97e79b40edcefef796f4787c21..1ff40196a6f7d878ef0eb9a4270c8fe9dbaa8718 100644 (file)
@@ -657,7 +657,7 @@ void fgRenderFrame( void ) {
 
        // draw lighting
        // Set punch through fog density
-       glFogf (GL_FOG_DENSITY, fog_exp2_density);
+       glFogf (GL_FOG_DENSITY, fog_exp2_punch_through);
 
        ssgCullAndDraw( lighting );
 
@@ -673,7 +673,6 @@ void fgRenderFrame( void ) {
        fgCockpitUpdate();
 
        // We can do translucent menus, so why not. :-)
-       // glEnable ( GL_BLEND ) ;
        menus->apply();
        glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ;
        puDisplay();