Changeset 53 for osgVisual/src/sky_Silverlining/visual_skySilverLining.cpp
- Timestamp:
- May 28, 2010, 10:18:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/sky_Silverlining/visual_skySilverLining.cpp
r31 r53 164 164 // Add the sky (calls Atmosphere::BeginFrame and handles initialization once you're in 165 165 // the rendering thread) 166 skyDrawable = new skySilverLining_skyDrawable(viewer );166 skyDrawable = new skySilverLining_skyDrawable(viewer, sceneRoot); 167 167 168 168 osg::Camera *mainCamera = viewer->getCamera(); … … 244 244 // Add the sky (calls Atmosphere::BeginFrame and handles initialization once you're in 245 245 // the rendering thread) 246 skyDrawable = new skySilverLining_skyDrawable(viewer );246 skyDrawable = new skySilverLining_skyDrawable(viewer, sceneRoot); 247 247 248 248 if (!useProjMatrixCallback) … … 301 301 302 302 setTime(16,00,23); 303 setVisibility(50000); 303 setVisibility(5000); 304 //AtmosphericConditions::SetFog()// use this for simulation real fog. 305 306 304 307 305 308 //Todo: secure memory-manager of timer*. oder remove paragraph … … 371 374 372 375 // delete drawables 376 skyDrawable->shutdown(); 373 377 this->removeDrawable(skyDrawable); 374 378 this->removeDrawable(cloudsDrawable); … … 382 386 atmosphere->GetConditions()->SetVisibility( visibility_ ); 383 387 } 388 384 389 } 385 390
Note: See TracChangeset
for help on using the changeset viewer.