Recast: disable depth testing by default for navmesh

The depth testing is useful when rendering the navmesh without a background (e.g. disabling the rendering of the input geom). But when rendering with the geometry, it should be disabled as otherwise some data will overlap and become invisible (the off-mesh links or poly verts, or boundaries when looking from a tilted perspective).
This commit is contained in:
Kawe Mazidjatari 2024-07-15 00:56:25 +02:00
parent 22e25964c6
commit 3af7039df5

View File

@ -65,7 +65,7 @@ Editor::Editor() :
DU_DRAWNAVMESH_OFFMESHCONS|DU_DRAWNAVMESH_CLOSEDLIST|
DU_DRAWNAVMESH_VERTS|DU_DRAWNAVMESH_INNERBOUND|
DU_DRAWNAVMESH_OUTERBOUND|DU_DRAWNAVMESH_POLYCENTERS|
DU_DRAWNAVMESH_DEPTH_MASK|DU_DRAWNAVMESH_ALPHA),
DU_DRAWNAVMESH_ALPHA),
m_filterLowHangingObstacles(true),
m_filterLedgeSpans(true),
m_filterWalkableLowHeightSpans(true),