Fixed the set up of osgVolume::ImageLayer scale and offset.

This commit is contained in:
Robert Osfield 2009-09-08 15:36:28 +00:00
parent b2a3d84d08
commit 5c2e89ac28

View File

@ -1545,12 +1545,12 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position
volume->addChild(tile.get());
osg::ref_ptr<osgVolume::ImageLayer> layer = new osgVolume::ImageLayer(image.get());
layer->rescaleToZeroToOneRange();
if (details)
{
layer->setTexelOffset(details->getTexelOffset());
layer->setTexelScale(details->getTexelScale());
}
layer->rescaleToZeroToOneRange();
if (matrix.valid())
{