Add support for any layer in mirror

This commit is contained in:
David Joslin 2023-11-13 20:58:05 -08:00 committed by Agent X
parent 76b56aa997
commit d9829fac08
1 changed files with 2 additions and 2 deletions

View File

@ -742,8 +742,8 @@ 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 & 0xFC) != 0) {
layer = asGenerated->parameter >> 2;
if ((asGenerated->parameter & 0xF0)) {
layer = asGenerated->parameter >> 0xF;
}
asGenerated->fnNode.node.flags = (asGenerated->fnNode.node.flags & 0xFF) | (layer << 8);
}