From Chris Hanson, add LODScale support to pixel based LOD range selection.

This commit is contained in:
Robert Osfield
2005-11-22 10:08:00 +00:00
parent 26e77fc92f
commit 611e49b736
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ void LOD::traverse(NodeVisitor& nv)
osg::CullStack* cullStack = dynamic_cast<osg::CullStack*>(&nv);
if (cullStack)
{
required_range = cullStack->clampedPixelSize(getBound());
required_range = cullStack->clampedPixelSize(getBound()) / cullStack->getLODScale();
}
else
{

View File

@@ -126,7 +126,7 @@ void PagedLOD::traverse(NodeVisitor& nv)
osg::CullStack* cullStack = dynamic_cast<osg::CullStack*>(&nv);
if (cullStack)
{
required_range = cullStack->clampedPixelSize(getBound());
required_range = cullStack->clampedPixelSize(getBound()) / cullStack->getLODScale();
}
else
{