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