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 );
#include <ssg.h> // plib includes
#include <Bucket/newbucket.hxx>
-#include <Math/mat3.h>
#include <Math/point3d.hxx>
#include <Objects/fragment.hxx>