Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

208 lines
12 KiB

# combined model file. LLL is weird
lll_seg7_vertex_070154F8: # 0x070154F8 - 0x070155E8
vertex 640, 307, 512, 0, 224, 0x00, 0x00, 0x7F, 0xFF
vertex 896, 307, 512, 606, 224, 0x00, 0x00, 0x7F, 0xFF
vertex 819, 410, 512, 416, 0, 0x00, 0x00, 0x7F, 0xFF
vertex 640, 307, 0, 0, 224, 0x00, 0x00, 0x7F, 0xFF
vertex 896, 0, 0, 606, 990, 0x00, 0x00, 0x7F, 0xFF
vertex 896, 307, 0, 606, 224, 0x00, 0x00, 0x7F, 0xFF
vertex 640, 0, 0, 0, 990, 0x00, 0x00, 0x7F, 0xFF
vertex 819, 410, 0, 416, 0, 0x00, 0x00, 0x7F, 0xFF
vertex 640, 0, 384, 3162, 990, 0x00, 0x00, 0x81, 0xFF
vertex 896, 307, 384, 2524, 224, 0x00, 0x00, 0x81, 0xFF
vertex 896, 0, 384, 2524, 990, 0x00, 0x00, 0x81, 0xFF
vertex 640, 307, 384, 3162, 224, 0x00, 0x00, 0x81, 0xFF
vertex 819, 410, 384, 2714, 0, 0x00, 0x00, 0x81, 0xFF
vertex 640, 0, 512, 0, 990, 0x00, 0x00, 0x7F, 0xFF
vertex 896, 0, 512, 606, 990, 0x00, 0x00, 0x7F, 0xFF
lll_seg7_vertex_070155E8: # 0x070155E8 - 0x070156E8
vertex 896, 0, -127, 2268, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 896, 307, -127, 2268, 224, 0x7F, 0x00, 0x00, 0xFF
vertex 896, 307, 0, 1948, 224, 0x7F, 0x00, 0x00, 0xFF
vertex 896, 0, 384, 990, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 896, 307, 512, 670, 224, 0x7F, 0x00, 0x00, 0xFF
vertex 896, 0, 512, 670, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 896, 307, 384, 990, 224, 0x7F, 0x00, 0x00, 0xFF
vertex 640, 0, -127, 3162, 990, 0x00, 0x00, 0x81, 0xFF
vertex 896, 307, -127, 2524, 224, 0x00, 0x00, 0x81, 0xFF
vertex 896, 0, -127, 2524, 990, 0x00, 0x00, 0x81, 0xFF
vertex 640, 307, -127, 3162, 224, 0x00, 0x00, 0x81, 0xFF
vertex 819, 410, -127, 2714, 0, 0x00, 0x00, 0x81, 0xFF
vertex 896, 0, 0, 1948, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 640, 0, -127, -604, 990, 0x81, 0x00, 0x00, 0xFF
vertex 640, 0, 0, -286, 990, 0x81, 0x00, 0x00, 0xFF
vertex 640, 307, 0, -286, 224, 0x81, 0x00, 0x00, 0xFF
lll_seg7_vertex_070156E8: # 0x070156E8 - 0x07015758
vertex 640, 0, -127, -604, 990, 0x81, 0x00, 0x00, 0xFF
vertex 640, 307, 0, -286, 224, 0x81, 0x00, 0x00, 0xFF
vertex 640, 307, -127, -604, 224, 0x81, 0x00, 0x00, 0xFF
vertex 640, 0, 384, 670, 990, 0x81, 0x00, 0x00, 0xFF
vertex 640, 0, 512, 990, 990, 0x81, 0x00, 0x00, 0xFF
vertex 640, 307, 512, 990, 224, 0x81, 0x00, 0x00, 0xFF
vertex 640, 307, 384, 670, 224, 0x81, 0x00, 0x00, 0xFF
lll_seg7_vertex_07015758: # 0x07015758 - 0x07015858
vertex 819, 410, -127, -1052, 990, 0xC1, 0x6E, 0x00, 0xFF
vertex 640, 307, -127, -1052, 1502, 0xC1, 0x6E, 0x00, 0xFF
vertex 640, 307, 0, -732, 1502, 0xC1, 0x6E, 0x00, 0xFF
vertex 896, 307, 384, 990, 990, 0x65, 0x4C, 0x00, 0xFF
vertex 819, 410, 512, 670, 670, 0x65, 0x4C, 0x00, 0xFF
vertex 896, 307, 512, 670, 990, 0x65, 0x4C, 0x00, 0xFF
vertex 819, 410, 384, 990, 670, 0x65, 0x4C, 0x00, 0xFF
vertex 819, 410, 384, 224, 990, 0xC1, 0x6E, 0x00, 0xFF
vertex 640, 307, 512, 542, 1502, 0xC1, 0x6E, 0x00, 0xFF
vertex 819, 410, 512, 542, 990, 0xC1, 0x6E, 0x00, 0xFF
vertex 640, 307, 384, 224, 1502, 0xC1, 0x6E, 0x00, 0xFF
vertex 896, 307, -127, 2268, 990, 0x65, 0x4C, 0x00, 0xFF
vertex 819, 410, 0, 1948, 670, 0x65, 0x4C, 0x00, 0xFF
vertex 896, 307, 0, 1948, 990, 0x65, 0x4C, 0x00, 0xFF
vertex 819, 410, -127, 2268, 670, 0x65, 0x4C, 0x00, 0xFF
vertex 819, 410, 0, -732, 990, 0xC1, 0x6E, 0x00, 0xFF
lll_seg7_vertex_07015858: # 0x07015858 - 0x07015948
vertex 128, 0, 128, 990, 1192, 0x81, 0x00, 0x00, 0xFF
vertex 128, 307, -127, 0, 0, 0x81, 0x00, 0x00, 0xFF
vertex 128, 0, -127, 0, 1192, 0x81, 0x00, 0x00, 0xFF
vertex 640, 0, 768, 5078, 1192, 0x00, 0x00, 0x7F, 0xFF
vertex -639, 307, 768, 0, 0, 0x00, 0x00, 0x7F, 0xFF
vertex -639, 0, 768, 0, 1192, 0x00, 0x00, 0x7F, 0xFF
vertex 640, 307, 768, 5078, 0, 0x00, 0x00, 0x7F, 0xFF
vertex -639, 0, -767, 990, 1192, 0x00, 0x00, 0x81, 0xFF
vertex 640, 307, -767, -4118, 0, 0x00, 0x00, 0x81, 0xFF
vertex 640, 0, -767, -4118, 1192, 0x00, 0x00, 0x81, 0xFF
vertex -639, 307, -767, 990, 0, 0x00, 0x00, 0x81, 0xFF
vertex 640, 0, -767, 990, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 640, 307, -767, 990, -236, 0x7F, 0x00, 0x00, 0xFF
vertex 640, 307, 768, -5140, -236, 0x7F, 0x00, 0x00, 0xFF
vertex 640, 0, 768, -5140, 990, 0x7F, 0x00, 0x00, 0xFF
lll_seg7_vertex_07015948: # 0x07015948 - 0x07015A38
vertex -127, 0, 128, 990, 1192, 0x00, 0x00, 0x81, 0xFF
vertex -127, 307, 128, 990, 0, 0x00, 0x00, 0x81, 0xFF
vertex 128, 307, 128, 0, 0, 0x00, 0x00, 0x81, 0xFF
vertex 128, 0, 128, 990, 1192, 0x81, 0x00, 0x00, 0xFF
vertex 128, 307, 128, 990, 0, 0x81, 0x00, 0x00, 0xFF
vertex 128, 307, -127, 0, 0, 0x81, 0x00, 0x00, 0xFF
vertex -639, 0, 768, 990, 1192, 0x81, 0x00, 0x00, 0xFF
vertex -639, 307, -767, -5140, 0, 0x81, 0x00, 0x00, 0xFF
vertex -639, 0, -767, -5140, 1192, 0x81, 0x00, 0x00, 0xFF
vertex -639, 307, 768, 990, 0, 0x81, 0x00, 0x00, 0xFF
vertex -127, 0, -127, 990, 990, 0x7F, 0x00, 0x00, 0xFF
vertex -127, 307, 128, 0, -236, 0x7F, 0x00, 0x00, 0xFF
vertex -127, 0, 128, 0, 990, 0x7F, 0x00, 0x00, 0xFF
vertex -127, 307, -127, 990, -236, 0x7F, 0x00, 0x00, 0xFF
vertex 128, 0, 128, 0, 1192, 0x00, 0x00, 0x81, 0xFF
lll_seg7_vertex_07015A38: # 0x07015A38 - 0x07015B38
vertex 128, 0, -127, 990, 1192, 0x00, 0x00, 0x7F, 0xFF
vertex -127, 307, -127, 0, 0, 0x00, 0x00, 0x7F, 0xFF
vertex -127, 0, -127, 0, 1192, 0x00, 0x00, 0x7F, 0xFF
vertex 128, 307, -127, 990, 0, 0x00, 0x00, 0x7F, 0xFF
vertex -127, 307, -127, 2012, -2586, 0x00, 0x7F, 0x00, 0xFF
vertex 128, 307, -767, 3034, -5142, 0x00, 0x7F, 0x00, 0xFF
vertex -127, 307, -767, 2012, -5142, 0x00, 0x7F, 0x00, 0xFF
vertex 128, 307, -127, 3034, -2586, 0x00, 0x7F, 0x00, 0xFF
vertex 640, 307, 768, 5078, 990, 0x00, 0x7F, 0x00, 0xFF
vertex 640, 307, -767, 5078, -5142, 0x00, 0x7F, 0x00, 0xFF
vertex 128, 307, 768, 3034, 990, 0x00, 0x7F, 0x00, 0xFF
vertex -639, 307, 768, 0, 990, 0x00, 0x7F, 0x00, 0xFF
vertex -639, 307, -767, 0, -5142, 0x00, 0x7F, 0x00, 0xFF
vertex -127, 307, 768, 2012, 990, 0x00, 0x7F, 0x00, 0xFF
vertex 128, 307, 128, 3034, -1564, 0x00, 0x7F, 0x00, 0xFF
vertex -127, 307, 128, 2012, -1564, 0x00, 0x7F, 0x00, 0xFF
lll_seg7_dl_07015B38: # 0x07015B38 - 0x07015C20
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPLight lll_seg7_light_0700FC08, 1
gsSPLight lll_seg7_light_0700FC00, 2
gsSPVertex lll_seg7_vertex_070154F8, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 3, 5, 7, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
gsSP2Triangles 12, 9, 11, 0x0, 0, 13, 14, 0x0
gsSP1Triangle 0, 14, 1, 0x0
gsSPVertex lll_seg7_vertex_070155E8, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 10, 8, 0x0, 11, 8, 10, 0x0
gsSP2Triangles 0, 2, 12, 0x0, 13, 14, 15, 0x0
gsSPVertex lll_seg7_vertex_070156E8, 7, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP1Triangle 3, 5, 6, 0x0
gsSPEndDisplayList
lll_seg7_dl_07015C20: # 0x07015C20 - 0x07015C88
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex lll_seg7_vertex_07015758, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
gsSP2Triangles 11, 14, 12, 0x0, 0, 2, 15, 0x0
gsSPEndDisplayList
glabel lll_seg7_dl_07015C88 # 0x07015C88 - 0x07015D18
gsDPPipeSync
gsDPSetCombineMode1Cycle G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE
gsSPClearGeometryMode G_SHADING_SMOOTH
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD
gsSPTexture -1, -1, 0, 0, 1
gsDPTileSync
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 124
gsSPDisplayList lll_seg7_dl_07015B38
gsDPTileSync
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 124
gsSPDisplayList lll_seg7_dl_07015C20
gsSPTexture -1, -1, 0, 0, 0
gsDPPipeSync
gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_SHADE, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE
gsSPSetGeometryMode G_SHADING_SMOOTH
gsSPEndDisplayList
lll_seg7_dl_07015D18: # 0x07015D18 - 0x07015E20
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09000800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPLight lll_seg7_light_0700FC08, 1
gsSPLight lll_seg7_light_0700FC00, 2
gsSPVertex lll_seg7_vertex_07015858, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 13, 14, 0x0
gsSPVertex lll_seg7_vertex_07015948, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
gsSP1Triangle 0, 2, 14, 0x0
gsSPVertex lll_seg7_vertex_07015A38, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
gsSP2Triangles 5, 8, 9, 0x0, 5, 10, 8, 0x0
gsSP2Triangles 11, 6, 12, 0x0, 11, 13, 6, 0x0
gsSP2Triangles 13, 10, 14, 0x0, 13, 14, 15, 0x0
gsSPEndDisplayList
glabel lll_seg7_dl_07015E20 # 0x07015E20 - 0x07015E90
gsDPPipeSync
gsDPSetCombineMode1Cycle G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_TEXEL0, G_ACMUX_0, G_ACMUX_SHADE, G_ACMUX_0
gsSPClearGeometryMode G_CULL_BACK | G_SHADING_SMOOTH
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD
gsSPTexture -1, -1, 0, 0, 1
gsDPTileSync
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 124
gsSPDisplayList lll_seg7_dl_07015D18
gsSPTexture -1, -1, 0, 0, 0
gsDPPipeSync
gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_SHADE, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE
gsSPSetGeometryMode G_CULL_BACK | G_SHADING_SMOOTH
gsSPEndDisplayList