forked from teamnwah/openmw-tes3coop
Minor cleanup
This commit is contained in:
parent
d812434fee
commit
1a1f1fae87
1 changed files with 2 additions and 3 deletions
|
@ -366,7 +366,6 @@ public:
|
||||||
Sun(osg::Group* parentNode, Resource::TextureManager& textureManager)
|
Sun(osg::Group* parentNode, Resource::TextureManager& textureManager)
|
||||||
: CelestialBody(parentNode, 1.0f, 1)
|
: CelestialBody(parentNode, 1.0f, 1)
|
||||||
, mUpdater(new Updater)
|
, mUpdater(new Updater)
|
||||||
, mInitialFlashScale(2.6f)
|
|
||||||
{
|
{
|
||||||
mTransform->addUpdateCallback(mUpdater);
|
mTransform->addUpdateCallback(mUpdater);
|
||||||
|
|
||||||
|
@ -496,7 +495,8 @@ private:
|
||||||
osg::Texture::CLAMP);
|
osg::Texture::CLAMP);
|
||||||
|
|
||||||
osg::ref_ptr<osg::PositionAttitudeTransform> transform (new osg::PositionAttitudeTransform);
|
osg::ref_ptr<osg::PositionAttitudeTransform> transform (new osg::PositionAttitudeTransform);
|
||||||
transform->setScale(osg::Vec3f(mInitialFlashScale, mInitialFlashScale, mInitialFlashScale));
|
const float scale = 2.6f;
|
||||||
|
transform->setScale(osg::Vec3f(scale,scale,scale));
|
||||||
|
|
||||||
mTransform->addChild(transform);
|
mTransform->addChild(transform);
|
||||||
|
|
||||||
|
@ -804,7 +804,6 @@ private:
|
||||||
osg::ref_ptr<osg::Node> mSunGlareNode;
|
osg::ref_ptr<osg::Node> mSunGlareNode;
|
||||||
osg::ref_ptr<osg::OcclusionQueryNode> mOcclusionQueryVisiblePixels;
|
osg::ref_ptr<osg::OcclusionQueryNode> mOcclusionQueryVisiblePixels;
|
||||||
osg::ref_ptr<osg::OcclusionQueryNode> mOcclusionQueryTotalPixels;
|
osg::ref_ptr<osg::OcclusionQueryNode> mOcclusionQueryTotalPixels;
|
||||||
float mInitialFlashScale;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Moon : public CelestialBody
|
class Moon : public CelestialBody
|
||||||
|
|
Loading…
Reference in a new issue