mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Make all player models reset texture2
This commit is contained in:
parent
8d72c7eb76
commit
406959e568
6 changed files with 82 additions and 27 deletions
|
@ -2803,6 +2803,19 @@ Gfx toad_material_revert_render_settings[] = {
|
||||||
gsSPTexture(65535, 65535, 0, 0, 0),
|
gsSPTexture(65535, 65535, 0, 0, 0),
|
||||||
gsDPSetEnvColor(255, 255, 255, 255),
|
gsDPSetEnvColor(255, 255, 255, 255),
|
||||||
gsDPSetAlphaCompare(G_AC_NONE),
|
gsDPSetAlphaCompare(G_AC_NONE),
|
||||||
|
|
||||||
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, 0),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 0, 7, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0),
|
||||||
|
gsDPLoadBlock(7, 0, 0, 1023, 256),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, 0, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0),
|
||||||
|
gsDPSetTileSize(0, 0, 0, 124, 124),
|
||||||
|
|
||||||
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, 0),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 256, 6, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0),
|
||||||
|
gsDPLoadBlock(6, 0, 0, 1023, 256),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 256, 1, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0),
|
||||||
|
gsDPSetTileSize(1, 0, 0, 124, 124),
|
||||||
|
|
||||||
gsSPEndDisplayList(),
|
gsSPEndDisplayList(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6258,6 +6258,18 @@ Gfx waluigi_material_revert_render_settings[] = {
|
||||||
gsSPTexture(65535, 65535, 0, 0, 0),
|
gsSPTexture(65535, 65535, 0, 0, 0),
|
||||||
gsDPSetEnvColor(255, 255, 255, 255),
|
gsDPSetEnvColor(255, 255, 255, 255),
|
||||||
gsDPSetAlphaCompare(G_AC_NONE),
|
gsDPSetAlphaCompare(G_AC_NONE),
|
||||||
|
|
||||||
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, 0),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 0, 7, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0),
|
||||||
|
gsDPLoadBlock(7, 0, 0, 1023, 256),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, 0, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0),
|
||||||
|
gsDPSetTileSize(0, 0, 0, 124, 124),
|
||||||
|
|
||||||
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, 0),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 256, 6, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0),
|
||||||
|
gsDPLoadBlock(6, 0, 0, 1023, 256),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 256, 1, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0),
|
||||||
|
gsDPSetTileSize(1, 0, 0, 124, 124),
|
||||||
gsSPEndDisplayList(),
|
gsSPEndDisplayList(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -684,6 +684,9 @@ const GeoLayout wario_geo[] = {
|
||||||
GEO_CLOSE_NODE(),
|
GEO_CLOSE_NODE(),
|
||||||
GEO_ASM(1, geo_mirror_mario_backface_culling),
|
GEO_ASM(1, geo_mirror_mario_backface_culling),
|
||||||
GEO_CLOSE_NODE(),
|
GEO_CLOSE_NODE(),
|
||||||
|
GEO_DISPLAY_LIST(LAYER_OPAQUE, wario_material_revert_render_settings),
|
||||||
|
GEO_DISPLAY_LIST(LAYER_ALPHA, wario_material_revert_render_settings),
|
||||||
|
GEO_DISPLAY_LIST(LAYER_TRANSPARENT, wario_material_revert_render_settings),
|
||||||
GEO_CLOSE_NODE(),
|
GEO_CLOSE_NODE(),
|
||||||
GEO_END(),
|
GEO_END(),
|
||||||
};
|
};
|
||||||
|
|
|
@ -117,3 +117,4 @@ extern const Gfx wario_cap_wings[];
|
||||||
extern const Gfx wario_cap_wings_transparent[];
|
extern const Gfx wario_cap_wings_transparent[];
|
||||||
extern const Gfx wario_metal_cap_wings[];
|
extern const Gfx wario_metal_cap_wings[];
|
||||||
extern const Gfx wario_metal_cap_wings_transparent[];
|
extern const Gfx wario_metal_cap_wings_transparent[];
|
||||||
|
extern const Gfx wario_material_revert_render_settings[];
|
|
@ -4350,3 +4350,27 @@ const Gfx wario_metal_cap_wings_transparent[] = {
|
||||||
gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON),
|
gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON),
|
||||||
gsSPEndDisplayList(),
|
gsSPEndDisplayList(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const Gfx wario_material_revert_render_settings[] = {
|
||||||
|
gsDPPipeSync(),
|
||||||
|
gsSPSetGeometryMode(G_LIGHTING),
|
||||||
|
gsSPClearGeometryMode(G_TEXTURE_GEN),
|
||||||
|
gsDPSetCombineLERP(0, 0, 0, SHADE, 0, 0, 0, ENVIRONMENT, 0, 0, 0, SHADE, 0, 0, 0, ENVIRONMENT),
|
||||||
|
gsSPTexture(65535, 65535, 0, 0, 0),
|
||||||
|
gsDPSetEnvColor(255, 255, 255, 255),
|
||||||
|
gsDPSetAlphaCompare(G_AC_NONE),
|
||||||
|
|
||||||
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, 0),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 0, 7, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0),
|
||||||
|
gsDPLoadBlock(7, 0, 0, 1023, 256),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, 0, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0),
|
||||||
|
gsDPSetTileSize(0, 0, 0, 124, 124),
|
||||||
|
|
||||||
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 1, 0),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b_LOAD_BLOCK, 0, 256, 6, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0),
|
||||||
|
gsDPLoadBlock(6, 0, 0, 1023, 256),
|
||||||
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 256, 1, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, 0),
|
||||||
|
gsDPSetTileSize(1, 0, 0, 124, 124),
|
||||||
|
|
||||||
|
gsSPEndDisplayList(),
|
||||||
|
};
|
||||||
|
|
|
@ -603,8 +603,10 @@ static void import_texture(int tile) {
|
||||||
|
|
||||||
if (!rdp.loaded_texture[tile].addr) {
|
if (!rdp.loaded_texture[tile].addr) {
|
||||||
#ifdef DEVELOPMENT
|
#ifdef DEVELOPMENT
|
||||||
|
/*
|
||||||
fprintf(stderr, "NULL texture: tile %d, format %d/%d, size %d\n",
|
fprintf(stderr, "NULL texture: tile %d, format %d/%d, size %d\n",
|
||||||
tile, (int)fmt, (int)siz, (int)rdp.loaded_texture[tile].size_bytes);
|
tile, (int)fmt, (int)siz, (int)rdp.loaded_texture[tile].size_bytes);
|
||||||
|
*/
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue