void setupDefaultMaterial( void ) { gpcl_defaultmat = OSG::SimpleMaterial::create(); gpcl_defaultmat->setDiffuse( OSG::Color3f(1.0f,0.0f,0.0f) ); // RED gpcl_defaultmat->setAmbient( OSG::Color3f(0.2f,0.2f,0.2f) ); gpcl_defaultmat->setEmission( OSG::Color3f(0.02f,0.02f,0.02f) ); gpcl_defaultmat->setSpecular( OSG::Color3f(0.78f,0.78f,0.78f) ); gpcl_defaultmat->setShininess( 128 ); }
void setupDefaultMaterial( void ) { gpcl_fb_chunk = OSG::FatBorderChunk::create(); gpcl_fb_chunk->activateWithStandardLighting( ); gpcl_defaultmat = OSG::SimpleMaterial::create(); gpcl_defaultmat->setDiffuse( OSG::Color3f(1.0f,0.0f,0.0f) ); // RED gpcl_defaultmat->setAmbient( OSG::Color3f(0.2f,0.2f,0.2f) ); gpcl_defaultmat->setEmission( OSG::Color3f(0.02f,0.02f,0.02f) ); gpcl_defaultmat->setSpecular( OSG::Color3f(0.78f,0.78f,0.78f) ); gpcl_defaultmat->setShininess( 128 ); // add fat border chunk if ( !gb_nofatborders ) gpcl_defaultmat->addChunk( gpcl_fb_chunk ); }