Go to the source code of this file.
◆ sun_init()
◆ sun_update()
Definition at line 74 of file sun.c.
74 {
76 s32 time;
77 s32 i;
78
80 effect->
flags &= ~FX_INSTANCE_FLAG_DISMISS;
82 }
85 }
86
90 }
93 return;
94 }
95
99 if (data->
alpha < 0) {
101 }
102 }
107 }
108
113 }
118 }
119 }
120
123 * ((
sin_deg((time * 2 + (20 * i))) * 0.01) + 0.05)
124 *
sin_deg(((f32) time * 0.25) + (
SQ(i) * 20));
125
128 }
131 }
132 }
133}
@ FX_INSTANCE_FLAG_DISMISS
Referenced by sun_main().
◆ sun_render()
Definition at line 135 of file sun.c.
135 {
138
141 renderTask.
dist = 10;
143
146}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void(* appendGfx)(void *)
void sun_appendGfx(void *effect)
Referenced by sun_main().
◆ sun_appendGfx()
void sun_appendGfx |
( |
void * | effect | ) |
|
Definition at line 148 of file sun.c.
148 {
153 s32 alpha;
154 s32 offsetS;
155 s32 fromRight;
156 s32 i;
157
161
162 if (alpha != 0) {
165
166 if (!fromRight) {
167 guOrthoF(mtx, -1600.0f, 1600.0f, -1200.0f, 1200.0f, -100.0f, 100.0f, 1.0f);
168 } else {
169 guOrthoF(mtx, 1600.0f, -1600.0f, -1200.0f, 1200.0f, -100.0f, 100.0f, 1.0f);
170 }
171
174 G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
178 G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
179
183
186 gDPSetTileSize(
gMainGfxPos++, 1, offsetS + (44 * i), 0, offsetS + (44 * i) + 252, 124);
188 }
191 G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
193 }
194}
struct EffectGraphics * graphics
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext
Referenced by sun_render().
◆ sun_main()
EffectInstance * sun_main |
( |
s32 | shineFromRight, |
|
|
f32 | offsetX, |
|
|
f32 | offsetY, |
|
|
f32 | offsetZ, |
|
|
f32 | arg4, |
|
|
s32 | duration ) |
Definition at line 23 of file sun.c.
23 {
27 s32 numParts = 1;
28 s32 i;
29
36
39
42
45 if (duration <= 0) {
47 } else {
49 }
50 data->
pos.
x = offsetX;
51 data->
pos.
y = offsetY;
52 data->
pos.
z = offsetZ;
61
64 }
67
68 return effect;
69}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
void sun_update(EffectInstance *effect)
void sun_render(EffectInstance *effect)
void sun_init(EffectInstance *effect)
◆ D_09000898_40C438
◆ D_09000980_40C520
◆ D_09000998_40C538
◆ D_090009B0_40C550
◆ D_090009C8_40C568
◆ D_090009E0_40C580
◆ D_E0120780
◆ D_E0120794