mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-13 11:24:40 +00:00
Match z_fbdemo_wipe1.c
This commit is contained in:
parent
1d275fa9a5
commit
715525d22c
1 changed files with 8 additions and 2 deletions
|
@ -88,7 +88,8 @@ void TransitionWipe_Draw(void* thisx, Gfx** gfxP) {
|
||||||
Gfx* gfx = *gfxP;
|
Gfx* gfx = *gfxP;
|
||||||
Mtx* modelView;
|
Mtx* modelView;
|
||||||
TransitionWipe* this = (TransitionWipe*)thisx;
|
TransitionWipe* this = (TransitionWipe*)thisx;
|
||||||
s32 pad[4];
|
Color_RGBA8_u32* color;
|
||||||
|
s32 pad[3];
|
||||||
Gfx* texScroll;
|
Gfx* texScroll;
|
||||||
|
|
||||||
modelView = this->modelView[this->frame];
|
modelView = this->modelView[this->frame];
|
||||||
|
@ -97,10 +98,15 @@ void TransitionWipe_Draw(void* thisx, Gfx** gfxP) {
|
||||||
guScale(&modelView[0], 0.56f, 0.56f, 1.0f);
|
guScale(&modelView[0], 0.56f, 0.56f, 1.0f);
|
||||||
guRotate(&modelView[1], 0.0f, 0.0f, 0.0f, 1.0f);
|
guRotate(&modelView[1], 0.0f, 0.0f, 0.0f, 1.0f);
|
||||||
guTranslate(&modelView[2], 0.0f, 0.0f, 0.0f);
|
guTranslate(&modelView[2], 0.0f, 0.0f, 0.0f);
|
||||||
|
|
||||||
gDPPipeSync(gfx++);
|
gDPPipeSync(gfx++);
|
||||||
|
|
||||||
texScroll = Gfx_BranchTexScroll(&gfx, this->texX, this->texY, 0, 0);
|
texScroll = Gfx_BranchTexScroll(&gfx, this->texX, this->texY, 0, 0);
|
||||||
gSPSegment(gfx++, 8, texScroll);
|
gSPSegment(gfx++, 8, texScroll);
|
||||||
gDPSetPrimColor(gfx++, 0, 0x80, this->color.r, this->color.g, this->color.b, 255);
|
|
||||||
|
color = &this->color;
|
||||||
|
gDPSetPrimColor(gfx++, 0, 0x80, color->r, color->g, color->b, 255);
|
||||||
|
|
||||||
gSPMatrix(gfx++, &this->projection, G_MTX_LOAD | G_MTX_PROJECTION);
|
gSPMatrix(gfx++, &this->projection, G_MTX_LOAD | G_MTX_PROJECTION);
|
||||||
gSPPerspNormalize(gfx++, this->normal);
|
gSPPerspNormalize(gfx++, this->normal);
|
||||||
gSPMatrix(gfx++, &this->lookAt, G_MTX_MUL | G_MTX_PROJECTION);
|
gSPMatrix(gfx++, &this->lookAt, G_MTX_MUL | G_MTX_PROJECTION);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue