Improved outline detection condition.
Before this commit, circles parallel to the camera plane caused some edges to be randomly marked as outlines.pull/19/merge
parent
737ff51893
commit
0b999f4165
|
@ -1052,7 +1052,7 @@ void SKdNode::MakeOutlinesInto(SOutlineList *sol) const
|
|||
}
|
||||
|
||||
bool SOutline::IsVisible(Vector projDir) const {
|
||||
return (nl.Dot(projDir) > 0.0) != (nr.Dot(projDir) > 0.0);
|
||||
return (nl.Dot(projDir) > LENGTH_EPS) == (nr.Dot(projDir) < LENGTH_EPS);
|
||||
}
|
||||
|
||||
void SOutlineList::Clear() {
|
||||
|
|
Loading…
Reference in New Issue