Fixed --shading-flat option so it sets the material properties correctly.
This commit is contained in:
parent
afe8cc4d26
commit
7397860323
2 changed files with 5 additions and 2 deletions
|
@ -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 );
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue