trunk/src/mame/video/hng64_3d.c
r244741 | r244742 | |
500 | 500 | if (chunkOffset[1] & 0x1000) polys[*numPolys].texType = 0x1; |
501 | 501 | else polys[*numPolys].texType = 0x0; |
502 | 502 | |
503 | | polys[*numPolys].texPageSmall = (chunkOffset[2] & 0x8000) >> 15; // Just a guess. |
504 | | polys[*numPolys].texPageHorizOffset = (chunkOffset[2] & 0x3000) >> 12; |
505 | | polys[*numPolys].texPageVertOffset = (chunkOffset[2] & 0x0060) >> 5; |
| 503 | polys[*numPolys].texPageSmall = (chunkOffset[2] & 0xc000)>>14; // Just a guess. |
| 504 | polys[*numPolys].texPageHorizOffset = (chunkOffset[2] & 0x3800) >> 11; |
| 505 | polys[*numPolys].texPageVertOffset = (chunkOffset[2] & 0x0070) >> 4; |
506 | 506 | |
507 | 507 | polys[*numPolys].texIndex = chunkOffset[1] & 0x000f; |
508 | 508 | |
r244741 | r244742 | |
537 | 537 | polys[*numPolys].palOffset += (explicitPaletteValue1 + explicitPaletteValue2); |
538 | 538 | |
539 | 539 | |
| 540 | #if 0 |
| 541 | if (((chunkOffset[2] & 0xc000) == 0x4000) && (m_screen->frame_number() & 1)) |
| 542 | { |
| 543 | // if (chunkOffset[2] == 0xd870) |
| 544 | { |
| 545 | polys[*numPolys].debugColor = 0xffff0000; |
| 546 | printf("%d (%08x) : %04x %04x %04x\n", k, address[k] * 3 * 2, chunkOffset[0], chunkOffset[1], chunkOffset[2]); |
| 547 | } |
| 548 | } |
| 549 | #endif |
540 | 550 | |
541 | 551 | UINT8 chunkLength = 0; |
542 | 552 | switch(chunkType) |
r244741 | r244742 | |
1275 | 1285 | textureT = t_coord * 512.0f; |
1276 | 1286 | } |
1277 | 1287 | |
| 1288 | // stuff in mode 1 here already looks good? |
1278 | 1289 | // Small-Page textures |
1279 | | if (prOptions.texPageSmall) |
| 1290 | if (prOptions.texPageSmall == 2) |
1280 | 1291 | { |
1281 | 1292 | textureT = fmod(textureT, 256.0f); |
1282 | 1293 | textureS = fmod(textureS, 256.0f); |
1283 | 1294 | |
1284 | | textureT += (256.0f * prOptions.texPageHorizOffset); |
1285 | | textureS += (256.0f * prOptions.texPageVertOffset); |
| 1295 | textureT += (256.0f * (prOptions.texPageHorizOffset>>1)); |
| 1296 | textureS += (256.0f * (prOptions.texPageVertOffset>>1)); |
1286 | 1297 | } |
| 1298 | else if (prOptions.texPageSmall == 3) |
| 1299 | { |
| 1300 | textureT = fmod(textureT, 128.0f); |
| 1301 | textureS = fmod(textureS, 128.0f); |
| 1302 | |
| 1303 | textureT += (128.0f * (prOptions.texPageHorizOffset>>0)); |
| 1304 | textureS += (128.0f * (prOptions.texPageVertOffset>>0)); |
| 1305 | } |
| 1306 | |
1287 | 1307 | paletteEntry = textureOffset[((int)textureS)*1024 + (int)textureT]; |
1288 | 1308 | |
1289 | 1309 | // Naieve Alpha Implementation (?) - don't draw if you're at texture index 0... |
trunk/src/mess/drivers/pasogo.c
r244741 | r244742 | |
467 | 467 | |
468 | 468 | PALETTE_INIT_MEMBER(pasogo_state, pasogo) |
469 | 469 | { |
470 | | palette.set_pen_color(0, rgb_t(80, 130, 130)); |
471 | | palette.set_pen_color(1, rgb_t(40, 60, 140)); |
| 470 | palette.set_pen_color(0, rgb_t(160, 190, 170)); |
| 471 | palette.set_pen_color(1, rgb_t(40, 50, 70)); |
472 | 472 | } |
473 | 473 | |
474 | 474 | |