diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-03-29 04:44:59 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-03-29 04:44:59 -0300 |
| commit | 2d16e8c44feda5ef5f6f24a912c3cab0c0c95f39 (patch) | |
| tree | 26cf7c4d3ab2ed6731f7ffc7238667e9133d80ff | |
| parent | 8222c858047e2ddd2b5164aa0eb6aef38960e715 (diff) | |
Seam stars margin increase
| -rw-r--r-- | src/engine/fox_bg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/fox_bg.c b/src/engine/fox_bg.c index 31c6c59f..245baca7 100644 --- a/src/engine/fox_bg.c +++ b/src/engine/fox_bg.c @@ -207,7 +207,7 @@ void Background_DrawStarfield(void) { float starfieldHeight; float vx; float vy; - const float STAR_MARGIN = 10.0f; // Margin to hide seam stars + const float STAR_MARGIN = 40.0f; // Margin to hide seam stars // Set projection to orthographic before drawing stars Lib_InitOrtho(&gMasterDisp); @@ -295,8 +295,8 @@ void Background_DrawStarfield(void) { if (vx >= (marginX - STAR_MARGIN) && vx <= (marginX + renderMaskWidth + STAR_MARGIN) && vy >= (renderMaskHeight - STAR_MARGIN) && vy <= ((renderMaskHeight * 2) + STAR_MARGIN)) { - bool skipInterpolation = (fabsf(vx - gStarPrevX[i]) > starfieldWidth / 2.0f) || - (fabsf(vy - gStarPrevY[i]) > starfieldHeight / 2.0f); + bool skipInterpolation = (fabsf(vx - gStarPrevX[i]) > (marginX + renderMaskWidth + STAR_MARGIN) / 2.0f) || + (fabsf(vy - gStarPrevY[i]) > (marginX + renderMaskWidth + STAR_MARGIN) / 2.0f); if (skipInterpolation) { // @port Skip interpolation @@ -328,7 +328,7 @@ void Background_DrawStarfield(void) { Matrix_Pop(&gGfxMatrix); if (skipInterpolation) { - // @port Skip interpolation + // @port Re-enable Interpolation if it was skipped FrameInterpolation_ShouldInterpolateFrame(true); } else { FrameInterpolation_RecordCloseChild(); |
