- Timestamp:
- 03/17/06 23:22:57 (7 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgdepthpartition/osgdepthpartition.cpp
r4805 r5054 42 42 sun_sd->setColor(osg::Vec4(1.0, 0.0, 0.0, 1.0)); 43 43 44 osg::Geode* sun = new osg::Geode;45 sun ->setName("sun");46 sun ->addDrawable(sun_sd);44 osg::Geode* sun_geode = new osg::Geode; 45 sun_geode->setName("sun"); 46 sun_geode->addDrawable(sun_sd); 47 47 48 48 // Move the sun behind the earth … … 53 53 scene->addChild(earth); 54 54 scene->addChild(pat); 55 pat->addChild(sun );55 pat->addChild(sun_geode); 56 56 57 57 return scene;
