rdp31data.h 1.64 KB

static char  test30_IA4[] = {
        0x13, 0x57, 0x9b, 0xdf, 0xfd, 0xb1, 0x57, 0xb3 };

static Vtx ground_vtx[6] = {
{ -150, 0, -500, 0, 0, (400 << 5), 21, 21, 201, 255 },
{ -150, 0,  300, 0, 0, 0, 21, 201, 21, 255 },
{    0, 0, -500, 0, (75 << 5), (400 << 5), 201, 21, 21, 255 },
{    0, 0,  300, 0, (75 << 5), 0, 201, 21, 21, 255 },
{  150, 0, -500, 0, 0, (400 << 5), 21, 21, 201, 255 },
{  150, 0,  300, 0, 0, 0, 21, 201, 21, 255 },
};

Gfx ground_dl[] = {
    gsDPPipeSync(),
    gsSPSetGeometryMode(G_ZBUFFER),
    gsSPSetGeometryMode(G_SHADE),
    gsDPSetRenderMode(G_RM_AA_ZB_OPA_INTER, G_RM_AA_ZB_OPA_INTER2),

    gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
    gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
    gsDPSetTextureFilter(G_TF_BILERP),
    gsDPSetTexturePersp(G_TP_PERSP),
    gsDPLoadTextureBlock_4b(test30_IA4, G_IM_FMT_IA, 16, 1, 0,
                         G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR,
                         4, 0, G_TX_NOLOD, G_TX_NOLOD),

    gsSPVertex(&ground_vtx[0], 6, 0),

    gsSP1Triangle (0, 1, 2, 0),
/*
    gsSP1Triangle (1, 3, 2, 0),
    gsSP1Triangle (2, 3, 5, 0),
    gsSP1Triangle (2, 5, 4, 0),
*/

/*
 * longitudal cutting plane...
 *
    gsSP1Triangle (8, 7, 6, 0),
    gsSP1Triangle (8, 9, 7, 0),
*/

    gsSPTexture(16, 2, 0, G_TX_RENDERTILE, G_OFF),

    gsSPEndDisplayList(),
};

#include "torus_vtx.h"



Gfx torus_dl[] = {
    gsDPPipeSync(),
    gsSPSetGeometryMode(G_ZBUFFER),
    gsSPSetGeometryMode(G_SHADE),
    gsDPSetCombineMode (G_CC_SHADE, G_CC_SHADE),
    gsDPSetRenderMode(G_RM_AA_ZB_OPA_INTER, G_RM_AA_ZB_OPA_INTER2),

#include "torus_cmds.h"

    gsSPEndDisplayList(),
};