Go to the source code of this file.
◆ gather_magic_appendGfx()
void gather_magic_appendGfx |
( |
void * | effect | ) |
|
Definition at line 154 of file gather_magic.c.
154 {
156 s32 unk_30 = part->
unk_30;
157 s32 unk_34 = part->
unk_34;
158 s32 unk_38 = part->
unk_38;
162 s32 i;
163
166
171
175
176 part++;
177 for (i = 1; i < ((
EffectInstance*)effect)->numParts; i++, part++) {
179
180 if (scale != 0.0f) {
182
184 guScaleF(sp58, scale, scale, scale);
187
191 }
192 }
193
195}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by gather_magic_render().
◆ gather_magic_init()
◆ gather_magic_update()
Definition at line 79 of file gather_magic.c.
79 {
81 s32 unk_1C;
82 s32 i;
83
86 }
87
89
92 return;
93 }
94
96
97 if (unk_1C < 21) {
98 part->
unk_14 = unk_1C * 12;
99 } else {
101 }
102
103 if (unk_1C % 2) {
105 }
106
108
109 part++;
110 for (i = 1; i < effect->
numParts; i++, part++) {
111 f32 unk_20 = part->
unk_20;
112 f32 unk_2C = part->
unk_2C;
113 f32 unk_24 = part->
unk_24;
118
119 part->
unk_08 = unk_2C * sin_20 * cos_24;
120 part->
unk_0C = unk_2C * cos_20 * cos_24;
121 part->
unk_10 = unk_2C * sin_24;
122
123 part->
unk_14 = ((100.0f - part->
unk_2C) * 255.0f * 2.0f) / 100.0f;
124 if (part->
unk_14 >= 256) {
126 }
127
129 part->
unk_2C -= (i & 3) * 2 + 2;
130
131 if (part->
unk_2C < 0.0f) {
134 }
135
136 part->
unk_20 += (unk_1C % 2) ? 5.0f : 2.0f;
137 part->
unk_24 += (unk_1C % 2) ? 2.0f : 5.0f;
138 }
139}
struct GatherMagicFXData * gatherMagic
Referenced by gather_magic_main().
◆ gather_magic_render()
Definition at line 141 of file gather_magic.c.
141 {
144
147 renderTask.
dist = 10;
149
152}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_SURFACE_XLU_LAYER3
void gather_magic_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by gather_magic_main().
◆ gather_magic_main()
EffectInstance * gather_magic_main |
( |
s32 | arg0, |
|
|
f32 | arg1, |
|
|
f32 | arg2, |
|
|
f32 | arg3, |
|
|
f32 | arg4, |
|
|
s32 | arg5 ) |
Definition at line 15 of file gather_magic.c.
15 {
19 s32 numParts = 31;
20 s32 i;
21
28
34
37 if (arg5 <= 0) {
39 } else {
41 }
46
47 if (arg0 == 0) {
54 } else {
61 }
62
63 data++;
64 for (i = 1; i < numParts; i++, data++) {
65 s32 d = numParts - 1;
66 f32 zero = 0.0f;
67
68 data->
unk_20 = ((i - 1) * 3240) / d;
70 data->
unk_2C = ((i - 1) * 100) / d;
72 }
73 return effect;
74}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void gather_magic_update(EffectInstance *effect)
void gather_magic_init(EffectInstance *effect)
void gather_magic_render(EffectInstance *effect)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
Referenced by lightning_main().
◆ D_09000080_38F790
◆ D_090001A8_38F8B8
◆ D_090001C8_38F8D8
◆ D_E008E890