2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 21:26:09 +00:00

Implement CGX & migrate usages to CGX/GX

This commit is contained in:
2022-03-12 10:47:20 -05:00
parent 929bb65417
commit a3d0da44e2
31 changed files with 1560 additions and 912 deletions

View File

@@ -23,6 +23,7 @@
#include "Runtime/Character/CTransitionManager.hpp"
#include "Runtime/Character/IAnimReader.hpp"
#include "Runtime/Graphics/CSkinnedModel.hpp"
#include "Runtime/Graphics/CGX.hpp"
#include <logvisor/logvisor.hpp>
@@ -559,7 +560,7 @@ void CAnimData::SetupRender(CSkinnedModel& model, CVertexMorphEffect* morphEffec
}
void CAnimData::DrawSkinnedModel(CSkinnedModel& model, const CModelFlags& flags) {
aurora::gfx::set_chan_mat_src(GX::COLOR0A0, GX::SRC_REG);
CGX::SetChanCtrl(CGX::EChannelId::Channel0, CGraphics::g_LightActive);
model.Draw(flags);
}