|
|
@ -326,8 +326,8 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
Moon(osg::Group* parentNode, Resource::SceneManager* sceneManager, float scaleFactor, Type type)
|
|
|
|
Moon(osg::Group* parentNode, Resource::SceneManager* sceneManager, float scaleFactor, Type type)
|
|
|
|
: CelestialBody(parentNode, sceneManager, scaleFactor, 2)
|
|
|
|
: CelestialBody(parentNode, sceneManager, scaleFactor, 2)
|
|
|
|
, mPhase(Phase_Unspecified)
|
|
|
|
|
|
|
|
, mType(type)
|
|
|
|
, mType(type)
|
|
|
|
|
|
|
|
, mPhase(Phase_Unspecified)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mUpdater = new MoonUpdater;
|
|
|
|
mUpdater = new MoonUpdater;
|
|
|
|
mGeode->addUpdateCallback(mUpdater);
|
|
|
|
mGeode->addUpdateCallback(mUpdater);
|
|
|
@ -487,6 +487,7 @@ SkyManager::SkyManager(osg::Group* parentNode, Resource::SceneManager* sceneMana
|
|
|
|
, mMonth(0)
|
|
|
|
, mMonth(0)
|
|
|
|
, mCloudAnimationTimer(0.f)
|
|
|
|
, mCloudAnimationTimer(0.f)
|
|
|
|
, mRainTimer(0.f)
|
|
|
|
, mRainTimer(0.f)
|
|
|
|
|
|
|
|
, mStormDirection(0,-1,0)
|
|
|
|
, mClouds()
|
|
|
|
, mClouds()
|
|
|
|
, mNextClouds()
|
|
|
|
, mNextClouds()
|
|
|
|
, mCloudBlendFactor(0.0f)
|
|
|
|
, mCloudBlendFactor(0.0f)
|
|
|
@ -503,7 +504,6 @@ SkyManager::SkyManager(osg::Group* parentNode, Resource::SceneManager* sceneMana
|
|
|
|
, mSunEnabled(true)
|
|
|
|
, mSunEnabled(true)
|
|
|
|
, mMasserEnabled(true)
|
|
|
|
, mMasserEnabled(true)
|
|
|
|
, mSecundaEnabled(true)
|
|
|
|
, mSecundaEnabled(true)
|
|
|
|
, mStormDirection(0,-1,0)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
osg::ref_ptr<CameraRelativeTransform> skyroot (new CameraRelativeTransform);
|
|
|
|
osg::ref_ptr<CameraRelativeTransform> skyroot (new CameraRelativeTransform);
|
|
|
|
parentNode->addChild(skyroot);
|
|
|
|
parentNode->addChild(skyroot);
|
|
|
|