- Removed multipass blur test
This commit is contained in:
parent
2a1c3dd7e8
commit
4e6621a124
@ -602,7 +602,7 @@ bool rcBuildContours(rcCompactHeightfield& chf,
|
||||
}
|
||||
}
|
||||
|
||||
// Check and merge droplings.
|
||||
// Check and merge droppings.
|
||||
// Sometimes the previous algorithms can fail and create several countours
|
||||
// per area. This pass will try to merge the holes into the main region.
|
||||
for (int i = 0; i < cset.nconts; ++i)
|
||||
|
@ -888,12 +888,8 @@ bool rcBuildDistanceField(rcCompactHeightfield& chf)
|
||||
rcTimeVal blurStartTime = rcGetPerformanceTimer();
|
||||
|
||||
// Blur
|
||||
int blurThr[4] = { 2, 4, 8, 16 };
|
||||
for (int i = 0; i < 4; ++i)
|
||||
{
|
||||
if (boxBlur(chf, blurThr[i], src, dst) != src)
|
||||
if (boxBlur(chf, 2, src, dst) != src)
|
||||
rcSwap(src, dst);
|
||||
}
|
||||
|
||||
// Store distance.
|
||||
for (int i = 0; i < chf.spanCount; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user