Added TerrainNode::setColorFilter(layerNum,Filter) to allow developers to set

what type of texture filter to use, either LINEAER and NEAREST.
This commit is contained in:
Robert Osfield
2007-04-30 09:47:35 +00:00
parent 43e6d7e879
commit efb52dfab9
4 changed files with 64 additions and 1 deletions

View File

@@ -81,6 +81,13 @@ void TerrainNode::setColorTransferFunction(unsigned int i, osg::TransferFunction
_colorLayers[i].transferFunction = tf;
}
void TerrainNode::setColorFilter(unsigned int i, Filter filter)
{
if (_colorLayers.size() <= i) _colorLayers.resize(i+1);
_colorLayers[i].filter = filter;
}
osg::BoundingSphere TerrainNode::computeBound() const
{
osg::BoundingSphere bs;