Updates needed for z-ordewring of the cloud layers
This commit is contained in:
parent
9c2cc7c309
commit
ced6b4f520
1 changed files with 2 additions and 2 deletions
|
@ -343,7 +343,7 @@ void trRenderFrame( void ) {
|
|||
|
||||
// we need a white diffuse light for the phase of the moon
|
||||
ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, white );
|
||||
thesky->preDraw();
|
||||
thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER );
|
||||
|
||||
// draw the ssg scene
|
||||
// return to the desired diffuse color
|
||||
|
@ -678,7 +678,7 @@ void fgRenderFrame() {
|
|||
// we need a white diffuse light for the phase of the moon
|
||||
ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, white );
|
||||
|
||||
thesky->preDraw();
|
||||
thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER );
|
||||
|
||||
// return to the desired diffuse color
|
||||
ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse );
|
||||
|
|
Loading…
Add table
Reference in a new issue