Adding scaling of skirt.

This commit is contained in:
Robert Osfield
2004-01-28 14:44:35 +00:00
parent 84f1f788f3
commit ef13d749ae

View File

@@ -1317,10 +1317,12 @@ osg::Node* DataSet::DestinationTile::createScene()
{
osg::HeightField* hf = _terrain->_heightField.get();
hf->setSkirtHeight(0.003f);
osg::Geode* geode = new osg::Geode;
geode->addDrawable(new osg::ShapeDrawable(hf));
hf->setSkirtHeight(geode->getBound().radius()*0.01f);
if (_imagery.valid() && _imagery->_image.valid())
{