From 79dddef77896b4f7546a3f812b86413577002dae Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 30 Jun 2007 09:27:11 +0000 Subject: [PATCH] From Sherman Wilcox, added check for Drawable cull callbck into apply(Billboard) --- src/osgUtil/CullVisitor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index b2da939a4..dc80bf1ec 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -829,6 +829,12 @@ void CullVisitor::apply(Billboard& node) // need to modify isCulled to handle the billboard offset. // if (isCulled(drawable->getBound())) continue; + if( drawable->getCullCallback() ) + { + if( drawable->getCullCallback()->cull( this, drawable, &_renderInfo ) == true ) + continue; + } + RefMatrix* billboard_matrix = createOrReuseMatrix(modelview); node.computeMatrix(*billboard_matrix,eye_local,pos);