mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Match more ntsc-1.2 overlay draw functions (#2061)
* Match more overlay draw functions * Review
This commit is contained in:
parent
ec70295357
commit
3e516f48f3
12 changed files with 73 additions and 85 deletions
|
@ -571,27 +571,23 @@ void func_80967FFC(Actor* thisx, PlayState* play) {
|
|||
|
||||
{
|
||||
s32 i;
|
||||
s32 pad;
|
||||
Color_RGB8 colors[6][2] = {
|
||||
{ { 255, 170, 255 }, { 255, 0, 100 } }, { { 255, 255, 170 }, { 0, 255, 0 } },
|
||||
{ { 255, 255, 170 }, { 255, 255, 0 } }, { { 255, 170, 255 }, { 50, 0, 255 } },
|
||||
{ { 255, 255, 170 }, { 255, 100, 0 } }, { { 170, 255, 255 }, { 0, 100, 255 } },
|
||||
s32 j;
|
||||
Color_RGB8 colors[12] = {
|
||||
{ 255, 170, 255 }, { 255, 0, 100 }, { 255, 255, 170 }, { 0, 255, 0 }, { 255, 255, 170 }, { 255, 255, 0 },
|
||||
{ 255, 170, 255 }, { 50, 0, 255 }, { 255, 255, 170 }, { 255, 100, 0 }, { 170, 255, 255 }, { 0, 100, 255 },
|
||||
};
|
||||
|
||||
Matrix_RotateZ(-M_PI / 2, MTXMODE_APPLY);
|
||||
|
||||
for (i = 0; i < 6; i++) {
|
||||
for (i = 0, j = 0; i < 6; i++, j += 2) {
|
||||
Matrix_RotateZ(M_PI / 3, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_XLU_DISP++, MATRIX_NEW(play->state.gfxCtx, "../z_demo_6k.c", 1115),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gDPPipeSync(POLY_XLU_DISP++);
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0x80, colors[i][0].r, colors[i][0].g, colors[i][0].b, 255);
|
||||
gDPSetEnvColor(POLY_XLU_DISP++, colors[i][1].r, colors[i][1].g, colors[i][1].b, 255);
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0x80, colors[j + 0].r, colors[j + 0].g, colors[j + 0].b, 255);
|
||||
gDPSetEnvColor(POLY_XLU_DISP++, colors[j + 1].r, colors[j + 1].g, colors[j + 1].b, 255);
|
||||
gSPDisplayList(POLY_XLU_DISP++, object_demo_6k_DL_0022B0);
|
||||
}
|
||||
|
||||
// required to avoid optimizing out i
|
||||
if ((s16)i) {}
|
||||
}
|
||||
|
||||
CLOSE_DISPS(play->state.gfxCtx, "../z_demo_6k.c", 1127);
|
||||
|
@ -725,8 +721,6 @@ void func_80968B70(Actor* thisx, PlayState* play) {
|
|||
u8 primColor[4];
|
||||
u8 envColor[3];
|
||||
|
||||
if (1) {}
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_demo_6k.c", 1316);
|
||||
|
||||
Gfx_SetupDL_25Xlu(play->state.gfxCtx);
|
||||
|
@ -785,10 +779,9 @@ void func_80968FB0(Actor* thisx, PlayState* play) {
|
|||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPSegment(POLY_XLU_DISP++, 0x08, displayList);
|
||||
gDPPipeSync(displayList++);
|
||||
if (displayList) {}
|
||||
gDPSetPrimColor(displayList++, 0, 0x80, 255, 255, 255, this->unk_293);
|
||||
gDPSetRenderMode(displayList++, G_RM_PASS, G_RM_ZB_CLD_SURF2);
|
||||
gSPEndDisplayList(displayList++);
|
||||
gSPEndDisplayList(displayList);
|
||||
gDPSetEnvColor(POLY_XLU_DISP++, 255, 200, 0, 255);
|
||||
gSPDisplayList(POLY_XLU_DISP++, gGlowCircleSmallDL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue