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.
 
 
 
 
 

202 lines
11 KiB

wf_seg7_vertex_07006898: # 0x07006898 - 0x07006988
vertex -2508, 1024, 4096, 1500, 480, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 1152, 4096, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -1023, 1152, 4096, -5140, 6098, 0xFF, 0xFF, 0xFF, 0xFF
vertex -1023, 1024, 4096, -4630, 6610, 0xFF, 0xFF, 0xFF, 0xFF
vertex -1535, 2560, 1536, -5304, -4284, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2662, 512, 918, 918, 0xFF, 0xFF, 0xFF, 0xFF
vertex -1535, 2662, 1536, -4792, -4794, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2560, 512, 408, 1428, 0xFF, 0xFF, 0xFF, 0xFF
vertex -273, 2560, -2833, 480, 1500, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1536, 2560, -1023, 13254, -11274, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1536, 2662, -1023, 12744, -11786, 0xFF, 0xFF, 0xFF, 0xFF
vertex -273, 2662, -2833, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3120, 4096, 330, 2524, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2881, 4352, 468, 1502, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2881, 4096, 468, 1502, 994, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006988: # 0x07006988 - 0x07006A68
vertex 3226, 2432, 0, -132, 1090, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2560, 2304, 0, 3034, -1054, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 2304, 0, 376, 1602, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2560, 2432, 0, 2524, -1566, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 2688, 0, 3546, -4632, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 2560, 0, 4056, -4120, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 2560, 1024, -3096, 5076, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 2560, 0, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 2688, 0, 478, 478, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 2688, 1024, -3606, 4566, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2881, 4096, 468, 1502, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2641, 4352, 330, 480, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2641, 4096, 330, 480, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2881, 4352, 468, 1502, -66, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006A68: # 0x07006A68 - 0x07006B58
vertex -2047, 2662, -2409, 478, 480, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2560, -1023, -5966, 7946, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2560, -2409, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2641, 4096, 330, 6612, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2641, 4352, 330, 6612, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2641, 4352, 54, 5590, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2641, 4096, 54, 5590, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2881, 4352, -83, 4568, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2881, 4096, -83, 4568, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3120, 4352, 54, 3546, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3120, 4096, 54, 3546, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3120, 4352, 330, 2524, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3120, 4096, 330, 2524, 994, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2881, 4352, 468, 1502, -66, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2662, -1023, -6476, 7434, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006B58: # 0x07006B58 - 0x07006C48
vertex -3276, 384, -1535, 5078, -3098, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 512, -1535, -336, 1294, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 512, -1535, 4566, -3608, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2560, -2409, 478, 1500, 0xFF, 0xFF, 0xFF, 0xFF
vertex -273, 2662, -2833, 8344, -7386, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2662, -2409, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -273, 2560, -2833, 8854, -6874, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4096, 1075, -4095, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4096, 1203, -4095, 478, 478, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2458, 1203, -4095, -6060, 7018, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2458, 1075, -4095, -5548, 7528, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2560, 512, -6736, 8716, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2560, -1023, 926, 1052, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2662, -1023, 416, 542, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 2662, 512, -7248, 8206, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006C48: # 0x07006C48 - 0x07006D38
vertex 4096, 1075, -4095, 478, 1498, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4096, 1203, -3071, 4056, -3098, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4096, 1203, -4095, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 384, -1535, 5078, -3098, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 384, -1535, 172, 1806, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2047, 512, -1535, -336, 1294, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 384, 640, 480, 1498, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 512, -1535, 7122, -6164, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 512, 640, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 384, -1535, 7634, -5654, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 384, 640, 3544, -1564, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 512, 640, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 384, 640, 478, 1500, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3276, 512, 640, 3034, -2076, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4096, 1075, -3071, 4566, -2588, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006D38: # 0x07006D38 - 0x07006D98
vertex -2508, 384, 640, 17342, -10252, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 1152, 3072, 4786, -2368, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 1024, 3072, 5298, -1856, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 512, 640, 16832, -10762, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 1024, 4096, 478, 1500, 0xFF, 0xFF, 0xFF, 0xFF
vertex -2508, 1152, 4096, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006D98: # 0x07006D98 - 0x07006E88
vertex 5120, 384, 2816, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 384, 0, -21492, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 256, 0, -21492, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 256, 5632, 1662, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 384, 5120, -4118, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 256, 5120, -4118, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 384, 5632, 1662, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 256, -511, 876, 988, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4096, 384, -511, -3210, -34, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4096, 256, -511, -3210, 988, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 384, -511, 876, -34, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 256, 0, 5612, 986, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 384, -511, -168, -36, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 256, -511, -168, 986, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 384, 0, 5612, -36, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006E88: # 0x07006E88 - 0x07006F78
vertex 2048, 256, 5120, 5078, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 384, 5120, 5078, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2560, 384, 5632, -702, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 384, 2816, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 256, 0, -21492, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 256, 2816, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 256, 5120, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 384, 2816, -21492, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 256, 2816, -21492, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, 384, 5120, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2560, 256, 5632, 20408, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 384, 5632, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4608, 256, 5632, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2560, 384, 5632, 20408, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2560, 256, 5632, -702, 990, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_vertex_07006F78: # 0x07006F78 - 0x07006FB8
vertex 2048, 256, 4096, 12232, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 384, 4096, 12232, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 384, 5120, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2048, 256, 5120, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
wf_seg7_dl_07006FB8: # 0x07006FB8 - 0x07007168
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09000000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex wf_seg7_vertex_07006898, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 8, 10, 11, 0x0
gsSP1Triangle 12, 13, 14, 0x0
gsSPVertex wf_seg7_vertex_07006988, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 4, 0x0
gsSP2Triangles 1, 4, 5, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
gsSPVertex wf_seg7_vertex_07006A68, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 6, 5, 7, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 8, 7, 9, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 10, 9, 11, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 12, 11, 13, 0x0
gsSP1Triangle 0, 14, 1, 0x0
gsSPVertex wf_seg7_vertex_07006B58, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 13, 14, 0x0
gsSPVertex wf_seg7_vertex_07006C48, 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, 14, 1, 0x0
gsSPVertex wf_seg7_vertex_07006D38, 6, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 1, 4, 2, 0x0, 1, 5, 4, 0x0
gsSPEndDisplayList
wf_seg7_dl_07007168: # 0x07007168 - 0x07007220
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_0900A000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex wf_seg7_vertex_07006D98, 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, 14, 12, 0x0
gsSPVertex wf_seg7_vertex_07006E88, 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 wf_seg7_vertex_07006F78, 4, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSPEndDisplayList
glabel wf_seg7_dl_07007220 # 0x07007220 - 0x07007298
gsDPPipeSync
gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_TEXEL0
gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
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 wf_seg7_dl_07006FB8
gsSPDisplayList wf_seg7_dl_07007168
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_LIGHTING | G_CULL_BACK
gsSPEndDisplayList