Show
Ignore:
Timestamp:
11/18/04 11:08:29 (10 years ago)
Author:
robert
Message:

From Vivek Rajan, fixes to Solaris build.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgplanets/osgplanets.cpp

    r3634 r3659  
    382382 
    383383    // create the sun 
    384     osg::Node* sun = solarSystem.createPlanet( solarSystem._radiusSun, "Sun", osg::Vec4( 1.0f, 1.0f, 1.0f, 1.0f), solarSystem._mapSun ); 
    385     osg::StateSet* sunStateSet = sun->getOrCreateStateSet(); 
     384    osg::Node* solarSun = solarSystem.createPlanet( solarSystem._radiusSun, "Sun", osg::Vec4( 1.0f, 1.0f, 1.0f, 1.0f), solarSystem._mapSun ); 
     385    osg::StateSet* sunStateSet = solarSun->getOrCreateStateSet(); 
    386386    osg::Material* material = new osg::Material; 
    387387    material->setEmission( osg::Material::FRONT_AND_BACK, osg::Vec4( 1.0f, 1.0f, 0.0f, 0.0f ) ); 
     
    397397 
    398398    // stick sun right under root, no transformations for the sun 
    399     sunLight->addChild( sun ); 
     399    sunLight->addChild( solarSun ); 
    400400 
    401401    // create light source in the sun