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.

113 lines
6.5 KiB

5 years ago
  1. rr_seg7_vertex_07015748: # 0x07015748 - 0x07015828
  2. vertex -947, -836, 1010, 0, -17856, 0xFF, 0xFF, 0xFF, 0xFF
  3. vertex -1001, -833, 604, 990, -18004, 0xFF, 0xFF, 0xFF, 0xFF
  4. vertex -1784, -844, 1002, -40, -19944, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex -1780, -844, 593, 990, -19950, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex -668, -787, 959, 0, -17226, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex -650, -775, 549, 990, -17022, 0xFF, 0xFF, 0xFF, 0xFF
  8. vertex -1001, -833, 604, 990, -17918, 0xFF, 0xFF, 0xFF, 0xFF
  9. vertex -947, -836, 1010, -50, -17942, 0xFF, 0xFF, 0xFF, 0xFF
  10. vertex -215, -485, 959, 0, -15792, 0xFF, 0xFF, 0xFF, 0xFF
  11. vertex -215, -485, 549, 990, -15792, 0xFF, 0xFF, 0xFF, 0xFF
  12. vertex -650, -775, 549, 990, -17096, 0xFF, 0xFF, 0xFF, 0xFF
  13. vertex -668, -787, 959, 0, -17150, 0xFF, 0xFF, 0xFF, 0xFF
  14. vertex -62, -434, 959, 0, -15388, 0xFF, 0xFF, 0xFF, 0xFF
  15. vertex -62, -434, 549, 990, -15388, 0xFF, 0xFF, 0xFF, 0xFF
  16. rr_seg7_vertex_07015828: # 0x07015828 - 0x07015928
  17. vertex 1477, -155, 543, 0, -11492, 0xFF, 0xFF, 0xFF, 0xFF
  18. vertex 1168, -151, 267, 990, -11612, 0xFF, 0xFF, 0xFF, 0xFF
  19. vertex 1169, -202, 813, -26, -12522, 0xFF, 0xFF, 0xFF, 0xFF
  20. vertex 254, -434, 959, 0, -14596, 0xFF, 0xFF, 0xFF, 0xFF
  21. vertex -62, -434, 549, 990, -15388, 0xFF, 0xFF, 0xFF, 0xFF
  22. vertex -62, -434, 959, 0, -15388, 0xFF, 0xFF, 0xFF, 0xFF
  23. vertex 255, -434, 549, 990, -14594, 0xFF, 0xFF, 0xFF, 0xFF
  24. vertex 859, -239, 960, 0, -13026, 0xFF, 0xFF, 0xFF, 0xFF
  25. vertex 795, -226, 537, 990, -13140, 0xFF, 0xFF, 0xFF, 0xFF
  26. vertex 254, -434, 959, 10, -14608, 0xFF, 0xFF, 0xFF, 0xFF
  27. vertex 255, -434, 549, 990, -14584, 0xFF, 0xFF, 0xFF, 0xFF
  28. vertex 1169, -202, 813, 0, -12378, 0xFF, 0xFF, 0xFF, 0xFF
  29. vertex 940, -196, 468, 990, -12522, 0xFF, 0xFF, 0xFF, 0xFF
  30. vertex 859, -239, 960, 0, -13236, 0xFF, 0xFF, 0xFF, 0xFF
  31. vertex 795, -226, 537, 990, -12930, 0xFF, 0xFF, 0xFF, 0xFF
  32. vertex 940, -196, 468, 990, -12378, 0xFF, 0xFF, 0xFF, 0xFF
  33. rr_seg7_vertex_07015928: # 0x07015928 - 0x07015A28
  34. vertex 1792, -122, 54, 0, -10180, 0xFF, 0xFF, 0xFF, 0xFF
  35. vertex 1390, -112, -74, 990, -10450, 0xFF, 0xFF, 0xFF, 0xFF
  36. vertex 1477, -155, 543, 0, -11630, 0xFF, 0xFF, 0xFF, 0xFF
  37. vertex 1168, -151, 267, 990, -11474, 0xFF, 0xFF, 0xFF, 0xFF
  38. vertex 1817, -85, -315, 0, -9512, 0xFF, 0xFF, 0xFF, 0xFF
  39. vertex 1407, -83, -312, 990, -9588, 0xFF, 0xFF, 0xFF, 0xFF
  40. vertex 1792, -122, 54, 0, -10442, 0xFF, 0xFF, 0xFF, 0xFF
  41. vertex 1390, -112, -74, 990, -10188, 0xFF, 0xFF, 0xFF, 0xFF
  42. vertex 1793, -47, -674, 0, -8680, 0xFF, 0xFF, 0xFF, 0xFF
  43. vertex 1390, -38, -564, 990, -8882, 0xFF, 0xFF, 0xFF, 0xFF
  44. vertex 1817, -85, -315, 0, -9580, 0xFF, 0xFF, 0xFF, 0xFF
  45. vertex 1407, -83, -312, 990, -9520, 0xFF, 0xFF, 0xFF, 0xFF
  46. vertex 1607, 0, -1050, 0, -7828, 0xFF, 0xFF, 0xFF, 0xFF
  47. vertex 1278, 9, -792, 990, -8034, 0xFF, 0xFF, 0xFF, 0xFF
  48. vertex 1793, -47, -674, -28, -8878, 0xFF, 0xFF, 0xFF, 0xFF
  49. vertex 1390, -38, -564, 990, -8682, 0xFF, 0xFF, 0xFF, 0xFF
  50. rr_seg7_vertex_07015A28: # 0x07015A28 - 0x07015B28
  51. vertex 1050, 77, -1519, 0, -6214, 0xFF, 0xFF, 0xFF, 0xFF
  52. vertex 859, 77, -1142, 990, -6448, 0xFF, 0xFF, 0xFF, 0xFF
  53. vertex 1607, 0, -1050, -24, -8042, 0xFF, 0xFF, 0xFF, 0xFF
  54. vertex 1278, 9, -792, 990, -7822, 0xFF, 0xFF, 0xFF, 0xFF
  55. vertex 244, 77, -1700, 0, -4400, 0xFF, 0xFF, 0xFF, 0xFF
  56. vertex 199, 77, -1291, 990, -4514, 0xFF, 0xFF, 0xFF, 0xFF
  57. vertex 1050, 77, -1519, 0, -6462, 0xFF, 0xFF, 0xFF, 0xFF
  58. vertex -1961, 77, -1700, 0, 988, 0xFF, 0xFF, 0xFF, 0xFF
  59. vertex -1039, 77, -1290, 990, -1312, 0xFF, 0xFF, 0xFF, 0xFF
  60. vertex -1039, 77, -1700, -26, -1308, 0xFF, 0xFF, 0xFF, 0xFF
  61. vertex 859, 77, -1142, 990, -6202, 0xFF, 0xFF, 0xFF, 0xFF
  62. vertex -1039, 77, -1700, 0, -1310, 0xFF, 0xFF, 0xFF, 0xFF
  63. vertex -1039, 77, -1290, 990, -1310, 0xFF, 0xFF, 0xFF, 0xFF
  64. vertex 199, 77, -1291, 990, -4400, 0xFF, 0xFF, 0xFF, 0xFF
  65. vertex 244, 77, -1700, 0, -4514, 0xFF, 0xFF, 0xFF, 0xFF
  66. vertex -1961, 35, -1292, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  67. rr_seg7_dl_07015B28: # 0x07015B28 - 0x07015C68
  68. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09005800
  69. gsDPLoadSync
  70. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  71. gsSPVertex rr_seg7_vertex_07015748, 14, 0
  72. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  73. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  74. gsSP2Triangles 8, 9, 10, 0x0, 8, 10, 11, 0x0
  75. gsSP2Triangles 12, 9, 8, 0x0, 12, 13, 9, 0x0
  76. gsSPVertex rr_seg7_vertex_07015828, 16, 0
  77. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  78. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  79. gsSP2Triangles 8, 10, 9, 0x0, 11, 12, 13, 0x0
  80. gsSP2Triangles 12, 14, 13, 0x0, 1, 15, 2, 0x0
  81. gsSPVertex rr_seg7_vertex_07015928, 16, 0
  82. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  83. gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
  84. gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
  85. gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
  86. gsSPVertex rr_seg7_vertex_07015A28, 16, 0
  87. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  88. gsSP2Triangles 4, 5, 6, 0x0, 7, 8, 9, 0x0
  89. gsSP2Triangles 5, 10, 6, 0x0, 11, 12, 13, 0x0
  90. gsSP2Triangles 11, 13, 14, 0x0, 7, 15, 8, 0x0
  91. gsSPEndDisplayList
  92. glabel rr_seg7_dl_07015C68 # 0x07015C68 - 0x07015CE8
  93. gsDPPipeSync
  94. gsDPSetEnvColor 255, 255, 255, 100
  95. gsDPSetCombineMode1Cycle G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_TEXEL0, G_ACMUX_0, G_ACMUX_ENVIRONMENT, G_ACMUX_0
  96. gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
  97. 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
  98. gsSPTexture -1, -1, 0, 0, 1
  99. gsDPTileSync
  100. 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_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  101. gsDPSetTileSize 0, 0, 0, 124, 124
  102. gsSPDisplayList rr_seg7_dl_07015B28
  103. gsSPTexture -1, -1, 0, 0, 0
  104. gsDPPipeSync
  105. 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
  106. gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
  107. gsDPSetEnvColor 255, 255, 255, 255
  108. gsSPEndDisplayList