Fix footprints and deku link spin attack blur (#93)

This commit is contained in:
Garrett Cox
2024-05-22 09:04:58 -05:00
parent 420c5e77de
commit 434646559f
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -645,8 +645,11 @@ void EffectBlure_DrawSmooth(EffectBlure* this2, GraphicsContext* gfxCtx) {
MtxF sp9C;
MtxF sp5C;
Mtx* mtx;
static s32 interpolationEpoch = 0;
interpolationEpoch++;
OPEN_DISPS(gfxCtx);
FrameInterpolation_RecordOpenChild(this, interpolationEpoch);
if (this->numElements < 2) {
return;
@@ -688,6 +691,7 @@ void EffectBlure_DrawSmooth(EffectBlure* this2, GraphicsContext* gfxCtx) {
}
}
FrameInterpolation_RecordCloseChild();
CLOSE_DISPS(gfxCtx);
}
+5
View File
@@ -2,6 +2,7 @@
#include "z64.h"
#include "macros.h"
#include "functions.h"
#include "2s2h/Enhancements/interpolation/frame_interpolation.h"
#include "assets/code/eff_footmark/eff_footmark.h"
@@ -111,6 +112,8 @@ void EffFootmark_Draw(PlayState* play) {
for (footmark = play->footprintInfo, i = 0; i < ARRAY_COUNT(play->footprintInfo); i++, footmark++) {
if (footmark->actor != NULL) {
FrameInterpolation_RecordOpenChild(footmark, i);
Matrix_Put(&footmark->mf);
Matrix_Scale(footmark->size * (1.0f / 0x100) * 0.7f, 1, footmark->size * (1.0f / 0x100), MTXMODE_APPLY);
@@ -120,6 +123,8 @@ void EffFootmark_Draw(PlayState* play) {
footmark->alpha >> 8);
gSPDisplayList(gfxCtx->polyXlu.p++, gEffFootprintModelDL);
FrameInterpolation_RecordCloseChild();
}
}
}