From 4e9b83666e7209a0ad2242748459d3d8cbcdf8f6 Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 13 Nov 2023 20:58:05 -0800 Subject: [PATCH] Add support for any layer in mirror --- src/game/mario_misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/mario_misc.c b/src/game/mario_misc.c index f3e5fcf9..58462e67 100644 --- a/src/game/mario_misc.c +++ b/src/game/mario_misc.c @@ -742,6 +742,9 @@ Gfx* geo_mirror_mario_backface_culling(s32 callContext, struct GraphNode* node, gSPEndDisplayList(&gfx[2]); } u32 layer = ((asGenerated->parameter & 0x02) == 2) ? LAYER_TRANSPARENT : LAYER_OPAQUE; + if ((asGenerated->parameter & 0xF0)) { + layer = asGenerated->parameter >> 0xF; + } asGenerated->fnNode.node.flags = (asGenerated->fnNode.node.flags & 0xFF) | (layer << 8); } return gfx;