From c7872bf94583a4d31e55f6f4dfb14b208fa032d4 Mon Sep 17 00:00:00 2001 From: gijs Date: Sun, 24 Sep 2023 11:54:52 +0200 Subject: [PATCH] Migrated Gfx at 0x80186D00 --- splat.yaml | 2 +- src/gfx/ob_broad_badge.c | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/gfx/ob_broad_badge.c diff --git a/splat.yaml b/splat.yaml index b07e2d3..150e344 100644 --- a/splat.yaml +++ b/splat.yaml @@ -406,7 +406,7 @@ segments: - [0x5C8A0, .rodata, "gfx/ob_mutual_ball"] - [0x5CAD0, .rodata, "gfx/ob_thick_bikes"] - [0x5CB60, .rodata, "gfx/ob_hospitable_friends"] - - [0x5CC00, rodata] + - [0x5CC00, .rodata, "gfx/ob_broad_badge"] - [0x5CC90, rodata] - [0x5CCD0, rodata] - [0x5CD20, rodata] diff --git a/src/gfx/ob_broad_badge.c b/src/gfx/ob_broad_badge.c new file mode 100644 index 0000000..1400128 --- /dev/null +++ b/src/gfx/ob_broad_badge.c @@ -0,0 +1,27 @@ +#include + +#include "common.h" + +/* 5CC00 80186D00 */ +const Gfx DISPLAY_LIST_80186D00[] = { + gsDPPipeSync(), + gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_OFF), + gsSPClearGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BOTH | G_FOG | + G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR | + G_LOD | G_SHADING_SMOOTH | G_CLIPPING | 0x0040F9FA), + gsDPPipeSync(), + gsDPPipeSync(), + gsDPSetCycleType(G_CYC_1CYCLE), + gsDPPipeSync(), + gsDPSetTexturePersp(G_TP_NONE), + gsDPSetTextureDetail(G_TD_CLAMP), + gsDPSetTextureLOD(G_TL_TILE), + gsDPSetTextureLUT(G_TT_NONE), + gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA), + gsDPSetRenderMode(G_RM_OPA_SURF, G_RM_OPA_SURF2), + gsDPSetTextureFilter(G_TF_POINT), + gsDPSetBlendColor(0xFF, 0xFF, 0xFF, 0x01), + gsDPSetAlphaCompare(G_AC_NONE), + gsDPPipeSync(), + gsSPEndDisplayList(), +}; \ No newline at end of file