mirror of
https://github.com/zeldaret/oot
synced 2026-05-30 00:46:55 -04:00
Decompile z_kankyo (#956)
* working * start color switch * progress * progress * progress on bgm func * progress * game over matched (except the rodata meme) * start update * progress * lightning docs done * progress * progress * progress * progress * progress * can compile at least * suns state, progress on kankyo_update * some new names * progress * progress * progress * new functions * cleanup * more matches * another match * now functional * format * better match * hugely improved update * cleanup/review * remove old changes * review2 * review3 * missed one * review4 * change asm filenames * update doorwarp1 * review5 * Kankyo_ -> Environment_ * format * merge master and format functions.h Co-authored-by: Jacob Young <jacobly0@users.noreply.github.com> Co-authored-by: fig <fig02srl@gmail.com> Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
This commit is contained in:
+12
-12
@@ -1355,9 +1355,9 @@ void func_8002EBCC(Actor* actor, GlobalContext* globalCtx, s32 flag) {
|
||||
Gfx* displayListHead;
|
||||
Gfx* displayList;
|
||||
|
||||
lightDir.x = globalCtx->envCtx.unk_2A;
|
||||
lightDir.y = globalCtx->envCtx.unk_2B;
|
||||
lightDir.z = globalCtx->envCtx.unk_2C;
|
||||
lightDir.x = globalCtx->envCtx.dirLight1.params.dir.x;
|
||||
lightDir.y = globalCtx->envCtx.dirLight1.params.dir.y;
|
||||
lightDir.z = globalCtx->envCtx.dirLight1.params.dir.z;
|
||||
|
||||
if (HREG(80) == 6) {
|
||||
osSyncPrintf("z_actor.c 3637 game_play->view.eye=[%f(%f) %f %f]\n", globalCtx->view.eye.x,
|
||||
@@ -1386,9 +1386,9 @@ void func_8002ED80(Actor* actor, GlobalContext* globalCtx, s32 flag) {
|
||||
Gfx* displayListHead;
|
||||
Gfx* displayList;
|
||||
|
||||
lightDir.x = globalCtx->envCtx.unk_2A;
|
||||
lightDir.y = globalCtx->envCtx.unk_2B;
|
||||
lightDir.z = globalCtx->envCtx.unk_2C;
|
||||
lightDir.x = globalCtx->envCtx.dirLight1.params.dir.x;
|
||||
lightDir.y = globalCtx->envCtx.dirLight1.params.dir.y;
|
||||
lightDir.z = globalCtx->envCtx.dirLight1.params.dir.z;
|
||||
|
||||
hilite = func_8002EB44(&actor->world.pos, &globalCtx->view.eye, &lightDir, globalCtx->state.gfxCtx);
|
||||
|
||||
@@ -3568,9 +3568,9 @@ void Actor_SetColorFilter(Actor* actor, s16 colorFlag, s16 colorIntensityMax, s1
|
||||
Hilite* func_800342EC(Vec3f* object, GlobalContext* globalCtx) {
|
||||
Vec3f lightDir;
|
||||
|
||||
lightDir.x = globalCtx->envCtx.unk_2A;
|
||||
lightDir.y = globalCtx->envCtx.unk_2B;
|
||||
lightDir.z = globalCtx->envCtx.unk_2C;
|
||||
lightDir.x = globalCtx->envCtx.dirLight1.params.dir.x;
|
||||
lightDir.y = globalCtx->envCtx.dirLight1.params.dir.y;
|
||||
lightDir.z = globalCtx->envCtx.dirLight1.params.dir.z;
|
||||
|
||||
return func_8002EABC(object, &globalCtx->view.eye, &lightDir, globalCtx->state.gfxCtx);
|
||||
}
|
||||
@@ -3578,9 +3578,9 @@ Hilite* func_800342EC(Vec3f* object, GlobalContext* globalCtx) {
|
||||
Hilite* func_8003435C(Vec3f* object, GlobalContext* globalCtx) {
|
||||
Vec3f lightDir;
|
||||
|
||||
lightDir.x = globalCtx->envCtx.unk_2A;
|
||||
lightDir.y = globalCtx->envCtx.unk_2B;
|
||||
lightDir.z = globalCtx->envCtx.unk_2C;
|
||||
lightDir.x = globalCtx->envCtx.dirLight1.params.dir.x;
|
||||
lightDir.y = globalCtx->envCtx.dirLight1.params.dir.y;
|
||||
lightDir.z = globalCtx->envCtx.dirLight1.params.dir.z;
|
||||
|
||||
return func_8002EB44(object, &globalCtx->view.eye, &lightDir, globalCtx->state.gfxCtx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user