rdp31data.h
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
static char test30_IA4[] = {
0x13, 0x57, 0x9b, 0xdf, 0xfd, 0xb1, 0x57, 0xb3 };
static Vtx ground_vtx[6] = {
{ -150, 0, -500, 0, 0, (400 << 5), 21, 21, 201, 255 },
{ -150, 0, 300, 0, 0, 0, 21, 201, 21, 255 },
{ 0, 0, -500, 0, (75 << 5), (400 << 5), 201, 21, 21, 255 },
{ 0, 0, 300, 0, (75 << 5), 0, 201, 21, 21, 255 },
{ 150, 0, -500, 0, 0, (400 << 5), 21, 21, 201, 255 },
{ 150, 0, 300, 0, 0, 0, 21, 201, 21, 255 },
};
Gfx ground_dl[] = {
gsDPPipeSync(),
gsSPSetGeometryMode(G_ZBUFFER),
gsSPSetGeometryMode(G_SHADE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_INTER, G_RM_AA_ZB_OPA_INTER2),
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureFilter(G_TF_BILERP),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPLoadTextureBlock_4b(test30_IA4, G_IM_FMT_IA, 16, 1, 0,
G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR,
4, 0, G_TX_NOLOD, G_TX_NOLOD),
gsSPVertex(&ground_vtx[0], 6, 0),
gsSP1Triangle (0, 1, 2, 0),
/*
gsSP1Triangle (1, 3, 2, 0),
gsSP1Triangle (2, 3, 5, 0),
gsSP1Triangle (2, 5, 4, 0),
*/
/*
* longitudal cutting plane...
*
gsSP1Triangle (8, 7, 6, 0),
gsSP1Triangle (8, 9, 7, 0),
*/
gsSPTexture(16, 2, 0, G_TX_RENDERTILE, G_OFF),
gsSPEndDisplayList(),
};
#include "torus_vtx.h"
Gfx torus_dl[] = {
gsDPPipeSync(),
gsSPSetGeometryMode(G_ZBUFFER),
gsSPSetGeometryMode(G_SHADE),
gsDPSetCombineMode (G_CC_SHADE, G_CC_SHADE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_INTER, G_RM_AA_ZB_OPA_INTER2),
#include "torus_cmds.h"
gsSPEndDisplayList(),
};