summaryrefslogtreecommitdiff
path: root/src/JSystem/J3DGraphBase/J3DShapeMtx.cpp
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2026-01-13 07:49:09 -0800
committerGitHub <noreply@github.com>2026-01-13 17:49:09 +0200
commit1a65a6bbbd263538bd04faae2d9e899d59ec0d5d (patch)
tree806aabed4c624787252b37072c36629c1a559bca /src/JSystem/J3DGraphBase/J3DShapeMtx.cpp
parentdd03bf861fdc92109c57d58cc7436066a8a02430 (diff)
J3D debug (#3037)
* J3DGraphBase debug * J3DGraphAnimator debug * J3DGraphLoader debug
Diffstat (limited to 'src/JSystem/J3DGraphBase/J3DShapeMtx.cpp')
-rw-r--r--src/JSystem/J3DGraphBase/J3DShapeMtx.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/JSystem/J3DGraphBase/J3DShapeMtx.cpp b/src/JSystem/J3DGraphBase/J3DShapeMtx.cpp
index a7a4918ddf..a48f9ab928 100644
--- a/src/JSystem/J3DGraphBase/J3DShapeMtx.cpp
+++ b/src/JSystem/J3DGraphBase/J3DShapeMtx.cpp
@@ -271,9 +271,7 @@ void J3DDifferedTexMtx::loadExecute(f32 const (*param_0)[4]) {
MTXInverse(j3dSys.getViewMtx(), sp_a8);
MTXConcat(sp_e8, sp_a8, sp_e8);
MTXConcat(sp_e8, param_0, sp_e8);
- sp_e8[2][3] = 0.0f;
- sp_e8[1][3] = 0.0f;
- sp_e8[0][3] = 0.0f;
+ sp_e8[0][3] = sp_e8[1][3] = sp_e8[2][3] = 0.0f;
mtx = &sp_e8;
break;
}
@@ -415,6 +413,11 @@ void J3DShapeMtxMulti::calcNBTScale(Vec const& param_0, Mtx33* param_1, Mtx33* p
}
void J3DShapeMtxMultiConcatView::load() const {
+ static u8 mtxCache[20] = {
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ };
+
sMtxPtrTbl[0] = j3dSys.getModel()->getMtxBuffer()->getUserAnmMtx(0);
sMtxPtrTbl[1] = j3dSys.getModel()->getWeightAnmMtx(0);
@@ -434,8 +437,7 @@ void J3DShapeMtxMultiConcatView::load() const {
int use_mtx_num = mUseMtxNum;
for (int i = 0; i < use_mtx_num; i++) {
- u32 current_pipeline = sCurrentPipeline;
- J3DShapeMtxConcatView_LoadFunc func = sMtxLoadLODPipeline[current_pipeline];
+ J3DShapeMtxConcatView_LoadFunc func = sMtxLoadLODPipeline[sCurrentPipeline];
if (mUseMtxIndexTable[i] != 0xffff) {
u16 important_mtx_index = important_mtx_indices[mUseMtxIndexTable[i]];
@@ -546,8 +548,5 @@ void J3DShapeMtxYBBoardConcatView::load() const {
}
static void dummy() {
- static u8 mtxCache[20] = {
- 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- };
+
}