FGNewMat::FGNewMat ( void ) {
wrapu = wrapv = 1;
mipmap = 1;
+ light_coverage = -1.0;
}
diffuse[0] = diffuse[1] = diffuse[2] = diffuse[3] = 1.0;
specular[0] = specular[1] = specular[2] = specular[3] = 1.0;
emission[0] = emission[1] = emission[2] = emission[3] = 1.0;
+ light_coverage = -1.0;
}
tex_file.append( texture_name );
state = new ssgStateSelector(2);
+ state->ref();
textured = new ssgSimpleState();
textured->ref();
// Set up the textured state
textured->setShadeModel( shade_model );
+ textured->enable( GL_LIGHTING );
textured->enable ( GL_CULL_FACE ) ;
textured->enable( GL_TEXTURE_2D );
textured->disable( GL_BLEND );
void FGNewMat::set_ssg_state( ssgSimpleState *s ) {
state = new ssgStateSelector(2);
+ state->ref();
+
textured = s;
nontextured = new ssgSimpleState();
} else {
FG_LOG( FG_TERRAIN, FG_INFO, "Bad alpha value " << token );
}
+ } else if ( token == "light-coverage" ) {
+ in >> token >> m.light_coverage;
} else if ( token[0] == '}' ) {
break;
}