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.
 
 
 
 
 

112 lines
6.0 KiB

wf_seg7_light_0700BB18: # 0x0700BB18 - 0x0700BB20
.byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
wf_seg7_light_0700BB20: # 0x0700BB20 - 0x0700BB30
.byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
wf_seg7_vertex_0700BB30: # 0x0700BB30 - 0x0700BC20
vertex 443, 0, -255, 1026, 0, 0x38, 0x90, 0xF1, 0xFF
vertex 512, 0, 0, 0, 0, 0x38, 0x90, 0xF1, 0xFF
vertex 0, -255, 0, 498, 988, 0x38, 0x90, 0xF1, 0xFF
vertex -255, 0, -442, -66, 0, 0xD7, 0x90, 0xD7, 0xFF
vertex 0, -255, 0, 460, 988, 0xD7, 0x90, 0xD7, 0xFF
vertex -442, 0, -255, 990, 0, 0xD7, 0x90, 0xD7, 0xFF
vertex -255, 0, -442, 990, 0, 0xF1, 0x90, 0xC8, 0xFF
vertex 0, 0, -511, -66, 0, 0xF1, 0x90, 0xC8, 0xFF
vertex 0, -255, 0, 460, 988, 0xF1, 0x90, 0xC8, 0xFF
vertex 0, 0, -511, 1026, 0, 0x0F, 0x90, 0xC8, 0xFF
vertex 256, 0, -442, 0, 0, 0x0F, 0x90, 0xC8, 0xFF
vertex 0, -255, 0, 498, 988, 0x0F, 0x90, 0xC8, 0xFF
vertex 256, 0, -442, 1026, 0, 0x29, 0x90, 0xD7, 0xFF
vertex 443, 0, -255, 0, 0, 0x29, 0x90, 0xD7, 0xFF
vertex 0, -255, 0, 498, 988, 0x29, 0x90, 0xD7, 0xFF
wf_seg7_vertex_0700BC20: # 0x0700BC20 - 0x0700BD10
vertex -255, 0, 443, 1026, 0, 0xD7, 0x90, 0x29, 0xFF
vertex -442, 0, 256, 0, 0, 0xD7, 0x90, 0x29, 0xFF
vertex 0, -255, 0, 498, 988, 0xD7, 0x90, 0x29, 0xFF
vertex 512, 0, 0, 1026, 0, 0x38, 0x90, 0x0F, 0xFF
vertex 443, 0, 256, 0, 0, 0x38, 0x90, 0x0F, 0xFF
vertex 0, -255, 0, 498, 988, 0x38, 0x90, 0x0F, 0xFF
vertex 443, 0, 256, 1026, 0, 0x29, 0x90, 0x29, 0xFF
vertex 256, 0, 443, 0, 0, 0x29, 0x90, 0x29, 0xFF
vertex 0, -255, 0, 498, 988, 0x29, 0x90, 0x29, 0xFF
vertex 256, 0, 443, 1026, 0, 0x0F, 0x90, 0x38, 0xFF
vertex 0, 0, 512, 0, 0, 0x0F, 0x90, 0x38, 0xFF
vertex 0, -255, 0, 498, 988, 0x0F, 0x90, 0x38, 0xFF
vertex 0, 0, 512, 1026, 0, 0xF1, 0x90, 0x38, 0xFF
vertex -255, 0, 443, 0, 0, 0xF1, 0x90, 0x38, 0xFF
vertex 0, -255, 0, 498, 988, 0xF1, 0x90, 0x38, 0xFF
wf_seg7_vertex_0700BD10: # 0x0700BD10 - 0x0700BD70
vertex -442, 0, 256, 1026, 0, 0xC8, 0x90, 0x0F, 0xFF
vertex -511, 0, 0, 0, 0, 0xC8, 0x90, 0x0F, 0xFF
vertex 0, -255, 0, 498, 988, 0xC8, 0x90, 0x0F, 0xFF
vertex -442, 0, -255, 0, 0, 0xC8, 0x90, 0xF1, 0xFF
vertex 0, -255, 0, 498, 988, 0xC8, 0x90, 0xF1, 0xFF
vertex -511, 0, 0, 1026, 0, 0xC8, 0x90, 0xF1, 0xFF
wf_seg7_vertex_0700BD70: # 0x0700BD70 - 0x0700BE30
vertex -442, 0, -255, -188, -714, 0x00, 0x7F, 0x00, 0xFF
vertex 443, 0, 256, 2170, 650, 0x00, 0x7F, 0x00, 0xFF
vertex 512, 0, 0, 2352, 0, 0x00, 0x7F, 0x00, 0xFF
vertex 443, 0, -255, 2170, -714, 0x00, 0x7F, 0x00, 0xFF
vertex 256, 0, -442, 1672, -1212, 0x00, 0x7F, 0x00, 0xFF
vertex 0, 0, -511, 990, -1394, 0x00, 0x7F, 0x00, 0xFF
vertex -255, 0, -442, 308, -1212, 0x00, 0x7F, 0x00, 0xFF
vertex -255, 0, 443, 308, 1146, 0x00, 0x7F, 0x00, 0xFF
vertex 0, 0, 512, 990, 1328, 0x00, 0x7F, 0x00, 0xFF
vertex -511, 0, 0, -370, 0, 0x00, 0x7F, 0x00, 0xFF
vertex -442, 0, 256, -188, 650, 0x00, 0x7F, 0x00, 0xFF
vertex 256, 0, 443, 1672, 1146, 0x00, 0x7F, 0x00, 0xFF
wf_seg7_dl_0700BE30: # 0x0700BE30 - 0x0700BED8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPLight wf_seg7_light_0700BB20, 1
gsSPLight wf_seg7_light_0700BB18, 2
gsSPVertex wf_seg7_vertex_0700BB30, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
gsSP1Triangle 12, 13, 14, 0x0
gsSPVertex wf_seg7_vertex_0700BC20, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
gsSP1Triangle 12, 13, 14, 0x0
gsSPVertex wf_seg7_vertex_0700BD10, 6, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSPEndDisplayList
wf_seg7_dl_0700BED8: # 0x0700BED8 - 0x0700BF50
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex wf_seg7_vertex_0700BD70, 12, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 0, 4, 5, 0x0, 0, 3, 4, 0x0
gsSP2Triangles 0, 5, 6, 0x0, 0, 7, 8, 0x0
gsSP2Triangles 0, 9, 10, 0x0, 0, 10, 7, 0x0
gsSP2Triangles 0, 8, 11, 0x0, 0, 11, 1, 0x0
gsSPEndDisplayList
glabel wf_seg7_dl_0700BF50 # 0x0700BF50 - 0x0700BFE0
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 wf_seg7_dl_0700BE30
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_0700BED8
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