Fixed bug in interpolation of colour values

This commit is contained in:
Robert Osfield
2009-09-11 13:08:49 +00:00
parent 16312a4aa0
commit e53876bae9
2 changed files with 39 additions and 34 deletions

View File

@@ -269,7 +269,7 @@ void RayTracedTechnique::init()
osg::ref_ptr<osg::Texture1D> tf_texture = new osg::Texture1D;
tf_texture->setImage(tf->getImage());
#if 0
#if 1
osgDB::writeImageFile(*(tf->getImage()),"tf.png");
osg::notify(osg::NOTICE)<<"imageLayer->getTexelOffset()[3]="<<imageLayer->getTexelOffset()[3]<<std::endl;
osg::notify(osg::NOTICE)<<"imageLayer->getTexelScale()[3]="<<imageLayer->getTexelScale()[3]<<std::endl;