25 { 0x00000080, 0x00000080, 0.5f, 0.5f, 0x00000040, 0x00000004 },
26 { 0x00000040, 0x00000040, 2.0f, 2.0f, 0x00000020, 0x00000010 },
27 { 0x00000040, 0x00000040, 1.0f, 1.0f, 0x00000040, 0x00000008 },
28 { 0x00000040, 0x00000040, 2.0f, 2.0f, 0x00000010, 0x00000010 },
29 { 0x00000040, 0x00000040, 1.0f, 1.0f, 0x00000020, 0x00000010 },
30 { 0x00000040, 0x00000040, 1.0f, 1.0f, 0x00000040, 0x00000008 },
181 if (brightness > 127) {
189 glowExtent = temp_s1->
unk_10;
190 rectHeight = temp_s1->
unk_14;
195 isPointVisible = TRUE;
204 colorScale = brightness * 2;
205 r = color->
r * colorScale / 255;
206 g = color->
g * colorScale / 255;
207 b = color->
b * colorScale / 255;
209 gDPSetPrimColor(
gMainGfxPos++, 0, 0, r, g, b, 127);
211 xMin = centerX - glowExtent;
212 xMax = xMin + glowExtent * 2;
213 yMin = centerY - glowExtent;
214 yMax = yMin + glowExtent * 2;
231 numRects = (yMax - yMin) / rectHeight;
233 for (i = yStart / rectHeight; i < numRects; i++) {
234 s32 y = yMin + i * rectHeight;
240 (s32) (xMin * temp_s1->
unk_08) * 4,
245 for (j = 0; j < 1; j++) {
249 xMin + xStart, 0, xMax - 1, rectHeight - 1,
250 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 9, 8, G_TX_NOLOD, G_TX_NOLOD);
252 (xMin + xStart) * 4, y * 4,
253 xMax * 4, (y + rectHeight) * 4,
255 ((xMin + xStart) & 0x1FF) << 5, 0,
void bulb_glow_main(s32 arg0, f32 posX, f32 posY, f32 posZ, f32 arg4, EffectInstance **outEffect)