From Sherman Wilcox, added check for Drawable cull callbck into apply(Billboard)

This commit is contained in:
Robert Osfield
2007-06-30 09:27:11 +00:00
parent f2a50164b9
commit 79dddef778

View File

@@ -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);