Modified Files:
scene/tgdb/SGOceanTile.cxx: add missing transform for the ocean tile.
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include <osg/Geode>
|
#include <osg/Geode>
|
||||||
#include <osg/Geometry>
|
#include <osg/Geometry>
|
||||||
|
#include <osg/MatrixTransform>
|
||||||
#include <osg/StateSet>
|
#include <osg/StateSet>
|
||||||
|
|
||||||
#include <simgear/bucket/newbucket.hxx>
|
#include <simgear/bucket/newbucket.hxx>
|
||||||
@@ -127,5 +128,10 @@ osg::Node* SGOceanTile(const SGBucket& b, SGMaterialLib *matlib)
|
|||||||
geode->addDrawable(geometry);
|
geode->addDrawable(geometry);
|
||||||
geode->setStateSet(stateSet);
|
geode->setStateSet(stateSet);
|
||||||
|
|
||||||
return geode;
|
osg::MatrixTransform* transform = new osg::MatrixTransform;
|
||||||
|
transform->setName("Ocean");
|
||||||
|
transform->setMatrix(osg::Matrix::translate(cartCenter.osg()));
|
||||||
|
transform->addChild(geode);
|
||||||
|
|
||||||
|
return transform;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user