Various API updates to suppor light points developments better, but should also

benifit other extensions to rendering.
This commit is contained in:
Robert Osfield
2002-05-18 08:39:42 +00:00
parent 116e0cd8c9
commit 00f91631c2
5 changed files with 74 additions and 14 deletions

View File

@@ -304,9 +304,8 @@ inline float distance(const osg::Vec3& coord,const osg::Matrix& matrix)
}
void CullVisitor::updateCalculatedNearFar(const osg::Matrix& matrix,const osg::Drawable& drawable)
void CullVisitor::updateCalculatedNearFar(const osg::Matrix& matrix,const osg::BoundingBox& bb)
{
const osg::BoundingBox& bb = drawable.getBound();
float d_near = distance(bb.corner(_bbCornerNear),matrix);
float d_far = distance(bb.corner(_bbCornerFar),matrix);
@@ -329,7 +328,6 @@ void CullVisitor::updateCalculatedNearFar(const osg::Matrix& matrix,const osg::D
}
}
void CullVisitor::updateCalculatedNearFar(const osg::Vec3& pos)
{
float d;