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.

127 lines
7.3 KiB

6 years ago
  1. thi_seg7_vertex_07006A30: # 0x07006A30 - 0x07006B20
  2. vertex -6614, -2047, -6628, 4806, 990, 0xFF, 0xFF, 0xFF, 0xFF
  3. vertex -6614, -1945, -6143, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  4. vertex -6614, -1945, -6628, 4806, 0, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex -8150, -2866, 8151, 20000, 0, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex -8150, -2866, 6144, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex -8150, -2969, 6144, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  8. vertex -8150, -2969, 8151, 20000, 990, 0xFF, 0xFF, 0xFF, 0xFF
  9. vertex -5119, -2969, 8151, 30374, 990, 0xFF, 0xFF, 0xFF, 0xFF
  10. vertex -5119, -2866, 8151, 30374, 0, 0xFF, 0xFF, 0xFF, 0xFF
  11. vertex -8150, -2866, 8151, 124, 0, 0xFF, 0xFF, 0xFF, 0xFF
  12. vertex -8150, -2969, 8151, 124, 990, 0xFF, 0xFF, 0xFF, 0xFF
  13. vertex -6614, -1945, -6628, 15696, 0, 0xFF, 0xFF, 0xFF, 0xFF
  14. vertex -5119, -2047, -7126, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  15. vertex -6614, -2047, -6628, 15696, 990, 0xFF, 0xFF, 0xFF, 0xFF
  16. vertex -5119, -1945, -7126, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  17. thi_seg7_vertex_07006B20: # 0x07006B20 - 0x07006C10
  18. vertex -2605, -511, 2827, -102, 990, 0xFF, 0xFF, 0xFF, 0xFF
  19. vertex -2834, -511, 2140, 7122, 990, 0xFF, 0xFF, 0xFF, 0xFF
  20. vertex -2834, -409, 2140, 7122, 0, 0xFF, 0xFF, 0xFF, 0xFF
  21. vertex -6614, -2047, -6628, 4806, 990, 0xFF, 0xFF, 0xFF, 0xFF
  22. vertex -6614, -2047, -6143, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  23. vertex -6614, -1945, -6143, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  24. vertex 6677, -2832, 7645, 8876, 990, 0xFF, 0xFF, 0xFF, 0xFF
  25. vertex 6677, -2730, 7645, 8876, 0, 0xFF, 0xFF, 0xFF, 0xFF
  26. vertex 5882, -2730, 7168, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  27. vertex 5882, -2832, 7168, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  28. vertex -2742, -409, 1956, 2012, 0, 0xFF, 0xFF, 0xFF, 0xFF
  29. vertex -2834, -409, 2140, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  30. vertex -2834, -511, 2140, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  31. vertex -2742, -511, 1956, 2012, 990, 0xFF, 0xFF, 0xFF, 0xFF
  32. vertex -2605, -409, 2827, -102, 0, 0xFF, 0xFF, 0xFF, 0xFF
  33. thi_seg7_vertex_07006C10: # 0x07006C10 - 0x07006D00
  34. vertex 7168, -2457, 5632, 20408, 0, 0xFF, 0xFF, 0xFF, 0xFF
  35. vertex 7168, -2559, 3584, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  36. vertex 7168, -2559, 5632, 20408, 990, 0xFF, 0xFF, 0xFF, 0xFF
  37. vertex -2874, -409, 2884, 284, 0, 0xFF, 0xFF, 0xFF, 0xFF
  38. vertex -2605, -511, 2827, 3034, 990, 0xFF, 0xFF, 0xFF, 0xFF
  39. vertex -2605, -409, 2827, 3034, 0, 0xFF, 0xFF, 0xFF, 0xFF
  40. vertex -2874, -511, 2884, 284, 990, 0xFF, 0xFF, 0xFF, 0xFF
  41. vertex -2874, -511, 2884, 21214, 990, 0xFF, 0xFF, 0xFF, 0xFF
  42. vertex -4437, -409, 1453, 72, 0, 0xFF, 0xFF, 0xFF, 0xFF
  43. vertex -4437, -511, 1453, 72, 990, 0xFF, 0xFF, 0xFF, 0xFF
  44. vertex -2874, -409, 2884, 21214, 0, 0xFF, 0xFF, 0xFF, 0xFF
  45. vertex -4299, -511, 1178, 82, 990, 0xFF, 0xFF, 0xFF, 0xFF
  46. vertex -4437, -409, 1453, 3148, 0, 0xFF, 0xFF, 0xFF, 0xFF
  47. vertex -4299, -409, 1178, 82, 0, 0xFF, 0xFF, 0xFF, 0xFF
  48. vertex -4437, -511, 1453, 3148, 990, 0xFF, 0xFF, 0xFF, 0xFF
  49. thi_seg7_vertex_07006D00: # 0x07006D00 - 0x07006DF0
  50. vertex 6400, -2457, 4096, -7694, 0, 0xFF, 0xFF, 0xFF, 0xFF
  51. vertex 5632, -2559, 4096, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  52. vertex 6400, -2559, 4096, -7694, 990, 0xFF, 0xFF, 0xFF, 0xFF
  53. vertex 7168, -2457, 5632, 20408, 0, 0xFF, 0xFF, 0xFF, 0xFF
  54. vertex 7168, -2457, 3584, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  55. vertex 7168, -2559, 3584, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  56. vertex 7168, -2762, 6777, 11784, 2, 0xFF, 0xFF, 0xFF, 0xFF
  57. vertex 7168, -2559, 5632, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  58. vertex 7168, -2832, 6656, 10546, 990, 0xFF, 0xFF, 0xFF, 0xFF
  59. vertex 7168, -2457, 5632, -44, 2, 0xFF, 0xFF, 0xFF, 0xFF
  60. vertex 6656, -2559, 3584, -5744, 990, 0xFF, 0xFF, 0xFF, 0xFF
  61. vertex 6656, -2457, 3584, -5744, 0, 0xFF, 0xFF, 0xFF, 0xFF
  62. vertex 6400, -2457, 4096, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  63. vertex 6400, -2559, 4096, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  64. vertex 5632, -2457, 4096, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  65. thi_seg7_vertex_07006DF0: # 0x07006DF0 - 0x07006EB0
  66. vertex 5632, -1535, -6655, 10188, 990, 0xFF, 0xFF, 0xFF, 0xFF
  67. vertex 5632, -1433, -6655, 10188, 0, 0xFF, 0xFF, 0xFF, 0xFF
  68. vertex 5632, -1433, -5631, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  69. vertex 5632, -1535, -5631, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  70. vertex 5632, -1535, -5221, -6162, 990, 0xFF, 0xFF, 0xFF, 0xFF
  71. vertex 5632, -1433, -4607, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  72. vertex 5632, -1535, -4607, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  73. vertex 5632, -1433, -5221, -6162, 0, 0xFF, 0xFF, 0xFF, 0xFF
  74. vertex 5632, -1433, -6655, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  75. vertex 6656, -1535, -6655, -10250, 990, 0xFF, 0xFF, 0xFF, 0xFF
  76. vertex 6656, -1433, -6655, -10250, 0, 0xFF, 0xFF, 0xFF, 0xFF
  77. vertex 5632, -1535, -6655, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  78. thi_seg7_dl_07006EB0: # 0x07006EB0 - 0x07007008
  79. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_0900A000
  80. gsDPLoadSync
  81. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  82. gsSPVertex thi_seg7_vertex_07006A30, 15, 0
  83. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  84. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  85. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  86. gsSP1Triangle 11, 14, 12, 0x0
  87. gsSPVertex thi_seg7_vertex_07006B20, 15, 0
  88. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  89. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  90. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  91. gsSP1Triangle 0, 2, 14, 0x0
  92. gsSPVertex thi_seg7_vertex_07006C10, 15, 0
  93. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  94. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  95. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  96. gsSP1Triangle 11, 14, 12, 0x0
  97. gsSPVertex thi_seg7_vertex_07006D00, 15, 0
  98. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  99. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  100. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  101. gsSP1Triangle 0, 14, 1, 0x0
  102. gsSPVertex thi_seg7_vertex_07006DF0, 12, 0
  103. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  104. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  105. gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
  106. gsSPEndDisplayList
  107. glabel thi_seg7_dl_07007008 # 0x07007008 - 0x07007078
  108. gsDPPipeSync
  109. 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
  110. gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
  111. 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
  112. gsSPTexture -1, -1, 0, 0, 1
  113. gsDPTileSync
  114. 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
  115. gsDPSetTileSize 0, 0, 0, 124, 124
  116. gsSPDisplayList thi_seg7_dl_07006EB0
  117. gsSPTexture -1, -1, 0, 0, 0
  118. gsDPPipeSync
  119. 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
  120. gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
  121. gsSPEndDisplayList