From 3af7039df55d2cd096e5c445826a4ed919047a06 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 15 Jul 2024 00:56:25 +0200 Subject: [PATCH] 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). --- src/naveditor/Editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naveditor/Editor.cpp b/src/naveditor/Editor.cpp index a4d86b12..ff636f6d 100644 --- a/src/naveditor/Editor.cpp +++ b/src/naveditor/Editor.cpp @@ -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),