2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

Add light visualization (requires custom models)

This commit is contained in:
2020-12-12 23:39:55 -08:00
parent 6f7d3b4dc5
commit 28561081d7
5 changed files with 110 additions and 4 deletions

View File

@@ -543,8 +543,15 @@ void CStateManager::DrawDebugStuff() const {
if (CPathFindSearch* path = ai->GetSearchPath()) {
path->DebugDraw();
}
} else if (const TCastToPtr<CGameLight> light = ent) {
light->DebugDraw();
}
}
auto* gameArea = x850_world->GetArea(x850_world->GetCurrentAreaId());
if (gameArea != nullptr) {
gameArea->DebugDraw();
}
if (xf70_currentMaze) {
xf70_currentMaze->DebugRender();
}