1
0
Fork 0

Fixed --shading-flat option so it sets the material properties correctly.

This commit is contained in:
curt 1999-08-11 18:35:23 +00:00
parent afe8cc4d26
commit 7397860323
2 changed files with 5 additions and 2 deletions

View file

@ -179,7 +179,11 @@ fgMATERIAL_MGR::load_lib ( void )
ssgSimpleState *state = new ssgSimpleState;
state->enable( GL_LIGHTING );
state->setShadeModel( GL_SMOOTH );
if ( current_options.get_shading() == 1 ) {
state->setShadeModel( GL_SMOOTH );
} else {
state->setShadeModel( GL_FLAT );
}
state->enable ( GL_CULL_FACE ) ;
if ( current_options.get_textures() ) {
state->enable( GL_TEXTURE_2D );

View file

@ -48,7 +48,6 @@
#include <ssg.h> // plib includes
#include <Bucket/newbucket.hxx>
#include <Math/mat3.h>
#include <Math/point3d.hxx>
#include <Objects/fragment.hxx>