268 {
272 Gfx* dlist2;
273 s32 primA;
274 s32 primR, primG, primB;
275 s32 envR, envG, envB;
276 s32 primR2, primG2, primB2;
277 s32 envR2, envG2, envB2;
278 Gfx* savedGfxPos;
279 Gfx* savedGfxPos2;
280 s32 temp_v0;
281 s32 i;
282
283 primR = data->
prim.
r;
284 primG = data->
prim.
g;
285 primB = data->
prim.
b;
289 primR2 = data->
prim.
r;
290 primG2 = data->
prim.
g;
291 primB2 = data->
prim.
b;
295
298
299 if (temp_v0 >= 2) {
300 primR2 = primR >> 2;
301 primG2 = primG >> 2;
302 primB2 = primB >> 2;
303 envR2 = envR >> 2;
304 envG2 = envG >> 2;
305 envB2 = envB >> 2;
306 }
307
311
315
317 G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW);
319
323
324 data++;
325 for (i = 1; i < ((
EffectInstance*) effect)->numParts; i++, data++) {
335
338
340 G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW);
343 }
344 }
347 gDPSetPrimColor(
gMainGfxPos++, 0, 0, primR2, primG2, primB2, primA);
348 gDPSetEnvColor(
gMainGfxPos++, envR2, envG2, envB2, 0);
352 gDPSetPrimColor(
gMainGfxPos++, 0, 0, primR, primG, primB, primA);
353 gDPSetEnvColor(
gMainGfxPos++, envR, envG, envB, 0);
360}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext