Files
KataMario/levels/ttm/slide_exit_podium/model.inc.c
T
5a9b5a9751 Mat Stack Fix
* Implemented new lightweight CPU/RDP profiler
* Added RSP profiling to the lightweight profiler
* Added CPU audio to lightweight profiler
* Changed lingering manual light struct definitions to gdSPDefLights1, made a dummy light for Koopa's pink shorts
* Ran script to convert all light commands to lightcolor commands
* Added define guards for the profiler
* Wrote function for setting up global light direction in the frame
* Moved camera matrix into projection stack
* Corrected cameraToObject for the new matrix stack (fixes culling and sound)
* Fixed billboarding with new matrix stack
* Fixed shadows with new matrix stack
* Fixed some areas where the game was previously extracting the camera matrix from various matrices
* Restored vanilla light and env map directions under new matrix stack
* Fix goddard crash
* Fix geo_process_level_of_detail
* Remove 'construct_float' from 'geo_process_level_of_detail'
* Removed some accidentally added files
* Removed unnecessary matrix multiplications in geo_process_object
* Added fixlights script to build system for fixing custom assets and added option to disable it if needed
* Fixed visual debug with new matstack and cleaned up visual debug code
* Fixed handling of WORLD_SCALE in view matrix so it doesn't get cancelled out
* Fixed clip planes not scaling based on WORLD_SCALE

Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
Co-authored-by: Arceveti <arceveti@gmail.com>
Co-authored-by: thecozies <collinpferguson@gmail.com>
2022-07-19 08:04:54 -05:00

164 lines
9.1 KiB
C

// 0x0702ACE8 - 0x0702AD00
// 0x0702AD00 - 0x0702AD18
// 0x0702AD18 - 0x0702AD30
// 0x0702AD30 - 0x0702B530
ALIGNED8 static const Texture ttm_seg7_texture_0702AD30[] = {
#include "levels/ttm/8.rgba16.inc.c"
};
// 0x0702B530 - 0x0702B570
static const Vtx ttm_seg7_vertex_0702B530[] = {
{{{ 102, 10, 102}, 0, { 4568, -7698}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -101, 10, -101}, 0, { 5590, -8720}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -101, 10, 102}, 0, { 4568, -8720}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 102, 10, -101}, 0, { 5590, -7698}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x0702B570 - 0x0702B670
static const Vtx ttm_seg7_vertex_0702B570[] = {
{{{ -101, 0, -101}, 0, { 5590, -8720}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 102, 205, -101}, 0, { 5590, -7698}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -101, 205, -101}, 0, { 5590, -8720}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 102, 0, -101}, 0, { 5590, -7698}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -101, 0, -101}, 0, { 5590, -8720}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -101, 205, 102}, 0, { 4568, -8720}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -101, 0, 102}, 0, { 4568, -8720}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -101, 205, -101}, 0, { 5590, -8720}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -101, 205, 102}, 0, { 4568, -8720}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 102, 0, 102}, 0, { 4568, -7698}, {0x00, 0x00, 0x81, 0xff}}},
{{{ -101, 0, 102}, 0, { 4568, -8720}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 102, 205, 102}, 0, { 4568, -7698}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 102, 0, 102}, 0, { 4568, -7698}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 102, 205, 102}, 0, { 4568, -7698}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 102, 205, -101}, 0, { 5590, -7698}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 102, 0, -101}, 0, { 5590, -7698}, {0x81, 0x00, 0x00, 0xff}}},
};
// 0x0702B670 - 0x0702B770
static const Vtx ttm_seg7_vertex_0702B670[] = {
{{{ -204, 0, -204}, 0, { 6100, -9230}, {0x00, 0x00, 0x81, 0xff}}},
{{{ -204, 307, -204}, 0, { 6100, -9230}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 1024, 0, -204}, 0, { 6100, -3098}, {0x00, 0x00, 0x81, 0xff}}},
{{{ -204, 307, 205}, 0, { 4056, -9230}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -204, 0, 205}, 0, { 4056, -9230}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 1024, 0, 205}, 0, { 4056, -3098}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -204, 307, -204}, 0, { 6100, -9230}, {0x59, 0x5a, 0x00, 0xff}}},
{{{ -204, 307, 205}, 0, { 4056, -9230}, {0x59, 0x5a, 0x00, 0xff}}},
{{{ -101, 205, 102}, 0, { 4568, -8720}, {0x59, 0x5a, 0x00, 0xff}}},
{{{ -101, 205, -101}, 0, { 5590, -8720}, {0x59, 0x5a, 0x00, 0xff}}},
{{{ -204, 307, -204}, 0, { 6100, -9230}, {0x18, 0x64, 0x4a, 0xff}}},
{{{ -101, 205, -101}, 0, { 5590, -8720}, {0x18, 0x64, 0x4a, 0xff}}},
{{{ 205, 205, -204}, 0, { 6100, -7186}, {0x18, 0x64, 0x4a, 0xff}}},
{{{ 205, 205, -204}, 0, { 6100, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -101, 205, -101}, 0, { 5590, -8720}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 102, 205, -101}, 0, { 5590, -7698}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x0702B770 - 0x0702B870
static const Vtx ttm_seg7_vertex_0702B770[] = {
{{{ -204, 102, 614}, 0, { 2012, -9230}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 102, 614}, 0, { 2012, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 102, 205}, 0, { 4056, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -204, 102, 205}, 0, { 4056, -9230}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 0, 205}, 0, { 4056, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 205, 102, 205}, 0, { 4056, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 205, 102, 614}, 0, { 2012, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 205, 0, 614}, 0, { 2012, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -204, 0, 614}, 0, { 2012, -9230}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 205, 102, 614}, 0, { 2012, -7186}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -204, 102, 614}, 0, { 2012, -9230}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 205, 0, 614}, 0, { 2012, -7186}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -204, 102, -613}, 0, { 8144, -9230}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 205, 102, -613}, 0, { 8144, -7186}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 205, 0, -613}, 0, { 8144, -7186}, {0x00, 0x00, 0x81, 0xff}}},
{{{ -204, 0, -613}, 0, { 8144, -9230}, {0x00, 0x00, 0x81, 0xff}}},
};
// 0x0702B870 - 0x0702B970
static const Vtx ttm_seg7_vertex_0702B870[] = {
{{{ 102, 205, -101}, 0, { 5590, -7698}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 205, 205}, 0, { 4056, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 205, -204}, 0, { 6100, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 0, -613}, 0, { 8144, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 205, 102, -613}, 0, { 8144, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 205, 102, -204}, 0, { 6100, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 205, 0, -204}, 0, { 6100, -7186}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -204, 102, -204}, 0, { 6100, -9230}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 102, -204}, 0, { 6100, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 102, -613}, 0, { 8144, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -204, 102, -613}, 0, { 8144, -9230}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 1024, 0, -204}, 0, { 6100, -3098}, {0x1e, 0x7b, 0x00, 0xff}}},
{{{ 205, 205, -204}, 0, { 6100, -7186}, {0x1e, 0x7b, 0x00, 0xff}}},
{{{ 205, 205, 205}, 0, { 4056, -7186}, {0x1e, 0x7b, 0x00, 0xff}}},
{{{ 1024, 0, 205}, 0, { 4056, -3098}, {0x1e, 0x7b, 0x00, 0xff}}},
{{{ 102, 205, 102}, 0, { 4568, -7698}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x0702B970 - 0x0702B9D0
static const Vtx ttm_seg7_vertex_0702B970[] = {
{{{ 205, 205, 205}, 0, { 4056, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 102, 205, 102}, 0, { 4568, -7698}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -101, 205, 102}, 0, { 4568, -8720}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 205, 205, 205}, 0, { 4056, -7186}, {0x18, 0x64, 0xb6, 0xff}}},
{{{ -101, 205, 102}, 0, { 4568, -8720}, {0x18, 0x64, 0xb6, 0xff}}},
{{{ -204, 307, 205}, 0, { 4056, -9230}, {0x18, 0x64, 0xb6, 0xff}}},
};
// 0x0702B9D0 - 0x0702BB60
static const Gfx ttm_seg7_dl_0702B9D0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_0702AD30),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLightColor(LIGHT_1, 0x333333ff),
gsSPLightColor(LIGHT_2, 0xc0c0cff),
gsSPVertex(ttm_seg7_vertex_0702B530, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPLightColor(LIGHT_1, 0x777777ff),
gsSPLightColor(LIGHT_2, 0x1d1d1dff),
gsSPVertex(ttm_seg7_vertex_0702B570, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
gsSPLightColor(LIGHT_1, 0xffffffff),
gsSPLightColor(LIGHT_2, 0x3f3f3fff),
gsSPVertex(ttm_seg7_vertex_0702B670, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(ttm_seg7_vertex_0702B770, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
gsSPVertex(ttm_seg7_vertex_0702B870, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP2Triangles(11, 13, 14, 0x0, 0, 15, 1, 0x0),
gsSPVertex(ttm_seg7_vertex_0702B970, 6, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSPEndDisplayList(),
};
// 0x0702BB60 - 0x0702BBD0
const Gfx ttm_seg7_dl_0702BB60[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_SHADING_SMOOTH),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPDisplayList(ttm_seg7_dl_0702B9D0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};