119 s32 unk_24 = data->
unk_24;
148 for (i = 0; i < 10; i++) {
160 temp3 = unk_24 * (1.0f - temp2) * 2.0f;
162 if (temp3 > 255.0f) {
168 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_8b, 8, 0, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
170 gDPLoadTile(
gMainGfxPos++, G_TX_LOADTILE, 0, temp1 * 4, 254, (temp1 + 15) * 4);
172 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_4b, 8, 0, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
173 gDPSetTileSize(
gMainGfxPos++, G_TX_RENDERTILE, 0, temp1 * 4, 508, (temp1 + 15) * 4);
174 gDPSetTileSize(
gMainGfxPos++, G_TX_RENDERTILE, 0, temp2 * 128.0f * 4.0f, 2000, 2000);
176 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_8b, 8, 0x80, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
178 gDPLoadTile(
gMainGfxPos++, G_TX_LOADTILE, 0, temp1 * 4, 254, (temp1 + 15) * 4);
180 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_4b, 8, 0x80, 1, 1, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
181 gDPSetTileSize(
gMainGfxPos++, 1, 0, temp1 * 4, 508, (temp1 + 15) * 4);
182 gDPSetTileSize(
gMainGfxPos++, 1, 0, temp2 * 128.0f * 4.0f, 2000, 2000);
186 gSP2Triangles(
gMainGfxPos++, 0, 1, 2, 0, 0, 2, 3, 0);
189 gSP2Triangles(
gMainGfxPos++, 1, 4, 5, 0, 1, 5, 2, 0);
192 gSP2Triangles(
gMainGfxPos++, 4, 6, 7, 0, 4, 7, 5, 0);
195 gSP2Triangles(
gMainGfxPos++, 6, 8, 9, 0, 6, 9, 7, 0);
198 gSP2Triangles(
gMainGfxPos++, 8, 10, 11, 0, 8, 11, 9, 0);
201 gSP2Triangles(
gMainGfxPos++, 10, 12, 13, 0, 10, 13, 11, 0);
204 gSP2Triangles(
gMainGfxPos++, 12, 14, 15, 0, 12, 15, 13, 0);
207 gSP2Triangles(
gMainGfxPos++, 14, 16, 17, 0, 14, 17, 15, 0);
210 gSP2Triangles(
gMainGfxPos++, 16, 18, 19, 0, 16, 19, 17, 0);
213 gSP2Triangles(
gMainGfxPos++, 18, 20, 21, 0, 18, 21, 19, 0);