Fixed the set up of osgVolume::ImageLayer scale and offset.
This commit is contained in:
parent
b2a3d84d08
commit
5c2e89ac28
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user