Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/bin/effect.c
7854 views
1
#include <PR/ultratypes.h>
2
#include <PR/gbi.h>
3
4
#include "macros.h"
5
#include "types.h"
6
7
#include "make_const_nonconst.h"
8
9
UNUSED static const u64 effect_unused_0 = 0;
10
11
// Flower (Unused)
12
// 0x0B000008
13
ALIGNED8 static const Texture effect_0B000008[] = {
14
#include "textures/effect/flower.00008.rgba16.inc.c"
15
};
16
17
// 0x0B000808
18
ALIGNED8 static const Texture effect_0B000808[] = {
19
#include "textures/effect/flower.00808.rgba16.inc.c"
20
};
21
22
// 0x0B001008
23
ALIGNED8 static const Texture effect_0B001008[] = {
24
#include "textures/effect/flower.01008.rgba16.inc.c"
25
};
26
27
// 0x0B001808
28
ALIGNED8 static const Texture effect_0B001808[] = {
29
#include "textures/effect/flower.01808.rgba16.inc.c"
30
};
31
32
// 0x0B002008
33
const Texture *const flower_bubbles_textures_ptr_0B002008[] = {
34
effect_0B000008,
35
effect_0B000808,
36
effect_0B001008,
37
effect_0B001808,
38
effect_0B001008,
39
effect_0B000808,
40
};
41
42
// Lava Bubble
43
// 0x0B002020
44
ALIGNED8 static const Texture effect_0B002020[] = {
45
#include "textures/effect/lava_bubble.02020.rgba16.inc.c"
46
};
47
48
// 0x0B002820
49
ALIGNED8 static const Texture effect_0B002820[] = {
50
#include "textures/effect/lava_bubble.02820.rgba16.inc.c"
51
};
52
53
// 0x0B003020
54
ALIGNED8 static const Texture effect_0B003020[] = {
55
#include "textures/effect/lava_bubble.03020.rgba16.inc.c"
56
};
57
58
// 0x0B003820
59
ALIGNED8 static const Texture effect_0B003820[] = {
60
#include "textures/effect/lava_bubble.03820.rgba16.inc.c"
61
};
62
63
// 0x0B004020
64
ALIGNED8 static const Texture effect_0B004020[] = {
65
#include "textures/effect/lava_bubble.04020.rgba16.inc.c"
66
};
67
68
// 0x0B004820
69
ALIGNED8 static const Texture effect_0B004820[] = {
70
#include "textures/effect/lava_bubble.04820.rgba16.inc.c"
71
};
72
73
// 0x0B005020
74
ALIGNED8 static const Texture effect_0B005020[] = {
75
#include "textures/effect/lava_bubble.05020.rgba16.inc.c"
76
};
77
78
// 0x0B005820
79
ALIGNED8 static const Texture effect_0B005820[] = {
80
#include "textures/effect/lava_bubble.05820.rgba16.inc.c"
81
};
82
83
// 0x0B006020
84
const Texture *const lava_bubble_ptr_0B006020[] = {
85
effect_0B002020,
86
effect_0B002820,
87
effect_0B003020,
88
effect_0B003020,
89
effect_0B003020,
90
effect_0B003820,
91
effect_0B004020,
92
effect_0B004820,
93
effect_0B005020,
94
effect_0B005820,
95
};
96
97
// Bubble
98
// 0x0B006048
99
ALIGNED8 static const Texture effect_0B006048[] = {
100
#include "textures/effect/bubble.06048.rgba16.inc.c"
101
};
102
103
// 0x0B006848
104
const Texture *const bubble_ptr_0B006848[] = {
105
effect_0B006048,
106
};
107
108
// Tiny Bubble
109
// 0x0B00684C
110
ALIGNED8 const Texture effect_0B00684C[] = {
111
#include "textures/effect/tiny_bubble.0684C.rgba16.inc.c"
112
};
113
114
// 0x0B006A50 - 0x0B006AB0
115
const Gfx tiny_bubble_dl_0B006A50[] = {
116
gsDPPipeSync(),
117
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK | G_SHADING_SMOOTH),
118
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
119
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
120
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
121
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, effect_0B00684C),
122
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),
123
gsDPLoadSync(),
124
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
125
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),
126
gsDPSetTileSize(0, 0, 0, (16 - 1) << G_TEXTURE_IMAGE_FRAC, (16 - 1) << G_TEXTURE_IMAGE_FRAC),
127
gsSPEndDisplayList(),
128
};
129
130
// 0x0B006AB0 - 0x0B006AD8
131
const Gfx tiny_bubble_dl_0B006AB0[] = {
132
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
133
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
134
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
135
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK | G_SHADING_SMOOTH),
136
gsSPEndDisplayList(),
137
};
138
139
// 0x0B006AD8
140
ALIGNED8 static const Texture effect_0B006AD8[] = {
141
#include "textures/effect/tiny_bubble.06AD8.rgba16.inc.c"
142
};
143
144
// 0x0B006CD8 - 0x0B006D38
145
const Gfx tiny_bubble_dl_0B006CD8[] = {
146
gsDPPipeSync(),
147
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
148
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, effect_0B006AD8),
149
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
150
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
151
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
152
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),
153
gsDPLoadSync(),
154
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
155
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),
156
gsDPSetTileSize(0, 0, 0, (16 - 1) << G_TEXTURE_IMAGE_FRAC, (16 - 1) << G_TEXTURE_IMAGE_FRAC),
157
gsSPEndDisplayList(),
158
};
159
160
// 0x0B006D38 - 0x0B006D68
161
const Gfx tiny_bubble_dl_0B006D38[] = {
162
gsDPPipeSync(),
163
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
164
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
165
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
166
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
167
gsSPEndDisplayList(),
168
};
169
170
// 0x0B006D68 - 0x0B006D98
171
const Gfx tiny_bubble_dl_0B006D68[] = {
172
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),
173
gsDPLoadSync(),
174
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
175
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),
176
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
177
gsSPEndDisplayList(),
178
};
179
180