From 34b971f2f29f73d5ad9e47c838510b9c2c2f2878 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Sat, 23 Nov 2024 19:52:06 -0300 Subject: [PATCH] tag backdrop --- src/engine/fox_bg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/fox_bg.c b/src/engine/fox_bg.c index 688a0943..dbc652f5 100644 --- a/src/engine/fox_bg.c +++ b/src/engine/fox_bg.c @@ -804,7 +804,7 @@ void Background_DrawBackdrop(void) { } break; - case LEVELTYPE_SPACE: // WIP Needed (space levels have textures that wrap around the screen) + case LEVELTYPE_SPACE: if (gPlayer[0].state_1C8 != PLAYERSTATE_1C8_ENTER_WARP_ZONE) { Matrix_Push(&gGfxMatrix); camYawDeg = Math_RadToDeg(gPlayer[0].camYaw); @@ -852,6 +852,9 @@ void Background_DrawBackdrop(void) { sp134 = -(360.0f - sp134); } + // @port: Tag the transform. + FrameInterpolation_RecordOpenChild("Backdrop_Space", 0); + Matrix_RotateZ(gGfxMatrix, gStarfieldRoll, MTXF_APPLY); switch (levelId) { @@ -970,6 +973,8 @@ void Background_DrawBackdrop(void) { gSPDisplayList(gMasterDisp++, D_SY_6001840); break; } + // @port Pop the transform id. + FrameInterpolation_RecordCloseChild(); } Matrix_Pop(&gGfxMatrix); }