forked from MorsGames/sm64plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
effect.c
178 lines (152 loc) · 5.74 KB
/
effect.c
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
#include <PR/ultratypes.h>
#include <PR/gbi.h>
#include "macros.h"
#include "types.h"
#include "make_const_nonconst.h"
UNUSED static const u64 effect_unused_0 = 0;
// Flower (Unused)
// 0x0B000008
ALIGNED8 static const Texture effect_0B000008[] = {
#include "textures/effect/flower.00008.rgba16.inc.c"
};
// 0x0B000808
ALIGNED8 static const Texture effect_0B000808[] = {
#include "textures/effect/flower.00808.rgba16.inc.c"
};
// 0x0B001008
ALIGNED8 static const Texture effect_0B001008[] = {
#include "textures/effect/flower.01008.rgba16.inc.c"
};
// 0x0B001808
ALIGNED8 static const Texture effect_0B001808[] = {
#include "textures/effect/flower.01808.rgba16.inc.c"
};
// 0x0B002008
const Texture *const flower_bubbles_textures_ptr_0B002008[] = {
effect_0B000008,
effect_0B000808,
effect_0B001008,
effect_0B001808,
effect_0B001008,
effect_0B000808,
};
// Lava Bubble
// 0x0B002020
ALIGNED8 static const Texture effect_0B002020[] = {
#include "textures/effect/lava_bubble.02020.rgba16.inc.c"
};
// 0x0B002820
ALIGNED8 static const Texture effect_0B002820[] = {
#include "textures/effect/lava_bubble.02820.rgba16.inc.c"
};
// 0x0B003020
ALIGNED8 static const Texture effect_0B003020[] = {
#include "textures/effect/lava_bubble.03020.rgba16.inc.c"
};
// 0x0B003820
ALIGNED8 static const Texture effect_0B003820[] = {
#include "textures/effect/lava_bubble.03820.rgba16.inc.c"
};
// 0x0B004020
ALIGNED8 static const Texture effect_0B004020[] = {
#include "textures/effect/lava_bubble.04020.rgba16.inc.c"
};
// 0x0B004820
ALIGNED8 static const Texture effect_0B004820[] = {
#include "textures/effect/lava_bubble.04820.rgba16.inc.c"
};
// 0x0B005020
ALIGNED8 static const Texture effect_0B005020[] = {
#include "textures/effect/lava_bubble.05020.rgba16.inc.c"
};
// 0x0B005820
ALIGNED8 static const Texture effect_0B005820[] = {
#include "textures/effect/lava_bubble.05820.rgba16.inc.c"
};
// 0x0B006020
const Texture *const lava_bubble_ptr_0B006020[] = {
effect_0B002020,
effect_0B002820,
effect_0B003020,
effect_0B003020,
effect_0B003020,
effect_0B003820,
effect_0B004020,
effect_0B004820,
effect_0B005020,
effect_0B005820,
};
// Bubble
// 0x0B006048
ALIGNED8 static const Texture effect_0B006048[] = {
#include "textures/effect/bubble.06048.rgba16.inc.c"
};
// 0x0B006848
const Texture *const bubble_ptr_0B006848[] = {
effect_0B006048,
};
// Tiny Bubble
// 0x0B00684C
ALIGNED8 const Texture effect_0B00684C[] = {
#include "textures/effect/tiny_bubble.0684C.rgba16.inc.c"
};
// 0x0B006A50 - 0x0B006AB0
const Gfx tiny_bubble_dl_0B006A50[] = {
gsDPPipeSync(),
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK | G_SHADING_SMOOTH),
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, effect_0B00684C),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 4, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 4, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 4, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (16 - 1) << G_TEXTURE_IMAGE_FRAC, (16 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPEndDisplayList(),
};
// 0x0B006AB0 - 0x0B006AD8
const Gfx tiny_bubble_dl_0B006AB0[] = {
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK | G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};
// 0x0B006AD8
ALIGNED8 static const Texture effect_0B006AD8[] = {
#include "textures/effect/tiny_bubble.06AD8.rgba16.inc.c"
};
// 0x0B006CD8 - 0x0B006D38
const Gfx tiny_bubble_dl_0B006CD8[] = {
gsDPPipeSync(),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, effect_0B006AD8),
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
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),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 4, 0, G_TX_RENDERTILE, 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),
gsDPSetTileSize(0, 0, 0, (16 - 1) << G_TEXTURE_IMAGE_FRAC, (16 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPEndDisplayList(),
};
// 0x0B006D38 - 0x0B006D68
const Gfx tiny_bubble_dl_0B006D38[] = {
gsDPPipeSync(),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsSPEndDisplayList(),
};
// 0x0B006D68 - 0x0B006D98
const Gfx tiny_bubble_dl_0B006D68[] = {
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPEndDisplayList(),
};