Skip to content

Commit

Permalink
Fix z near calculation for lines
Browse files Browse the repository at this point in the history
  • Loading branch information
calumr committed Jun 20, 2018
1 parent 47aaca5 commit eb60fcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osgUtil/CullVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ struct ComputeNearFarFunctor

n1 = distance(p1.second,_matrix);
n2 = distance(p2.second,_matrix);
_znear = _comparator.minimum(n1, n2);
_znear = _comparator.minimum(_znear, n1);
_znear = _comparator.minimum(_znear, n2);
//OSG_NOTICE<<"Near plane updated "<<_znear<<std::endl;
}

Expand Down

0 comments on commit eb60fcc

Please sign in to comment.