1
0
Fork 0

Light model tweaks.

This commit is contained in:
curt 2001-03-28 18:11:05 +00:00
parent c4b2e54551
commit e7d79e7ba2

View file

@ -570,9 +570,9 @@ void fgRenderFrame( void ) {
// set that to black and instead modify GL_LIGHT_MODEL_AMBIENT.
GLfloat black[4] = { 0.0, 0.0, 0.0, 1.0 };
GLfloat white[4] = { 1.0, 1.0, 1.0, 1.0 };
ssgGetLight( 0 ) -> setColour( GL_AMBIENT, black );
glLightModelfv( GL_LIGHT_MODEL_AMBIENT, black );
glLightModelfv( GL_LIGHT_MODEL_AMBIENT, l->scene_ambient );
ssgGetLight( 0 ) -> setColour( GL_AMBIENT, l->scene_ambient );
ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse );
// ssgGetLight( 0 ) -> setColour( GL_SPECULAR, l->scene_white );