Added code in hangglide to move the earth sky around with the eye point,

use osg::Transform::ComputeTransformCallback.
This commit is contained in:
Robert Osfield
2002-04-22 19:41:33 +00:00
parent 56dc083330
commit 8b30a10375
2 changed files with 56 additions and 7 deletions

View File

@@ -175,6 +175,11 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor
const float getCalculatedFarPlane() const { return _computed_zfar; }
inline const osg::Vec3& getEyeLocal() const
{
return _eyePointStack.back();
}
protected:
/** prevent unwanted copy construction.*/
@@ -197,10 +202,6 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor
else acceptNode->accept(*this);
}
inline const osg::Vec3& getEyeLocal() const
{
return _eyePointStack.back();
}
inline const osg::Vec3 getUpLocal() const
{