Lighting tweaks.
This commit is contained in:
parent
cb1d2d96d1
commit
86af8c519a
1 changed files with 3 additions and 1 deletions
|
@ -518,7 +518,9 @@ void fgRenderFrame( void ) {
|
|||
}
|
||||
|
||||
// set lighting parameters
|
||||
glLightfv( GL_LIGHT0, GL_AMBIENT, l->scene_ambient );
|
||||
GLfloat black[4] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
glLightModelfv( GL_LIGHT_MODEL_AMBIENT, l->scene_ambient );
|
||||
glLightfv( GL_LIGHT0, GL_AMBIENT, black );
|
||||
glLightfv( GL_LIGHT0, GL_DIFFUSE, l->scene_diffuse );
|
||||
// glLightfv(GL_LIGHT0, GL_SPECULAR, white );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue