Fixed computeNearFar bug in CullVisitor::apply(Billboard&).

This commit is contained in:
Robert Osfield
2002-07-14 16:26:03 +00:00
parent 733be1b309
commit f32245ba5b

View File

@@ -333,7 +333,7 @@ void CullVisitor::apply(Billboard& node)
if (_computeNearFar)
{
float d = center.z();
float d = -center.z();
if (d<_computed_znear) _computed_znear = d;
if (d>_computed_zfar) _computed_zfar = d;
}