mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-27 05:28:37 +00:00
NOTE: Changed the generation procedure, see samples! Erode walkable area before area is generated. Allow to mark areas on chf. Generate regions following areas (+ many fixes here and there to make it alwasy work). Part 2
This commit is contained in:
@@ -389,13 +389,22 @@ void InputGeom::drawBoxVolumes(struct duDebugDraw* dd, bool hilight)
|
||||
{
|
||||
dd->depthMask(false);
|
||||
|
||||
dd->begin(DU_DRAW_LINES, 1.0f);
|
||||
dd->begin(DU_DRAW_LINES, 2.0f);
|
||||
for (int i = 0; i < m_boxVolCount; ++i)
|
||||
{
|
||||
unsigned int col = duIntToCol(m_boxVolTypes[i], 220);
|
||||
unsigned int col = duIntToCol(m_boxVolTypes[i]+1, 220);
|
||||
const float* bounds = &m_boxVolVerts[i*3*2];
|
||||
duAppendBoxWire(dd, bounds[0],bounds[1],bounds[2],bounds[3],bounds[4],bounds[5], col);
|
||||
}
|
||||
}
|
||||
dd->end();
|
||||
|
||||
dd->begin(DU_DRAW_POINTS, 4.0f);
|
||||
for (int i = 0; i < m_boxVolCount; ++i)
|
||||
{
|
||||
unsigned int col = duDarkenColor(duIntToCol(m_boxVolTypes[i]+1, 255));
|
||||
const float* bounds = &m_boxVolVerts[i*3*2];
|
||||
duAppendBoxPoints(dd, bounds[0],bounds[1],bounds[2],bounds[3],bounds[4],bounds[5], col);
|
||||
}
|
||||
dd->end();
|
||||
|
||||
dd->depthMask(true);
|
||||
|
||||
Reference in New Issue
Block a user