mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-04-28 12:27:59 +03:00
disable texture interpolation in aquas floor and surface for now
This commit is contained in:
parent
751ecd3e7b
commit
996d212120
1 changed files with 16 additions and 0 deletions
|
@ -1712,6 +1712,7 @@ void Background_DrawGround(void) {
|
||||||
32);
|
32);
|
||||||
gDPSetTextureImage(gMasterDisp++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, SEGMENTED_TO_VIRTUAL(D_AQ_600AB68));
|
gDPSetTextureImage(gMasterDisp++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, SEGMENTED_TO_VIRTUAL(D_AQ_600AB68));
|
||||||
|
|
||||||
|
#ifdef TEXTURE_INTERPOLATION_FIX_PENDING
|
||||||
int interpolatedFrames = GameEngine_GetInterpolationFrameCount();
|
int interpolatedFrames = GameEngine_GetInterpolationFrameCount();
|
||||||
|
|
||||||
temp_s0 = fabsf(Math_ModF(2.0f * (gPathTexScroll * 0.2133333f), 128.0f));
|
temp_s0 = fabsf(Math_ModF(2.0f * (gPathTexScroll * 0.2133333f), 128.0f));
|
||||||
|
@ -1736,6 +1737,13 @@ void Background_DrawGround(void) {
|
||||||
yScroll += inc >= 0 ? inc : -inc;
|
yScroll += inc >= 0 ? inc : -inc;
|
||||||
yScroll = fabs(Math_ModF(yScroll, 128.0f));
|
yScroll = fabs(Math_ModF(yScroll, 128.0f));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
temp_s0 = fabsf(Math_ModF(2.0f * (gPathTexScroll * 0.2133333f), 128.0f));
|
||||||
|
temp_fv0 = Math_ModF((10000.0f - gPlayer[gPlayerNum].xPath) * 0.32f, 128.0f);
|
||||||
|
|
||||||
|
gDPSetupTile(gMasterDisp++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, temp_fv0, temp_s0,
|
||||||
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD);
|
||||||
|
#endif
|
||||||
|
|
||||||
// CENTER FAR
|
// CENTER FAR
|
||||||
Matrix_Push(&gGfxMatrix);
|
Matrix_Push(&gGfxMatrix);
|
||||||
|
@ -1788,6 +1796,7 @@ void Background_DrawGround(void) {
|
||||||
32);
|
32);
|
||||||
gDPSetTextureImage(gMasterDisp++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, SEGMENTED_TO_VIRTUAL(D_AQ_602ACC0));
|
gDPSetTextureImage(gMasterDisp++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, SEGMENTED_TO_VIRTUAL(D_AQ_602ACC0));
|
||||||
|
|
||||||
|
#ifdef TEXTURE_INTERPOLATION_FIX_PENDING
|
||||||
int interpolatedFrames = GameEngine_GetInterpolationFrameCount();
|
int interpolatedFrames = GameEngine_GetInterpolationFrameCount();
|
||||||
|
|
||||||
temp_s0 = fabsf(Math_ModF(2.0f * (gPathTexScroll * 0.2133333f), 128.0f));
|
temp_s0 = fabsf(Math_ModF(2.0f * (gPathTexScroll * 0.2133333f), 128.0f));
|
||||||
|
@ -1812,6 +1821,13 @@ void Background_DrawGround(void) {
|
||||||
yScroll += inc >= 0 ? inc : -inc;
|
yScroll += inc >= 0 ? inc : -inc;
|
||||||
yScroll = fabs(Math_ModF(yScroll, 128.0f));
|
yScroll = fabs(Math_ModF(yScroll, 128.0f));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
temp_s0 = fabsf(Math_ModF(2.0f * (gPathTexScroll * 0.2133333f), 128.0f));
|
||||||
|
temp_fv0 = Math_ModF((10000.0f - gPlayer[gPlayerNum].xPath) * 0.32f, 128.0f);
|
||||||
|
|
||||||
|
gDPSetupTile(gMasterDisp++, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, temp_fv0, temp_s0,
|
||||||
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gAqDrawMode != 0) {
|
if (gAqDrawMode != 0) {
|
||||||
RCP_SetupDL(&gMasterDisp, SETUPDL_47);
|
RCP_SetupDL(&gMasterDisp, SETUPDL_47);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue