remove depth changes

changing depth between draw modes is a bit confusing to the viewer could revist

PolyAreas must start with 1, 0 = null area in recast.
This commit is contained in:
marauder2k7 2025-07-24 15:01:28 +01:00
parent d1771756c2
commit de1642c33e
3 changed files with 5 additions and 32 deletions

View file

@ -62,7 +62,7 @@ unsigned int duDebugDrawTorque::areaToCol(unsigned int area)
{
switch (area)
{
// Ground (0) : light blue
// Ground (1) : light blue
case GroundArea: return duRGBA(0, 192, 255, 255);
// Water : blue
case WaterArea: return duRGBA(0, 0, 255, 255);
@ -94,6 +94,7 @@ void duDebugDrawTorque::begin(duDebugDrawPrimitives prim, float size)
mDesc.setCullMode(GFXCullCW);
mDesc.setBlend(false);
mDesc.setZReadWrite(true);
}
/// Submit a vertex