mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-11 03:45:51 -04:00
Merge branch 'main' into frameinterpolation
This commit is contained in:
+10
-10
@@ -21,10 +21,10 @@ void convert_to_fixed_point_matrix_animation(Mtx* dest, Mat4 src) {
|
||||
guMtxF2L(src, dest);
|
||||
#else
|
||||
s32 asFixedPoint;
|
||||
register s32 i;
|
||||
register s16* a3 = (s16*) dest; // all integer parts stored in first 16 bytes
|
||||
register s16* t0 = (s16*) dest + 16; // all fraction parts stored in last 16 bytes
|
||||
register f32* t1 = (f32*) src;
|
||||
s32 i;
|
||||
s16* a3 = (s16*) dest; // all integer parts stored in first 16 bytes
|
||||
s16* t0 = (s16*) dest + 16; // all fraction parts stored in last 16 bytes
|
||||
f32* t1 = (f32*) src;
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
asFixedPoint = *t1++ * (1 << 16); //! float-to-integer conversion responsible for PU crashes
|
||||
@@ -35,14 +35,14 @@ void convert_to_fixed_point_matrix_animation(Mtx* dest, Mat4 src) {
|
||||
}
|
||||
|
||||
void mtxf_translate_rotate2(Mat4 dest, Vec3f pos, Vec3s angle) {
|
||||
register f32 sx = sins(angle[0]);
|
||||
register f32 cx = coss(angle[0]);
|
||||
f32 sx = sins(angle[0]);
|
||||
f32 cx = coss(angle[0]);
|
||||
|
||||
register f32 sy = sins(angle[1]);
|
||||
register f32 cy = coss(angle[1]);
|
||||
f32 sy = sins(angle[1]);
|
||||
f32 cy = coss(angle[1]);
|
||||
|
||||
register f32 sz = sins(angle[2]);
|
||||
register f32 cz = coss(angle[2]);
|
||||
f32 sz = sins(angle[2]);
|
||||
f32 cz = coss(angle[2]);
|
||||
|
||||
dest[0][0] = cy * cz;
|
||||
dest[0][1] = cy * sz;
|
||||
|
||||
@@ -339,7 +339,7 @@ void WarioStadium::Render(struct UnkStruct_800DC5EC* arg0) {
|
||||
prevFrame = 0;
|
||||
}
|
||||
currentScreenSection++;
|
||||
if (currentScreenSection > 5) {
|
||||
if (currentScreenSection >= 6) {
|
||||
currentScreenSection = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
#include "SpaghettiGui.h"
|
||||
#include <libultraship/src/window/gui/Gui.h>
|
||||
#include <libultraship/src/window/Window.h>
|
||||
#ifdef __SWITCH__
|
||||
#include "ConfigVersion.h"
|
||||
#else
|
||||
#include "Config.h"
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <SDL_hints.h>
|
||||
|
||||
@@ -35,30 +35,30 @@ void FB_CreateFramebuffers(void) {
|
||||
* sure f3dex2 is loaded before this function is called.
|
||||
*/
|
||||
void FB_CopyToFramebuffer(Gfx** gfxP, s32 fb_src, s32 fb_dest, u8 oncePerFrame, u8* hasCopied) {
|
||||
// Gfx* gfx = *gfxP;
|
||||
Gfx* gfx = *gfxP;
|
||||
|
||||
// gSPMatrix(gfx++, &gIdentityMatrix, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPMatrix(gfx++, &gIdentityMatrix, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
||||
// gDPSetOtherMode(gfx++,
|
||||
// G_AD_DISABLE | G_CD_DISABLE | G_CK_NONE | G_TC_FILT | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
||||
// G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
||||
// G_AC_NONE | G_ZS_PRIM | G_RM_OPA_SURF | G_RM_OPA_SURF2);
|
||||
gDPSetOtherMode(gfx++,
|
||||
G_AD_DISABLE | G_CD_DISABLE | G_CK_NONE | G_TC_FILT | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
||||
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
||||
G_AC_NONE | G_ZS_PRIM | G_RM_OPA_SURF | G_RM_OPA_SURF2);
|
||||
|
||||
// gSPClearGeometryMode(gfx++, G_FOG | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR);
|
||||
// gSPSetGeometryMode(gfx++, G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH);
|
||||
gSPClearGeometryMode(gfx++, G_FOG | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR);
|
||||
gSPSetGeometryMode(gfx++, G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH);
|
||||
|
||||
// gDPSetBlendColor(gfx++, 255, 255, 255, 8);
|
||||
// gDPSetPrimDepth(gfx++, 0xFFFF, 0xFFFF);
|
||||
gDPSetBlendColor(gfx++, 255, 255, 255, 8);
|
||||
gDPSetPrimDepth(gfx++, 0xFFFF, 0xFFFF);
|
||||
|
||||
// gDPSetEnvColor(gfx++, 255, 255, 255, 255);
|
||||
// gDPSetCombineLERP(gfx++, TEXEL0, 0, ENVIRONMENT, 0, 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0, 0, 0, 0,
|
||||
// ENVIRONMENT);
|
||||
gDPSetEnvColor(gfx++, 255, 255, 255, 255);
|
||||
gDPSetCombineLERP(gfx++, TEXEL0, 0, ENVIRONMENT, 0, 0, 0, 0, ENVIRONMENT, TEXEL0, 0, ENVIRONMENT, 0, 0, 0, 0,
|
||||
ENVIRONMENT);
|
||||
|
||||
// gDPSetScissor(gfx++, G_SC_NON_INTERLACE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
gDPSetScissor(gfx++, G_SC_NON_INTERLACE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
|
||||
// gDPCopyFB(gfx++, fb_dest, fb_src, oncePerFrame, hasCopied);
|
||||
gDPCopyFB(gfx++, fb_dest, fb_src, oncePerFrame, hasCopied);
|
||||
|
||||
// *gfxP = gfx;
|
||||
*gfxP = gfx;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user