Add support for any layer in mirror
This commit is contained in:
parent
e9119c9053
commit
4e9b83666e
|
@ -742,6 +742,9 @@ Gfx* geo_mirror_mario_backface_culling(s32 callContext, struct GraphNode* node,
|
||||||
gSPEndDisplayList(&gfx[2]);
|
gSPEndDisplayList(&gfx[2]);
|
||||||
}
|
}
|
||||||
u32 layer = ((asGenerated->parameter & 0x02) == 2) ? LAYER_TRANSPARENT : LAYER_OPAQUE;
|
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);
|
asGenerated->fnNode.node.flags = (asGenerated->fnNode.node.flags & 0xFF) | (layer << 8);
|
||||||
}
|
}
|
||||||
return gfx;
|
return gfx;
|
||||||
|
|
Loading…
Reference in New Issue