2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 07:07: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

@@ -15,7 +15,7 @@
#include "Runtime/World/CPathFindArea.hpp"
#include "Runtime/World/CWorldLight.hpp"
#include "Runtime/World/IGameArea.hpp"
#include "Runtime/Character/CModelData.hpp"
#include <hecl/ClientProcess.hpp>
#include <zeus/CAABox.hpp>
@@ -268,6 +268,10 @@ private:
void UpdateThermalVisor(float dt);
void UpdateWeaponWorldLighting(float dt);
std::optional<CStaticRes> m_debugSphereRes;
std::unique_ptr<CModelData> m_debugSphereModel;
std::optional<CStaticRes> m_debugConeRes;
std::unique_ptr<CModelData> m_debugConeModel;
public:
explicit CGameArea(CInputStream& in, int idx, int mlvlVersion);
explicit CGameArea(CAssetId mreaId); // Warmup constructor
@@ -362,6 +366,8 @@ public:
CGameArea* GetNext() const { return x130_next; }
static void WarmupShaders(const SObjectTag& mreaTag);
void DebugDraw();
void DebugDrawLight(const CLight& light);
};
} // namespace urde