Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
BlueWarpPipe.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/BlueWarpPipe_1.vtx.inc.c"
5#include "entity/model/BlueWarpPipe_2.vtx.inc.c"
6#include "entity/model/BlueWarpPipe_3.vtx.inc.c"
7
8INCLUDE_IMG("entity/model/BlueWarpPipe_texBase.png", D_0A000320_E58FF0);
9INCLUDE_PAL("entity/model/BlueWarpPipe_texBase.pal", D_0A0003A0_E59070);
11 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
12 gsDPPipeSync(),
13 gsDPSetTextureDetail(G_TD_CLAMP),
14 gsDPSetTextureLOD(G_TL_TILE),
15 gsDPLoadTextureBlock_4b(D_0A000320_E58FF0, G_IM_FMT_CI, 16, 16, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
16 gsDPSetTexturePersp(G_TP_PERSP),
17 gsDPSetTextureLUT(G_TT_RGBA16),
18 gsDPLoadTLUT_pal16(0, D_0A0003A0_E59070),
19 gsDPSetTextureFilter(G_TF_BILERP),
20 gsDPSetTextureConvert(G_TC_FILT),
21 gsSPEndDisplayList(),
22};
23
24INCLUDE_IMG("entity/model/BlueWarpPipe_texPipe.png", D_0A000470_E59140);
25INCLUDE_PAL("entity/model/BlueWarpPipe_texPipe.pal", D_0A000570_E59240);
27 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
28 gsDPPipeSync(),
29 gsDPSetTextureDetail(G_TD_CLAMP),
30 gsDPSetTextureLOD(G_TL_TILE),
31 gsDPLoadTextureBlock_4b(D_0A000470_E59140, G_IM_FMT_CI, 32, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, 5, 4, G_TX_NOLOD, G_TX_NOLOD),
32 gsDPSetTexturePersp(G_TP_PERSP),
33 gsDPSetTextureLUT(G_TT_RGBA16),
34 gsDPLoadTLUT_pal16(0, D_0A000570_E59240),
35 gsDPSetTextureFilter(G_TF_BILERP),
36 gsDPSetTextureConvert(G_TC_FILT),
37 gsSPEndDisplayList(),
38};
39
41 1.000000, 0.000000, 0.000000, 0.000000,
42 0.000000, 1.000000, 0.000000, -55.000000,
43 0.000000, 0.000000, 1.000000, 0.000000,
44 0.000000, 0.000000, 0.000000, 1.000000
45);
46
48 gsDPPipeSync(),
50 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
51 gsSPClearGeometryMode(G_CULL_BACK),
52 gsSPVertex(D_0A0002E0_E58FB0, 4, 0),
53 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
54 gsSPEndDisplayList(),
55};
56
58 gsDPPipeSync(),
59 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
60 gsSPClearGeometryMode(G_LIGHTING),
61 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
62 gsSPVertex(D_0A000000_E58CD0, 6, 0),
63 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
64 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
66 gsSPVertex(D_0A000060_E58D30, 30, 0),
67 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
68 gsSP2Triangles(4, 5, 1, 0, 4, 1, 0, 0),
69 gsSP2Triangles(3, 2, 6, 0, 3, 6, 7, 0),
70 gsSP2Triangles(8, 9, 7, 0, 8, 7, 6, 0),
71 gsSP2Triangles(10, 11, 12, 0, 10, 12, 13, 0),
72 gsSP2Triangles(13, 12, 14, 0, 13, 14, 15, 0),
73 gsSP2Triangles(15, 14, 16, 0, 15, 16, 17, 0),
74 gsSP2Triangles(17, 16, 18, 0, 17, 18, 19, 0),
75 gsSP2Triangles(20, 21, 5, 0, 20, 5, 4, 0),
76 gsSP2Triangles(9, 8, 21, 0, 9, 21, 20, 0),
77 gsSP2Triangles(22, 23, 24, 0, 22, 24, 25, 0),
78 gsSP2Triangles(25, 24, 26, 0, 25, 26, 27, 0),
79 gsSP2Triangles(27, 26, 28, 0, 27, 28, 29, 0),
80 gsSPVertex(&D_0A000060_E58D30[10], 2, 0),
81 gsSPVertex(&D_0A000060_E58D30[22], 2, 2),
82 gsSPVertex(&D_0A000060_E58D30[30], 10, 4),
83 gsSP2Triangles(4, 9, 10, 0, 4, 10, 6, 0),
84 gsSP2Triangles(5, 11, 9, 0, 5, 9, 4, 0),
85 gsSP2Triangles(6, 10, 3, 0, 6, 3, 2, 0),
86 gsSP2Triangles(7, 12, 13, 0, 7, 13, 8, 0),
87 gsSP2Triangles(8, 13, 1, 0, 8, 1, 0, 0),
88 gsSPEndDisplayList(),
89};
Gfx Entity_BlueWarpPipe_RenderPipe[]
Gfx Entity_BlueWarpPipe_RenderBase[]
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Mtx Entity_BlueWarpPipe_mtx
Gfx Entity_BlueWarpPipe_LoadTextureBase[]
Gfx Entity_BlueWarpPipe_LoadTexturePipe[]
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233