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

@@ -14,6 +14,9 @@ class CGameLight : public CActor {
u32 x140_priority;
float x144_lifeTime;
std::optional<CStaticRes> m_debugRes;
std::unique_ptr<CModelData> m_debugModel;
public:
CGameLight(TUniqueId uid, TAreaId aid, bool active, std::string_view name, const zeus::CTransform& xf,
TUniqueId parentId, const CLight& light, u32 sourceId, u32 priority, float lifeTime);
@@ -24,5 +27,7 @@ public:
void SetLight(const CLight& light);
CLight GetLight() const;
TUniqueId GetParentId() const { return xe8_parentId; }
void DebugDraw();
};
} // namespace urde