Go to the source code of this file.
◆ light_rays_init()
◆ light_rays_update()
Definition at line 185 of file light_rays.c.
185 {
188 s32 timeLeft;
189 s32 lifetime;
190 s32 i;
191
192 if (
part->timeLeft < 11) {
194 }
195
197
201 }
202
203 if (
part->timeLeft < 0) {
205 return;
206 }
207
208 timeLeft =
part->timeLeft;
209 lifetime =
part->lifetime;
210
211 switch (type) {
212 case 0:
213 case 1:
218 if (
part->lifetime < 10) {
220 }
221 if (
part->timeLeft < 5) {
223 }
225 if (
part->timeLeft <= 0) {
227 }
228 }
229 break;
230 default:
236 if (
part->lifetime < 5) {
238 }
239 if (
part->timeLeft < 5) {
241 }
242 if (timeLeft < 10) {
243 part->alpha = (
part->alpha * timeLeft) / 10;
244 }
245 if (
part->timeLeft <= 0) {
247 }
248 if (
part->unk_90 <= 0 || --
part->unk_90 <= 0) {
252 }
253 }
254 }
255}
BSS s32 PopupMenu_SelectedIndex
struct LightRaysFXData * lightRays
EffectInstanceDataPtr data
@ FX_INSTANCE_FLAG_DISMISS
void func_E006A464(LightRaysFXData *part)
void func_E006A0BC(LightRaysFXData *part, s32 beamIdx)
void func_E006A000(LightRaysFXData *part, s32 beamIdx)
Referenced by light_rays_main().
◆ light_rays_render()
Definition at line 257 of file light_rays.c.
257 {
260
265
268}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void light_rays_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by light_rays_main().
◆ light_rays_appendGfx()
void light_rays_appendGfx |
( |
void * | effect | ) |
|
Definition at line 280 of file light_rays.c.
280 {
288 s32 i;
289
293
295
304
305 if (type >= 2) {
307 }
308
311
312 if (type >= 2) {
313 unk_64 =
part->rot.z;
314 if (type == 3) {
316 } else {
318 }
319
326
328 switch (i & 3) {
329 case 0:
331 break;
332 case 1:
334 break;
335 case 2:
337 break;
338 case 3:
339 default:
341 break;
342 }
343
346
348 } else {
355
357 }
358
360
364 }
365
367}
void func_E006A85C(LightRaysFXData *part)
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by light_rays_render().
◆ func_E006A000()
◆ func_E006A0BC()
◆ light_rays_main()
Definition at line 80 of file light_rays.c.
87 {
92 s32 numParts;
95 s32 i;
96
97 if (type < 2) {
98 numParts = 9;
99 } else {
100 numParts = 17;
101 }
102
109
114
116 part->timeLeft = 100;
121 part->unk_1C =
part->unk_20 = scale;
122
123 switch (type) {
124 case 0:
125 case 1:
128 temp1 = (i - 1) * 30 / (numParts - 1);
129 temp2 = (i - 1) * 20 / (numParts - 1);
130
133 part->unk_6C = 25.0f /
part->unk_7C + 2.5;
134
136 }
137 break;
138 default:
142 }
143 }
144
146}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void light_rays_render(EffectInstance *effect)
void light_rays_init(EffectInstance *effect)
void light_rays_update(EffectInstance *effect)
◆ func_E006A464()
Definition at line 151 of file light_rays.c.
151 {
153 if (
part->unk_34 > 256.0f) {
154 part->unk_34 -= 256.0f;
155 }
156 if (
part->unk_34 < 0.0f) {
157 part->unk_34 += 256.0f;
158 }
159
161 if (
part->unk_3C > 256.0f) {
162 part->unk_3C -= 256.0f;
163 }
164 if (
part->unk_3C < 0.0f) {
165 part->unk_3C += 256.0f;
166 }
167
169 if (
part->unk_38 > 256.0f) {
170 part->unk_38 -= 256.0f;
171 }
172 if (
part->unk_38 < 0.0f) {
173 part->unk_38 += 256.0f;
174 }
175
177 if (
part->unk_40 > 256.0f) {
178 part->unk_40 -= 256.0f;
179 }
180 if (
part->unk_40 < 0.0f) {
181 part->unk_40 += 256.0f;
182 }
183}
Referenced by light_rays_update().
◆ func_E006A85C()
◆ D_090000B0_36E040
◆ D_09000110_36E0A0
◆ D_09000130_36E0C0
◆ D_090001D8_36E168
◆ D_E006ADF0
◆ D_E006AE00
◆ D_E006AE10
Initial value:= {
0, -20, 0, 1, 18,
-10, -60, 45, -1, 4,
-20, -20, 90, 1, 1,
-10, -60, 135, 1, -4,
0, -20, 180, -8, 1,
-10, -60, 225, -1, -1,
-20, -20, 270, 1, -9,
-10, -60, 315, 4, 4,
0, 10, 22, 4, 1,
-10, 20, 67, 1, -1,
-20, 10, 112, -1, -1,
-10, 20, 157, -8, 1,
0, 10, 202, 1, -4,
-10, 20, 247, 1, -18,
-20, 10, 292, -1, 9,
-10, 20, 337, 1, 1
}
Definition at line 17 of file light_rays.c.
17 {
18 0, -20, 0, 1, 18,
19 -10, -60, 45, -1, 4,
20 -20, -20, 90, 1, 1,
21 -10, -60, 135, 1, -4,
22 0, -20, 180, -8, 1,
23 -10, -60, 225, -1, -1,
24 -20, -20, 270, 1, -9,
25 -10, -60, 315, 4, 4,
26 0, 10, 22, 4, 1,
27 -10, 20, 67, 1, -1,
28 -20, 10, 112, -1, -1,
29 -10, 20, 157, -8, 1,
30 0, 10, 202, 1, -4,
31 -10, 20, 247, 1, -18,
32 -20, 10, 292, -1, 9,
33 -10, 20, 337, 1, 1
34};
Referenced by func_E006A0BC().