mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-15 13:19:03 -04:00
Port over decomp updates for vis* and reimplement vismono fb (#4533)
* Port over decomp updates for vis* * move vismono framebuffer handling to file
This commit is contained in:
@@ -196,10 +196,10 @@ void BgHaka_Draw(Actor* thisx, PlayState* play) {
|
||||
play->envCtx.adjLight1Color[0] = newColor.r;
|
||||
play->envCtx.adjLight1Color[1] = newColor.g;
|
||||
play->envCtx.adjLight1Color[2] = newColor.b;
|
||||
D_801614B0.r = newColor.r;
|
||||
D_801614B0.g = newColor.g;
|
||||
D_801614B0.b = newColor.b;
|
||||
D_801614B0.a = 255;
|
||||
gVisMonoColor.r = newColor.r;
|
||||
gVisMonoColor.g = newColor.g;
|
||||
gVisMonoColor.b = newColor.b;
|
||||
gVisMonoColor.a = 255;
|
||||
gDPSetGrayscaleColor(POLY_OPA_DISP++, newColor.r, newColor.g, newColor.b, 255);
|
||||
gSPGrayscale(POLY_OPA_DISP++, true);
|
||||
}
|
||||
|
||||
@@ -84,8 +84,6 @@ void EndTitle_DrawFull(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
|
||||
OVERLAY_DISP = Gfx_SetupDL_64(OVERLAY_DISP);
|
||||
if (D_801614B0.a > 0)
|
||||
gSPGrayscale(OVERLAY_DISP++, false);
|
||||
gDPSetTextureLUT(OVERLAY_DISP++, G_TT_NONE);
|
||||
gDPSetEnvColor(OVERLAY_DISP++, 255, 120, 30, 0);
|
||||
gDPSetRenderMode(OVERLAY_DISP++, G_RM_PASS, G_RM_XLU_SURF2);
|
||||
@@ -110,8 +108,6 @@ void EndTitle_DrawFull(Actor* thisx, PlayState* play) {
|
||||
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 0, 0, 0, 0);
|
||||
gSPTextureRectangle(OVERLAY_DISP++, 104 << 2, 177 << 2, 216 << 2, 192 << 2, G_TX_RENDERTILE, 0, 0, 1 << 10,
|
||||
1 << 10);
|
||||
if (D_801614B0.a > 0)
|
||||
gSPGrayscale(OVERLAY_DISP++, true);
|
||||
CLOSE_DISPS(play->state.gfxCtx);
|
||||
}
|
||||
|
||||
|
||||
@@ -293,8 +293,6 @@ void Title_Init(GameState* thisx) {
|
||||
|
||||
//ResourceMgr_LoadDirectory("nintendo_rogo_static*");
|
||||
|
||||
// Disable vismono
|
||||
D_801614B0.a = 0;
|
||||
R_UPDATE_RATE = 1;
|
||||
Matrix_Init(&this->state);
|
||||
View_Init(&this->view, this->state.gfxCtx);
|
||||
|
||||
Reference in New Issue
Block a user