-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojectile_texture.h
96 lines (85 loc) · 4.89 KB
/
projectile_texture.h
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Generated by Nintendo 64 Texture Converter
// By buu342
// Size = 16x16
// Type = 16-Bit RGBA (G_IM_SIZ_16b)
#ifndef PROJECTILE_TEXTURE
#define PROJECTILE_TEXTURE
static Gfx projectile_C_dummy_aligner1[] = { gsSPEndDisplayList() };
unsigned short projectile_texture[] = {
0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E,
0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E,
0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xB5AD, 0xB5AD, 0xB5AD, 0xB5AD, 0xB5AD, 0xB5AD, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E,
0xF83E, 0xF83E, 0xF83E, 0xB5AD, 0xB5AD, 0xEF7B, 0xEF7B, 0xEF7B, 0xEF7B, 0xEF7B, 0xEF7B, 0xB5AD, 0xB5AD, 0xF83E, 0xF83E, 0xF83E,
0xF83E, 0xF83E, 0xF83E, 0xB5AD, 0xEF7B, 0xEF7B, 0xEF7B, 0xFFFF, 0xFFFF, 0xEF7B, 0xEF7B, 0xEF7B, 0xB5AD, 0xF83E, 0xF83E, 0xF83E,
0xF83E, 0xF83E, 0xB5A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AD, 0xB5AD, 0xB5AD, 0xB5AD, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E,
0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E,
0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E, 0xF83E,
};
#define TEXTURE_TLEFTx 0 << 6
#define TEXTURE_TRIGHTx 15 << 6
#define TEXTURE_BLEFTx 0 << 6
#define TEXTURE_BRIGHTx 15 << 6
#define TEXTURE_TLEFTy 0 << 6
#define TEXTURE_TRIGHTy 0 << 6
#define TEXTURE_BLEFTy 15 << 6
#define TEXTURE_BRIGHTy 15 << 6
Vtx projectile_vertex[] = {
{-2, 2, 0, 0, TEXTURE_TLEFTx, TEXTURE_TLEFTy, 0x0, 0xFF, 0x0, 0xFF},
{2, 2, 0, 0, TEXTURE_TRIGHTx, TEXTURE_TRIGHTy, 0x0, 0xFF, 0x0, 0xFF},
{2, -2, 0, 0, TEXTURE_BRIGHTx, TEXTURE_BRIGHTy, 0x0, 0xFF, 0x0, 0xFF},
{-2, -2, 0, 0, TEXTURE_BLEFTx, TEXTURE_BLEFTy, 0x0, 0xFF, 0x0, 0xFF},
{-2, 0, 2, 0, TEXTURE_TLEFTx, TEXTURE_TLEFTy, 0x0, 0xFF, 0x0, 0xFF},
{2, 0, 2, 0, TEXTURE_TRIGHTx, TEXTURE_TRIGHTy, 0x0, 0xFF, 0x0, 0xFF},
{2, 0, -2, 0, TEXTURE_BRIGHTx, TEXTURE_BRIGHTy, 0x0, 0xFF, 0x0, 0xFF},
{-2, 0, -2, 0, TEXTURE_BLEFTx, TEXTURE_BLEFTy, 0x0, 0xFF, 0x0, 0xFF},
};
Gfx projectile_triangle[] = {
gsSPVertex(projectile_vertex + 0 , 4, 0),
gsSP1Triangle(0, 1, 3, 0),
gsSP1Triangle(3, 2, 1, 0),
gsSPVertex(projectile_vertex + 4 , 4, 0),
gsSP1Triangle(0, 1, 3, 0),
gsSP1Triangle(3, 2, 1, 0),
gsSPEndDisplayList(),
};
Gfx projectile_dl[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
gsSPClearGeometryMode(0xFFFFFFFF),
gsSPSetGeometryMode(G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
gsDPSetCombineLERP(0, 0, 0, TEXEL0,
0, 0, 0, TEXEL0,
0, 0, 0, TEXEL0,
0, 0, 0, TEXEL0),
gsDPLoadTextureBlock(projectile_texture,
G_IM_FMT_RGBA,
G_IM_SIZ_16b,
16, 16,
0,
G_TX_WRAP,
G_TX_WRAP,
5, 5,
G_TX_NOLOD, G_TX_NOLOD),
gsDPLoadSync(),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsDPSetTextureConvert(G_TC_FILT),
gsDPSetTextureLOD(G_TL_TILE),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLUT(G_TT_NONE),
gsDPPipeSync(),
gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
gsSPDisplayList(projectile_triangle),
gsDPPipeSync(),
gsSPEndDisplayList(),
};
#endif