Tagged stars

This commit is contained in:
KiritoDv 2024-10-16 12:52:05 -06:00
parent e5ed74b978
commit 9da016bac9

View File

@ -171,6 +171,8 @@ void Background_DrawStarfield(void) {
float vy; float vy;
const float STAR_MARGIN = 10.0f; // Margin to hide seam stars const float STAR_MARGIN = 10.0f; // Margin to hide seam stars
FrameInterpolation_RecordOpenChild("Starfield", 0);
// Set projection to orthographic before drawing stars // Set projection to orthographic before drawing stars
Lib_InitOrtho(&gMasterDisp); Lib_InitOrtho(&gMasterDisp);
@ -285,6 +287,8 @@ void Background_DrawStarfield(void) {
// Finalize rendering state // Finalize rendering state
gDPPipeSync(gMasterDisp++); gDPPipeSync(gMasterDisp++);
gDPSetColorDither(gMasterDisp++, G_CD_MAGICSQ); gDPSetColorDither(gMasterDisp++, G_CD_MAGICSQ);
FrameInterpolation_RecordCloseChild();
} }
void Background_DrawPartialStarfield(s32 yMin, s32 yMax) { // Stars that are in the Epilogue void Background_DrawPartialStarfield(s32 yMin, s32 yMax) { // Stars that are in the Epilogue
@ -308,6 +312,8 @@ void Background_DrawPartialStarfield(s32 yMin, s32 yMax) { // Stars that are in
float starfieldWidth = 1.0f * currentScreenWidth; float starfieldWidth = 1.0f * currentScreenWidth;
float starfieldHeight = 1.0f * currentScreenHeight; float starfieldHeight = 1.0f * currentScreenHeight;
FrameInterpolation_RecordOpenChild("Starfield", 0);
// Graphics pipeline setup // Graphics pipeline setup
gDPPipeSync(gMasterDisp++); gDPPipeSync(gMasterDisp++);
gDPSetCycleType(gMasterDisp++, G_CYC_FILL); gDPSetCycleType(gMasterDisp++, G_CYC_FILL);
@ -388,6 +394,7 @@ void Background_DrawPartialStarfield(s32 yMin, s32 yMax) { // Stars that are in
} }
gDPPipeSync(gMasterDisp++); gDPPipeSync(gMasterDisp++);
gDPSetColorDither(gMasterDisp++, G_CD_MAGICSQ); gDPSetColorDither(gMasterDisp++, G_CD_MAGICSQ);
FrameInterpolation_RecordCloseChild();
} }
void func_bg_8003E1E0(void) { void func_bg_8003E1E0(void) {