Fix several ocarina effects (#108)

This commit is contained in:
Rozelette
2024-05-22 09:04:59 -05:00
committed by Garrett Cox
parent 6164a75d67
commit 21e27a512b
2 changed files with 6 additions and 2 deletions
@@ -197,7 +197,9 @@ void OceffStorm_Draw2(Actor* thisx, PlayState* play) {
void OceffStorm_Draw(Actor* thisx, PlayState* play) {
u32 scroll = play->state.frames & 0xFFF;
OceffStorm* this = (OceffStorm*)thisx;
Vtx* vtxPtr = sSongOfStormsCylinderVtx;
// #region 2S2H [Port] Originally this was just a pointer to the vertices, now it's the OTR path so we need to grab it's actual address
Vtx* vtxPtr = ResourceMgr_LoadVtxByName(sSongOfStormsCylinderVtx);
// #endregion
OPEN_DISPS(play->state.gfxCtx);
@@ -94,7 +94,9 @@ void OceffWipe_Draw(Actor* thisx, PlayState* play) {
}
for (i = 0; i < 20; i++) {
vtxPtr = sSongOfTimeFrustumVtx;
// #region 2S2H [Port] Originally this was just a pointer to the vertices, now it's the OTR path so we need to grab it's actual address
vtxPtr = ResourceMgr_LoadVtxByName(sSongOfTimeFrustumVtx);
// #endregion
vtxPtr[i * 2 + 0].v.cn[3] = alphaTable[(sAlphaIndices[i] & 0xF0) >> 4];
vtxPtr[i * 2 + 1].v.cn[3] = alphaTable[sAlphaIndices[i] & 0xF];
}