mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-04 06:54:33 +00:00
NON_MATCHING func_8099E784 - score 100
Signed-off-by: Anghelo <angheloalf95@gmail.com>
This commit is contained in:
parent
68dac2dcc0
commit
428c3cc81e
1 changed files with 99 additions and 126 deletions
|
@ -354,9 +354,9 @@ void func_8099E4F4(EffDust *this, GlobalContext *globalCtx) {
|
||||||
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_Eff_Dust/func_8099E4F4.s")
|
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_Eff_Dust/func_8099E4F4.s")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NON_MATCHING
|
#ifndef NON_MATCHING
|
||||||
void func_8099E784(EffDust *this, GlobalContext *globalCtx) {
|
void func_8099E784(EffDust *this, GlobalContext *globalCtx) {
|
||||||
#if 0
|
#if 0
|
||||||
//Gfx *temp_v0;
|
//Gfx *temp_v0;
|
||||||
//Gfx *temp_v0_2;
|
//Gfx *temp_v0_2;
|
||||||
//Gfx *temp_v0_3;
|
//Gfx *temp_v0_3;
|
||||||
|
@ -381,6 +381,10 @@ void func_8099E784(EffDust *this, GlobalContext *globalCtx) {
|
||||||
Vec3f *phi_s3;
|
Vec3f *phi_s3;
|
||||||
//s32 phi_s4;
|
//s32 phi_s4;
|
||||||
|
|
||||||
|
f32 x;
|
||||||
|
f32 y;
|
||||||
|
f32 z;
|
||||||
|
|
||||||
Player *player;
|
Player *player;
|
||||||
|
|
||||||
MtxF *mtxf_ptr;
|
MtxF *mtxf_ptr;
|
||||||
|
@ -430,6 +434,9 @@ void func_8099E784(EffDust *this, GlobalContext *globalCtx) {
|
||||||
//Matrix_Mult(spB0 + 0x9E0, (u8)0U);
|
//Matrix_Mult(spB0 + 0x9E0, (u8)0U);
|
||||||
Matrix_Mult(&player->mf_9E0, MTXMODE_NEW);
|
Matrix_Mult(&player->mf_9E0, MTXMODE_NEW);
|
||||||
|
|
||||||
|
x = phi_s3->x;
|
||||||
|
y = phi_s3->y;
|
||||||
|
z = phi_s3->z;
|
||||||
|
|
||||||
//temp_f2 = this->dx;
|
//temp_f2 = this->dx;
|
||||||
temp_f0_2 = 1.0f - *phi_s1;
|
temp_f0_2 = 1.0f - *phi_s1;
|
||||||
|
@ -440,9 +447,14 @@ void func_8099E784(EffDust *this, GlobalContext *globalCtx) {
|
||||||
//phi_s3->x * ((this->dx * (1.0f - (temp_f0 * temp_f0))) + (1.0f - this->dx)),
|
//phi_s3->x * ((this->dx * (1.0f - (temp_f0 * temp_f0))) + (1.0f - this->dx)),
|
||||||
//phi_s3->x * ((this->dx * (1.0f - (*phi_s1 * *phi_s1))) + (1.0f - this->dx)),
|
//phi_s3->x * ((this->dx * (1.0f - (*phi_s1 * *phi_s1))) + (1.0f - this->dx)),
|
||||||
//phi_s3->x * ((this->dx * temp_f20) + (1.0f - this->dx)),
|
//phi_s3->x * ((this->dx * temp_f20) + (1.0f - this->dx)),
|
||||||
phi_s3->x * ((this->dx * temp_f20) + (1.0f - this->dx)),
|
/*phi_s3->x * ((this->dx * temp_f20) + (1.0f - this->dx)),
|
||||||
(temp_f0_2 * phi_s3->y) + 320.0f,
|
(temp_f0_2 * phi_s3->y) + 320.0f,
|
||||||
(temp_f0_2 * phi_s3->z) + -20.0f,
|
(temp_f0_2 * phi_s3->z) + -20.0f, */
|
||||||
|
x * ((this->dx * temp_f20) + (1.0f - this->dx)),
|
||||||
|
//y * temp_f0_2 + 320.0f,
|
||||||
|
y * temp_f0_2 + 320.0f,
|
||||||
|
//z * temp_f0_2 + -20.0f,
|
||||||
|
z * temp_f0_2 + -20.0f,
|
||||||
MTXMODE_APPLY
|
MTXMODE_APPLY
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -463,138 +475,99 @@ void func_8099E784(EffDust *this, GlobalContext *globalCtx) {
|
||||||
CLOSE_DISPS(temp_s2, "../z_eff_dust.c", 515);
|
CLOSE_DISPS(temp_s2, "../z_eff_dust.c", 515);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
GraphicsContext *temp_s2;
|
|
||||||
f32 temp_f0_2;
|
|
||||||
f32 temp_f12;
|
|
||||||
f32 temp_f20;
|
|
||||||
f32 *phi_s1;
|
|
||||||
f32 *new_var2;
|
|
||||||
Vec3f *phi_s3;
|
|
||||||
Player *player;
|
|
||||||
MtxF *mtxf_ptr;
|
|
||||||
Gfx *new_var;
|
|
||||||
s32 i;
|
|
||||||
if (!this->scalingFactor)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
temp_s2 = globalCtx->state.gfxCtx;
|
f32 temp_f0_2;
|
||||||
mtxf_ptr = &globalCtx->mf_11DA0; player = (Player *) globalCtx->actorCtx.actorList[ACTORTYPE_PLAYER].first; OPEN_DISPS(temp_s2, "../z_eff_dust.c", 472); func_80093D18(temp_s2);
|
GraphicsContext *temp_s2;
|
||||||
gDPPipeSync(__gfxCtx->polyXlu.p++);
|
f32 temp_f12;
|
||||||
new_var = __gfxCtx->polyXlu.p++;
|
EffDust *new_var9;
|
||||||
gDPSetPrimColor(new_var, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF);
|
f32 temp_f20;
|
||||||
mtxf_ptr = mtxf_ptr;
|
f32 *phi_s1;
|
||||||
if (player->unk_858 >= 0.85f)
|
f32 *new_var7;
|
||||||
{
|
f32 *new_var5;
|
||||||
gDPSetEnvColor(__gfxCtx->polyXlu.p++, 0xFF, 0x00, 0x00, 0x00);
|
f32 *new_var2;
|
||||||
}
|
Vec3f *phi_s3;
|
||||||
else
|
GlobalContext *new_var4;
|
||||||
{
|
f32 *new_var3;
|
||||||
gDPSetEnvColor(__gfxCtx->polyXlu.p++, 0x00, 0x00, 0xFF, 0x00);
|
MtxF *mtxf_ptr;
|
||||||
}
|
Gfx *new_var;
|
||||||
|
GraphicsContext *new_var6;
|
||||||
phi_s3 = this->unk_024C;
|
s32 i;
|
||||||
phi_s1 = this->unk_014C;
|
Player *player;
|
||||||
gSPSegment(__gfxCtx->polyXlu.p++, 0x08, D_8099EB60);
|
int new_var8;
|
||||||
for (i = 0; i < 0x40; i++)
|
new_var4 = globalCtx;
|
||||||
{
|
new_var2 = this->unk_014C;
|
||||||
if ((*phi_s1) < 1.0f)
|
if (!this->scalingFactor)
|
||||||
{
|
{
|
||||||
gDPSetPrimColor(__gfxCtx->polyXlu.p++, 0, 0, 0xFF, 0xFF, 0xFF, (u8) ((*phi_s1) * 255.0f));
|
|
||||||
if (!(&globalCtx->state))
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
temp_f20 = 1.0f - ((*phi_s1) * (*phi_s1));
|
|
||||||
Matrix_Mult(&player->mf_9E0, MTXMODE_NEW);
|
|
||||||
temp_f0_2 = 1.0f - (*phi_s1);
|
|
||||||
new_var2 = &phi_s3->y;
|
|
||||||
Matrix_Translate(phi_s3->x * ((this->dx * temp_f20) + (1.0f - this->dx)), (temp_f0_2 * (*new_var2)) + 320.0f, (temp_f0_2 * phi_s3->z) + (-20.0f), MTXMODE_APPLY);
|
|
||||||
temp_f12 = (*phi_s1) * this->scalingFactor;
|
|
||||||
Matrix_Scale(temp_f12, temp_f12, temp_f12, MTXMODE_APPLY);
|
|
||||||
func_800D1FD4(mtxf_ptr);
|
|
||||||
gSPMatrix(__gfxCtx->polyXlu.p++, Matrix_NewMtx(temp_s2, "../z_eff_dust.c", 506), (0x00 | 0x02) | 0x00);
|
|
||||||
gSPDisplayList(__gfxCtx->polyXlu.p++, (void *) (((u32) (gSegments[(((u32) D_04037880) << 4) >> 28] + (((u32) D_04037880) & 0x00ffffff))) + 0x80000000));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
phi_s3++;
|
temp_s2 = globalCtx->state.gfxCtx;
|
||||||
phi_s1++;
|
mtxf_ptr = &new_var4->mf_11DA0;
|
||||||
}
|
player = PLAYER;
|
||||||
|
|
||||||
CLOSE_DISPS(temp_s2, "../z_eff_dust.c", 515);
|
OPEN_DISPS(temp_s2, "../z_eff_dust.c", 472);
|
||||||
#endif
|
func_80093D18(temp_s2);
|
||||||
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
|
new_var6 = temp_s2;
|
||||||
GraphicsContext *temp_s2;
|
new_var = POLY_XLU_DISP++;
|
||||||
f32 temp_f0_2;
|
gDPSetPrimColor(new_var, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF);
|
||||||
f32 temp_f12;
|
mtxf_ptr = mtxf_ptr;
|
||||||
f32 temp_f20;
|
if (player->unk_858 >= 0.85f)
|
||||||
f32 *phi_s1;
|
|
||||||
f32 *new_var5;
|
|
||||||
f32 *new_var2;
|
|
||||||
Vec3f *phi_s3;
|
|
||||||
GlobalContext *new_var4;
|
|
||||||
Player *player;
|
|
||||||
f32 *new_var3;
|
|
||||||
MtxF *mtxf_ptr;
|
|
||||||
Gfx *new_var;
|
|
||||||
s32 i;
|
|
||||||
new_var4 = globalCtx;
|
|
||||||
if (!this->scalingFactor)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
temp_s2 = globalCtx->state.gfxCtx;
|
|
||||||
mtxf_ptr = &new_var4->mf_11DA0;
|
|
||||||
player = (Player *) new_var4->actorCtx.actorList[ACTORTYPE_PLAYER].first;
|
|
||||||
OPEN_DISPS(temp_s2, "../z_eff_dust.c", 472);
|
|
||||||
func_80093D18(temp_s2);
|
|
||||||
gDPPipeSync(__gfxCtx->polyXlu.p++);
|
|
||||||
new_var = __gfxCtx->polyXlu.p++;
|
|
||||||
gDPSetPrimColor(new_var, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF);
|
|
||||||
mtxf_ptr = mtxf_ptr;
|
|
||||||
if (player->unk_858 >= 0.85f)
|
|
||||||
{
|
|
||||||
gDPSetEnvColor(__gfxCtx->polyXlu.p++, 0xFF, 0x00, 0x00, 0x00);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gDPSetEnvColor(__gfxCtx->polyXlu.p++, 0x00, 0x00, 0xFF, 0x00);
|
|
||||||
}
|
|
||||||
|
|
||||||
phi_s3 = this->unk_024C;
|
|
||||||
phi_s1 = this->unk_014C;
|
|
||||||
gSPSegment(__gfxCtx->polyXlu.p++, 0x08, D_8099EB60);
|
|
||||||
for (i = 0; i < 0x40; i++)
|
|
||||||
{
|
|
||||||
if ((*phi_s1) < 1.0f)
|
|
||||||
{
|
{
|
||||||
gDPSetPrimColor(__gfxCtx->polyXlu.p++, 0, 0, 0xFF, 0xFF, 0xFF, (u8) ((*phi_s1) * 255.0f));
|
gDPSetEnvColor(POLY_XLU_DISP++, 0xFF, 0x00, 0x00, 0x00);
|
||||||
if (!(&new_var4->state))
|
}
|
||||||
{
|
else
|
||||||
}
|
{
|
||||||
|
gDPSetEnvColor(POLY_XLU_DISP++, 0x00, 0x00, 0xFF, 0x00);
|
||||||
temp_f20 = 1.0f - ((*phi_s1) * (*phi_s1));
|
|
||||||
Matrix_Mult(&player->mf_9E0, MTXMODE_NEW);
|
|
||||||
|
|
||||||
new_var3 = &phi_s3->x;
|
|
||||||
new_var2 = &phi_s3->y;
|
|
||||||
new_var5 = new_var2;
|
|
||||||
Matrix_Translate((*new_var3) * ((this->dx * temp_f20) + (1.0f - this->dx)), ((1.0f - (*phi_s1)) * (*new_var5)) + 320.0f, ((1.0f - (*phi_s1)) * phi_s3->z) + (-20.0f), MTXMODE_APPLY);
|
|
||||||
temp_f12 = (*phi_s1) * this->scalingFactor;
|
|
||||||
Matrix_Scale(temp_f12, temp_f12, temp_f12, MTXMODE_APPLY);
|
|
||||||
func_800D1FD4(mtxf_ptr);
|
|
||||||
gSPMatrix(__gfxCtx->polyXlu.p++, Matrix_NewMtx(temp_s2, "../z_eff_dust.c", 506), (0x00 | 0x02) | 0x00);
|
|
||||||
gSPDisplayList(__gfxCtx->polyXlu.p++, (void *) (((u32) (gSegments[(((u32) D_04037880) << 4) >> 28] + (((u32) D_04037880) & 0x00ffffff))) + 0x80000000));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
phi_s3++;
|
phi_s3 = this->unk_024C;
|
||||||
phi_s1++;
|
new_var7 = new_var2;
|
||||||
}
|
phi_s1 = new_var7;
|
||||||
|
gSPSegment(POLY_XLU_DISP++, 0x08, D_8099EB60);
|
||||||
|
for (i = 0; i < 0x40; i++) {
|
||||||
|
if ((*phi_s1) < 1.0f) {
|
||||||
|
|
||||||
CLOSE_DISPS(temp_s2, "../z_eff_dust.c", 515);
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 0xFF, 0xFF, 0xFF, (u8) (255.0f * (*phi_s1)));
|
||||||
|
|
||||||
|
new_var9 = this;
|
||||||
|
if (!(&new_var4->state)) {
|
||||||
|
if (!new_var9) {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
temp_f20 = 1.0f - ((*phi_s1) * (*phi_s1));
|
||||||
|
|
||||||
|
Matrix_Mult(&player->mf_9E0, MTXMODE_NEW);
|
||||||
|
|
||||||
|
new_var3 = &phi_s3->x;
|
||||||
|
new_var2 = &phi_s3->y;
|
||||||
|
new_var5 = new_var2;
|
||||||
|
|
||||||
|
Matrix_Translate(
|
||||||
|
(*new_var3) * ((new_var9->dx * temp_f20) + (1.0f - new_var9->dx)),
|
||||||
|
((*new_var5) * (1.0f - (*phi_s1))) + 320.0f,
|
||||||
|
(phi_s3->z * (1.0f - (*phi_s1))) + (-20.0f),
|
||||||
|
MTXMODE_APPLY
|
||||||
|
);
|
||||||
|
temp_f12 = (*phi_s1) * new_var9->scalingFactor;
|
||||||
|
|
||||||
|
Matrix_Scale(temp_f12, temp_f12, temp_f12, MTXMODE_APPLY);
|
||||||
|
|
||||||
|
func_800D1FD4(mtxf_ptr);
|
||||||
|
|
||||||
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(new_var6, "../z_eff_dust.c", 506), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
|
gSPDisplayList(POLY_XLU_DISP++, SEGMENTED_TO_VIRTUAL(D_04037880));
|
||||||
|
}
|
||||||
|
|
||||||
|
phi_s3++;
|
||||||
|
phi_s1++;
|
||||||
|
}
|
||||||
|
|
||||||
|
CLOSE_DISPS(temp_s2, "../z_eff_dust.c", 515);
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_Eff_Dust/func_8099E784.s")
|
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_Eff_Dust/func_8099E784.s")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue