Fix fog / light punchthrough.
This commit is contained in:
parent
2f9850024a
commit
45564beba8
1 changed files with 1 additions and 2 deletions
|
@ -657,7 +657,7 @@ void fgRenderFrame( void ) {
|
||||||
|
|
||||||
// draw lighting
|
// draw lighting
|
||||||
// Set punch through fog density
|
// Set punch through fog density
|
||||||
glFogf (GL_FOG_DENSITY, fog_exp2_density);
|
glFogf (GL_FOG_DENSITY, fog_exp2_punch_through);
|
||||||
|
|
||||||
ssgCullAndDraw( lighting );
|
ssgCullAndDraw( lighting );
|
||||||
|
|
||||||
|
@ -673,7 +673,6 @@ void fgRenderFrame( void ) {
|
||||||
fgCockpitUpdate();
|
fgCockpitUpdate();
|
||||||
|
|
||||||
// We can do translucent menus, so why not. :-)
|
// We can do translucent menus, so why not. :-)
|
||||||
// glEnable ( GL_BLEND ) ;
|
|
||||||
menus->apply();
|
menus->apply();
|
||||||
glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ;
|
glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ) ;
|
||||||
puDisplay();
|
puDisplay();
|
||||||
|
|
Loading…
Add table
Reference in a new issue