From fe8384a44038525085f1fdaa58f4b088418f3936 Mon Sep 17 00:00:00 2001 From: gheskett Date: Thu, 24 Feb 2022 02:07:39 -0500 Subject: [PATCH 001/180] Deprecate sBackgroundMusicDefaultVolume --- src/audio/external.c | 14 ++++++++++---- src/audio/internal.h | 2 +- src/audio/seqplayer.c | 16 +++++++++++++--- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/audio/external.c b/src/audio/external.c index 4aca7632..7f77c613 100644 --- a/src/audio/external.c +++ b/src/audio/external.c @@ -259,7 +259,12 @@ u16 sLevelAcousticReaches[LEVEL_COUNT] = { #define VOLUME_RANGE_UNK2 0.8f #endif -// Default volume for background music sequences (playing on player 0). +// sBackgroundMusicDefaultVolume represents the default volume for background music sequences using the level player (deprecated). +// This code block is simply commented out for now as to not destroy compatibility with any streamed audio tools. +// TODO: Delete this entirely once the unsupporting streamed tools or their builds are outdated. + +/* + u8 sBackgroundMusicDefaultVolume[] = { 127, // SEQ_SOUND_PLAYER 80, // SEQ_EVENT_CUTSCENE_COLLECT_STAR @@ -301,6 +306,8 @@ u8 sBackgroundMusicDefaultVolume[] = { STATIC_ASSERT(ARRAY_COUNT(sBackgroundMusicDefaultVolume) == SEQ_COUNT, "change this array if you are adding sequences"); +*/ + u8 sCurrentBackgroundMusicSeqId = SEQUENCE_NONE; u8 sMusicDynamicDelay = 0; u8 sSoundBankUsedListBack[SOUND_BANK_COUNT] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; @@ -1885,7 +1892,7 @@ static u8 begin_background_music_fade(u16 fadeDuration) { targetVolume = 40; } - if (sSoundBanksThatLowerBackgroundMusic != 0 && targetVolume > 20) { + if (sSoundBanksThatLowerBackgroundMusic && targetVolume > 20) { targetVolume = 20; } @@ -1894,8 +1901,7 @@ static u8 begin_background_music_fade(u16 fadeDuration) { seq_player_fade_to_target_volume(SEQ_PLAYER_LEVEL, fadeDuration, targetVolume); } else { #if defined(VERSION_JP) || defined(VERSION_US) - gSequencePlayers[SEQ_PLAYER_LEVEL].volume = - sBackgroundMusicDefaultVolume[sCurrentBackgroundMusicSeqId] / 127.0f; + gSequencePlayers[SEQ_PLAYER_LEVEL].volume = gSequencePlayers[SEQ_PLAYER_LEVEL].volumeDefault; #endif seq_player_fade_to_normal_volume(SEQ_PLAYER_LEVEL, fadeDuration); } diff --git a/src/audio/internal.h b/src/audio/internal.h index f8465693..c9077872 100644 --- a/src/audio/internal.h +++ b/src/audio/internal.h @@ -300,7 +300,7 @@ struct SequencePlayer { /* , 0x028, 0x02C*/ f32 fadeVolumeScale; /* , 0x02C*/ f32 appliedFadeVolume; #else - /* */ u8 pad2[4]; + /*0x028, */ f32 volumeDefault; #endif /*0x02C, 0x030, 0x034*/ struct SequenceChannel *channels[CHANNELS_MAX]; /*0x06C, 0x070*/ struct M64ScriptState scriptState; diff --git a/src/audio/seqplayer.c b/src/audio/seqplayer.c index 766d9b37..6628da32 100644 --- a/src/audio/seqplayer.c +++ b/src/audio/seqplayer.c @@ -2493,6 +2493,10 @@ void sequence_player_process_sequence(struct SequencePlayer *seqPlayer) { #else case 0xdb: // seq_setvol cmd = m64_read_u8(state); + seqPlayer->volumeDefault = FLOAT_CAST(cmd) / 127.0f; + if (seqPlayer->volumeDefault >= 1.0f) + seqPlayer->volumeDefault = 1.0f; + switch (seqPlayer->state) { case SEQUENCE_PLAYER_STATE_2: if (seqPlayer->fadeRemainingFrames != 0) { @@ -2513,9 +2517,14 @@ void sequence_player_process_sequence(struct SequencePlayer *seqPlayer) { break; case 0xda: // seq_changevol - temp = m64_read_u8(state); - seqPlayer->fadeVolume = - seqPlayer->fadeVolume + (f32)(s8) temp / 127.0f; + temp = (f32)(s8) m64_read_u8(state) / 127.0f; + seqPlayer->fadeVolume += temp; + + seqPlayer->volumeDefault += temp; + if (seqPlayer->volumeDefault > 1.0f) + seqPlayer->volumeDefault = 1.0f; + else if (seqPlayer->volumeDefault < 0.0f) + seqPlayer->volumeDefault = 0.0f; break; #endif @@ -2707,6 +2716,7 @@ void init_sequence_player(u32 player) { seqPlayer->state = 1; #else seqPlayer->state = SEQUENCE_PLAYER_STATE_0; + seqPlayer->volumeDefault = 1.0f; #endif seqPlayer->fadeRemainingFrames = 0; #if defined(VERSION_EU) || defined(VERSION_SH) From 6bd3988dd8600fdccfacfe6f6744ccd2954b6593 Mon Sep 17 00:00:00 2001 From: gheskett Date: Fri, 25 Feb 2022 05:11:16 -0500 Subject: [PATCH 002/180] Add MAX_SIMULTANEOUS_NOTES defines and better document audio allocations for audio heap (looks kinda awful still) --- include/config/config_audio.h | 11 +++++-- include/config/config_safeguards.h | 33 +++++++++++++++++++ src/audio/data.c | 9 +++--- src/audio/data.h | 51 ++++++++++++++++++++++++------ src/audio/heap.c | 18 ++++++++--- src/audio/internal.h | 4 ++- src/audio/load.c | 17 +++------- src/audio/playback.c | 6 ++-- src/audio/synthesis.h | 17 +++++++++- src/boot/main.c | 10 ++++++ src/game/game_init.c | 9 ------ 11 files changed, 139 insertions(+), 46 deletions(-) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index 1d1f5270..5aa64360 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -4,12 +4,19 @@ * AUDIO SETTINGS * ******************/ -// Fixes the castle music sometimes triggering after getting a dialog +// Fixes the castle music sometimes triggering after getting a dialog. #define CASTLE_MUSIC_FIX -// Increase audio heap size to allow for more concurrent notes to be played and for more custom sequences/banks to be imported (not supported for SH) +// Increase audio heap size to allow for more concurrent notes to be played and for more custom sequences/banks to be imported (not supported for SH). #define EXPAND_AUDIO_HEAP +// The maximum number of notes (sfx inclusive) that can sound at any given time (not supported for SH). +// Lower values may cause notes to get cut more easily but can potentially improve performance slightly. +// Lower values may cause problems with streamed audio if a sequence used for it is missing channel priority data. +// Vanilla by default only generally allocates 16 or 20 notes at once. Memory usage is always determined by the largest of the two values here. +#define MAX_SIMULTANEOUS_NOTES_EMULATOR 40 +#define MAX_SIMULTANEOUS_NOTES_CONSOLE 32 + // Use a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. // Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. //#define BETTER_REVERB diff --git a/include/config/config_safeguards.h b/include/config/config_safeguards.h index 0a5dd97d..23d6b989 100644 --- a/include/config/config_safeguards.h +++ b/include/config/config_safeguards.h @@ -10,6 +10,39 @@ */ +/***************** + * config_audio + */ + +#ifndef MAX_SIMULTANEOUS_NOTES_EMULATOR + #ifdef EXPAND_AUDIO_HEAP + #define MAX_SIMULTANEOUS_NOTES_EMULATOR 40 + #else + #define MAX_SIMULTANEOUS_NOTES_EMULATOR 20 + #endif +#endif // MAX_SIMULTANEOUS_NOTES_EMULATOR + +#ifndef MAX_SIMULTANEOUS_NOTES_CONSOLE + #ifdef EXPAND_AUDIO_HEAP + #define MAX_SIMULTANEOUS_NOTES_EMULATOR 32 + #else + #define MAX_SIMULTANEOUS_NOTES_EMULATOR 16 + #endif +#endif // MAX_SIMULTANEOUS_NOTES_CONSOLE + +#if (MAX_SIMULTANEOUS_NOTES_EMULATOR >= MAX_SIMULTANEOUS_NOTES_CONSOLE) + #define MAX_SIMULTANEOUS_NOTES MAX_SIMULTANEOUS_NOTES_EMULATOR +#else + #define MAX_SIMULTANEOUS_NOTES MAX_SIMULTANEOUS_NOTES_CONSOLE +#endif + +// Anything higher than 64 will most likely crash on boot. Even if it doesn't, it's still dangerous. +#if (MAX_SIMULTANEOUS_NOTES > 64) + #undef MAX_SIMULTANEOUS_NOTES + #define MAX_SIMULTANEOUS_NOTES 64 +#endif + + /***************** * config_graphics */ diff --git a/src/audio/data.c b/src/audio/data.c index 95917497..801c7233 100644 --- a/src/audio/data.c +++ b/src/audio/data.c @@ -38,9 +38,9 @@ struct ReverbSettingsEU sReverbSettings[8] = { struct AudioSessionSettingsEU gAudioSessionPresets[] = { #ifdef EXPAND_AUDIO_HEAP - { /*1*/ 32000,/*2*/ 1,/*3*/ 40,/*4*/ 1,/*5*/ 0, &sReverbSettings[0],/*6*/ 0x7FFF,/*7*/ 0,/*8*/ 0x8200,/*9*/ 0xDC00,/*10*/ 0xE800,/*11*/ 0x5500 }, + { /*1*/ 32000,/*2*/ 1,/*3*/ MAX_SIMULTANEOUS_NOTES,/*4*/ 1,/*5*/ 0, &sReverbSettings[0],/*6*/ 0x7FFF,/*7*/ 0,/*8*/ 0x8200,/*9*/ 0xDC00,/*10*/ 0xE800,/*11*/ 0x5500 }, #else - { /*1*/ 32000,/*2*/ 1,/*3*/ 20,/*4*/ 1,/*5*/ 0, &sReverbSettings[0],/*6*/ 0x7FFF,/*7*/ 0,/*8*/ 0x4100,/*9*/ 0x6E00,/*10*/ 0x7400,/*11*/ 0x2A80 }, + { /*1*/ 32000,/*2*/ 1,/*3*/ MAX_SIMULTANEOUS_NOTES,/*4*/ 1,/*5*/ 0, &sReverbSettings[0],/*6*/ 0x7FFF,/*7*/ 0,/*8*/ 0x4100,/*9*/ 0x6E00,/*10*/ 0x7400,/*11*/ 0x2A80 }, #endif }; #endif @@ -80,14 +80,13 @@ struct ReverbSettingsUS gReverbSettings[18] = { { 1, 0x0800, 0x2FFF }, }; -// TODO: Does using 40/20 instead of 32/16 for gMaxSimultaneousNotes cause memory problems at high capacities or is it good as is? #ifdef EXPAND_AUDIO_HEAP struct AudioSessionSettings gAudioSessionPresets[1] = { - { 32000, 40, 1, 0x1000, 0x2FFF, 0x7FFF, 0x8200, 0xDC00, 0xE800, 0x5500 }, + { 32000, MAX_SIMULTANEOUS_NOTES, 1, 0x1000, 0x2FFF, 0x7FFF, 0x8200, 0xDC00, 0xE800, 0x5500 }, }; #else struct AudioSessionSettings gAudioSessionPresets[1] = { - { 32000, 20, 1, 0x1000, 0x2FFF, 0x7FFF, 0x4100, 0x6E00, 0x7400, 0x2A80 }, + { 32000, MAX_SIMULTANEOUS_NOTES, 1, 0x1000, 0x2FFF, 0x7FFF, 0x4100, 0x6E00, 0x7400, 0x2A80 }, }; #endif #endif diff --git a/src/audio/data.h b/src/audio/data.h index 8e947aa9..ab31a82f 100644 --- a/src/audio/data.h +++ b/src/audio/data.h @@ -13,6 +13,14 @@ #define NUMAIBUFFERS 3 +#if defined(VERSION_EU) +#define DMA_BUF_SIZE_0 0x400 +#define DMA_BUF_SIZE_1 0x200 +#else +#define DMA_BUF_SIZE_0 (144 * 9) +#define DMA_BUF_SIZE_1 (160 * 9) +#endif + // constant .data #if defined(VERSION_EU) || defined(VERSION_SH) extern struct AudioSessionSettingsEU gAudioSessionPresets[]; @@ -108,18 +116,42 @@ extern s16 gAiBufferLengths[NUMAIBUFFERS]; extern u32 gAudioRandom; +#if defined(VERSION_US) || defined(VERSION_JP) +#define NOTES_BUFFER_SIZE \ +( \ + MAX_SIMULTANEOUS_NOTES * ((4 /* updatesPerFrame */ * 20 * 2 * sizeof(u64)) \ + + ALIGN16(sizeof(struct Note)) \ + + (DMA_BUF_SIZE_0 * 3) \ + + (DMA_BUF_SIZE_1) \ + + ALIGN16(sizeof(struct NoteSynthesisBuffers))) \ + + 320 * 2 * sizeof(u64) /* gMaxAudioCmds */ \ +) +#elif defined(VERSION_EU) +#define NOTES_BUFFER_SIZE \ +( \ + MAX_SIMULTANEOUS_NOTES * ((4 /* updatesPerFrame */ * 0x10 * 2 * sizeof(u64)) \ + + ALIGN16(sizeof(struct Note)) \ + + (DMA_BUF_SIZE_0 * 3 * 1 /* presetUnk4 */) \ + + (DMA_BUF_SIZE_1) \ + + ALIGN16(sizeof(struct NoteSynthesisBuffers)) \ + + ALIGN16(4 /* updatesPerFrame */ * sizeof(struct NoteSubEu))) \ + + (0x300 + 4 /* numReverbs */ * 0x20) * 2 * sizeof(u64) /* gMaxAudioCmds */ \ + + 0x4000 /* Extra space to hopefully tolerate whatever the note patch behavior is */ \ +) +#endif + #ifdef EXPAND_AUDIO_HEAP #if defined(VERSION_US) || defined(VERSION_JP) || defined(VERSION_EU) -#define EXT_AUDIO_HEAP_SIZE 0x27400 -#define EXT_AUDIO_INIT_POOL_SIZE 0x02000 +#define EXT_AUDIO_INIT_POOL_SIZE (0x1800 + 0x300) +#define EXT_AUDIO_HEAP_SIZE 0x14D80 #else // SH not yet supported for expanded audio heap -#define EXT_AUDIO_HEAP_SIZE 0x0 #define EXT_AUDIO_INIT_POOL_SIZE 0x0 +#define EXT_AUDIO_HEAP_SIZE 0x0 #endif #else -#define EXT_AUDIO_HEAP_SIZE 0x0 #define EXT_AUDIO_INIT_POOL_SIZE 0x0 +#define EXT_AUDIO_HEAP_SIZE 0x0 #endif #ifdef VERSION_SH @@ -148,14 +180,15 @@ extern OSMesgQueue *D_SH_80350FA8; #endif #if defined(VERSION_EU) || defined(VERSION_SH) -#define AUDIO_HEAP_BASE 0x36B00 -#define AUDIO_INIT_POOL_SIZE (0x2C00 + EXT_AUDIO_INIT_POOL_SIZE) +#define AUDIO_INIT_POOL_SIZE (0x1B00 + EXT_AUDIO_INIT_POOL_SIZE + ALIGN16(MAX_SIMULTANEOUS_NOTES * sizeof(struct Note))) #else -#define AUDIO_HEAP_BASE 0x30750 -#define AUDIO_INIT_POOL_SIZE (0x2500 + EXT_AUDIO_INIT_POOL_SIZE) +#define AUDIO_INIT_POOL_SIZE (0x1600 + EXT_AUDIO_INIT_POOL_SIZE + ALIGN16(MAX_SIMULTANEOUS_NOTES * sizeof(struct Note))) #endif -#define AUDIO_HEAP_SIZE (AUDIO_HEAP_BASE + EXT_AUDIO_HEAP_SIZE + EXT_AUDIO_INIT_POOL_SIZE + BETTER_REVERB_SIZE + REVERB_WINDOW_HEAP_SIZE) +// TODO: needs validation once EU can compile. EU is very likely incorrect! +#define AUDIO_HEAP_BASE (0x14D80 /* sound bank space */ + AUDIO_INIT_POOL_SIZE + EXT_AUDIO_HEAP_SIZE + NOTES_BUFFER_SIZE) + +#define AUDIO_HEAP_SIZE (AUDIO_HEAP_BASE + BETTER_REVERB_SIZE + REVERB_WINDOW_HEAP_SIZE) #ifdef VERSION_SH extern u32 D_SH_80315EF0; diff --git a/src/audio/heap.c b/src/audio/heap.c index b6aba644..3c08d8a7 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -1382,19 +1382,20 @@ void audio_reset_session(void) { #if defined(VERSION_JP) || defined(VERSION_US) for (j = 0; j < 2; j++) { - gAudioCmdBuffers[j] = soundAlloc(&gNotesAndBuffersPool, gMaxAudioCmds * sizeof(u64)); + gAudioCmdBuffers[j] = soundAlloc(&gNotesAndBuffersPool, ALIGN16(gMaxAudioCmds * sizeof(u64))); } #endif - gNotes = soundAlloc(&gNotesAndBuffersPool, gMaxSimultaneousNotes * sizeof(struct Note)); + gNotes = soundAlloc(&gNotesAndBuffersPool, ALIGN16(gMaxSimultaneousNotes * sizeof(struct Note))); note_init_all(); init_note_free_list(); #if defined(VERSION_EU) || defined(VERSION_SH) - gNoteSubsEu = soundAlloc(&gNotesAndBuffersPool, (gAudioBufferParameters.updatesPerFrame * gMaxSimultaneousNotes) * sizeof(struct NoteSubEu)); + // NOTE: Cannot be computed automatically in the audio heap define; approximation to be used instead + gNoteSubsEu = soundAlloc(&gNotesAndBuffersPool, ALIGN16((gAudioBufferParameters.updatesPerFrame * gMaxSimultaneousNotes) * sizeof(struct NoteSubEu))); for (j = 0; j != 2; j++) { - gAudioCmdBuffers[j] = soundAlloc(&gNotesAndBuffersPool, gMaxAudioCmds * sizeof(u64)); + gAudioCmdBuffers[j] = soundAlloc(&gNotesAndBuffersPool, ALIGN16(gMaxAudioCmds * sizeof(u64))); } init_reverb_eu(); @@ -1427,6 +1428,15 @@ void audio_reset_session(void) { append_puppyprint_log("Audio Initialised in %dus.", (s32)OS_CYCLES_TO_USEC(osGetTime() - first)); #endif #endif + + if (gIsConsole) + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_CONSOLE; + else + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_EMULATOR; + + if (gMaxSimultaneousNotes > MAX_SIMULTANEOUS_NOTES) + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES; + sAudioFirstBoot = 1; } diff --git a/src/audio/internal.h b/src/audio/internal.h index c9077872..d01da280 100644 --- a/src/audio/internal.h +++ b/src/audio/internal.h @@ -680,6 +680,7 @@ struct Note { /*0x18, 0x38*/ f32 portamentoFreqScale; /*0x1C, 0x3C*/ f32 vibratoFreqScale; /*0x20*/ u16 samplePosFrac; + /* */ u8 pad2[2]; /*0x24*/ struct AudioBankSound *sound; /*0x28, 0x40*/ struct SequenceChannelLayer *prevParentLayer; /*0x2C, 0x44*/ struct SequenceChannelLayer *parentLayer; @@ -690,6 +691,7 @@ struct Note { /*0x3E*/ u16 targetVolRight; // Q1.15, but will always be non-negative /*0x40*/ u8 reverbVol; // Q1.7 /*0x41*/ u8 unused1; // never read, set to 0x3f + /* */ u8 pad3[2]; /*0x44*/ struct NoteAttributes attributes; /*0x54, 0x58*/ struct AdsrState adsr; /*0x74, 0x7C*/ struct Portamento portamento; @@ -699,7 +701,7 @@ struct Note { /*0xA0*/ s16 reverbVolShifted; // Q1.15 /*0xA2*/ s16 unused2; // never read, set to 0 /*0xA4, 0x00*/ struct AudioListItem listItem; - /* */ u8 pad2[0xc]; + /* */ u8 pad4[0xc]; }; // size = 0xC0 #endif diff --git a/src/audio/load.c b/src/audio/load.c index 268fbf2a..d2003701 100644 --- a/src/audio/load.c +++ b/src/audio/load.c @@ -42,7 +42,7 @@ OSMesgQueue gAudioDmaMesgQueue; OSMesg gAudioDmaMesg; OSIoMesg gAudioDmaIoMesg; -struct SharedDma sSampleDmas[0x60]; +struct SharedDma sSampleDmas[MAX_SIMULTANEOUS_NOTES * 4]; u32 gSampleDmaNumListItems; // sh: 0x803503D4 u32 sSampleDmaListSize1; // sh: 0x803503D8 @@ -335,11 +335,7 @@ void init_sample_dma_buffers(UNUSED s32 arg0) { s32 j; #endif -#if defined(VERSION_EU) - sDmaBufSize = 0x400; -#else - sDmaBufSize = 144 * 9; -#endif + sDmaBufSize = DMA_BUF_SIZE_0; #if defined(VERSION_EU) for (i = 0; i < gMaxSimultaneousNotes * 3 * gAudioBufferParameters.presetUnk4; i++) { @@ -378,11 +374,8 @@ out1: sSampleDmaReuseQueueHead1 = (u8) gSampleDmaNumListItems; sSampleDmaListSize1 = gSampleDmaNumListItems; -#if defined(VERSION_EU) - sDmaBufSize = 0x200; -#else - sDmaBufSize = 160 * 9; -#endif + sDmaBufSize = DMA_BUF_SIZE_1; + for (i = 0; i < gMaxSimultaneousNotes; i++) { sSampleDmas[gSampleDmaNumListItems].buffer = soundAlloc(&gNotesAndBuffersPool, sDmaBufSize); if (sSampleDmas[gSampleDmaNumListItems].buffer == NULL) { @@ -442,7 +435,7 @@ void patch_sound(UNUSED struct AudioBankSound *sound, UNUSED u8 *memBase, UNUSED #if defined(VERSION_EU) else if (sample->loaded == 0x80) { PATCH(sample->sampleAddr, offsetBase); - u8 *mem = soundAlloc(&gNotesAndBuffersPool, sample->sampleSize); // TODO: Memory leak! + u8 *mem = soundAlloc(&gNotesAndBuffersPool, sample->sampleSize); // TODO: Memory issue most likely! if (mem == NULL) { sample->sampleAddr = patched; sample->loaded = 1; diff --git a/src/audio/playback.c b/src/audio/playback.c index 0c0b1fff..9a29f8c4 100644 --- a/src/audio/playback.c +++ b/src/audio/playback.c @@ -1443,9 +1443,9 @@ void note_init_all(void) { #if defined(VERSION_SH) note->synthesisState.synthesisBuffers = sound_alloc_uninitialized(&gNotesAndBuffersPool, sizeof(struct NoteSynthesisBuffers)); #elif defined(VERSION_EU) - note->synthesisState.synthesisBuffers = soundAlloc(&gNotesAndBuffersPool, sizeof(struct NoteSynthesisBuffers)); + note->synthesisState.synthesisBuffers = soundAlloc(&gNotesAndBuffersPool, ALIGN16(sizeof(struct NoteSynthesisBuffers))); #else - note->synthesisBuffers = soundAlloc(&gNotesAndBuffersPool, sizeof(struct NoteSynthesisBuffers)); + note->synthesisBuffers = soundAlloc(&gNotesAndBuffersPool, ALIGN16(sizeof(struct NoteSynthesisBuffers))); #endif } -} +} \ No newline at end of file diff --git a/src/audio/synthesis.h b/src/audio/synthesis.h index eb0242d3..b29cc399 100644 --- a/src/audio/synthesis.h +++ b/src/audio/synthesis.h @@ -63,7 +63,22 @@ extern u8 toggleBetterReverb; #endif -#define REVERB_WINDOW_HEAP_SIZE (REVERB_WINDOW_SIZE_MAX * sizeof(s16) * 2) +#if defined(VERSION_JP) || defined(VERSION_US) +#define REVERB_WINDOW_HEAP_SIZE \ +( \ + (REVERB_WINDOW_SIZE_MAX * sizeof(s16) * 2) \ + + (4 * (16 * sizeof(s16))) \ + + (4 /* gAudioUpdatesPerFrame */ * (2 * DEFAULT_LEN_2CH)) \ +) +#else +#define REVERB_WINDOW_HEAP_SIZE \ +( \ + ((REVERB_WINDOW_SIZE_MAX * sizeof(s16) * 2) \ + + (4 * (16 * sizeof(s16))) \ + + (4 /* gAudioUpdatesPerFrame */ * (2 * DEFAULT_LEN_2CH))) \ + * 4 /* gNumSynthesisReverbs */ \ +) +#endif struct ReverbRingBufferItem { s16 numSamplesAfterDownsampling; diff --git a/src/boot/main.c b/src/boot/main.c index 7761f07a..75a9dc54 100644 --- a/src/boot/main.c +++ b/src/boot/main.c @@ -13,6 +13,7 @@ #include "game/main.h" #include "game/rumble_init.h" #include "game/version.h" +#include "game/vc_check.h" #ifdef UNF #include "usb/usb.h" #include "usb/debug.h" @@ -317,6 +318,15 @@ void thread3_main(UNUSED void *arg) { osSyncPrintf("Linker : %s\n", __linker__); #endif + if (IO_READ(DPC_CLOCK_REG) == 0) { + gIsConsole = FALSE; + gBorderHeight = BORDER_HEIGHT_EMULATOR; + gIsVC = IS_VC(); + } else { + gIsConsole = TRUE; + gBorderHeight = BORDER_HEIGHT_CONSOLE; + } + create_thread(&gSoundThread, THREAD_4_SOUND, thread4_sound, NULL, gThread4Stack + 0x2000, 20); osStartThread(&gSoundThread); diff --git a/src/game/game_init.c b/src/game/game_init.c index 545e9e66..4a8934c6 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -391,15 +391,6 @@ void render_init(void) { #ifdef DEBUG_FORCE_CRASH_ON_BOOT FORCE_CRASH #endif - if (IO_READ(DPC_PIPEBUSY_REG) == 0) { - gIsConsole = FALSE; - gBorderHeight = BORDER_HEIGHT_EMULATOR; - gIsVC = IS_VC(); - } else { - gIsConsole = TRUE; - gBorderHeight = BORDER_HEIGHT_CONSOLE; - } - gGfxPool = &gGfxPools[0]; set_segment_base_addr(SEGMENT_RENDER, gGfxPool->buffer); gGfxSPTask = &gGfxPool->spTask; From 056e3191050b12563d9b67d670c4722ecbcd178e Mon Sep 17 00:00:00 2001 From: gheskett Date: Sat, 26 Feb 2022 01:56:07 -0500 Subject: [PATCH 003/180] Some formatting changes :( (But also some safeguards and updated documentation) --- include/config/config_audio.h | 24 ++++++++++++++++-------- include/config/config_safeguards.h | 7 +++++++ src/audio/data.c | 4 ++-- src/audio/data.h | 9 ++++----- src/audio/heap.c | 13 ++++++------- src/audio/synthesis.c | 4 ++-- src/audio/synthesis.h | 2 +- src/game/puppyprint.c | 2 +- src/game/puppyprint.h | 2 +- 9 files changed, 40 insertions(+), 27 deletions(-) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index 5aa64360..5111911b 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -4,19 +4,27 @@ * AUDIO SETTINGS * ******************/ -// Fixes the castle music sometimes triggering after getting a dialog. +/** + * Fixes the castle music sometimes triggering after getting a dialog. + */ #define CASTLE_MUSIC_FIX -// Increase audio heap size to allow for more concurrent notes to be played and for more custom sequences/banks to be imported (not supported for SH). +/** + * Increase audio heap size to allow for more concurrent notes to be played and for more custom sequences/banks to be imported (not supported for SH). + */ #define EXPAND_AUDIO_HEAP -// The maximum number of notes (sfx inclusive) that can sound at any given time (not supported for SH). -// Lower values may cause notes to get cut more easily but can potentially improve performance slightly. -// Lower values may cause problems with streamed audio if a sequence used for it is missing channel priority data. -// Vanilla by default only generally allocates 16 or 20 notes at once. Memory usage is always determined by the largest of the two values here. +/** + * The maximum number of notes (sfx inclusive) that can sound at any given time (not supported for SH). + * Lower values may cause notes to get cut more easily but can potentially improve performance slightly. + * Lower values may cause problems with streamed audio if a sequence used for it is missing channel priority data. + * Vanilla by default only generally allocates 16 or 20 notes at once. Memory usage is always determined by the largest of the two values here (~7200 bytes per US/JP note). + */ #define MAX_SIMULTANEOUS_NOTES_EMULATOR 40 #define MAX_SIMULTANEOUS_NOTES_CONSOLE 32 -// Use a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. -// Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. +/** + * Use a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. + * Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. + */ //#define BETTER_REVERB diff --git a/include/config/config_safeguards.h b/include/config/config_safeguards.h index 23d6b989..6971fe96 100644 --- a/include/config/config_safeguards.h +++ b/include/config/config_safeguards.h @@ -40,6 +40,13 @@ #if (MAX_SIMULTANEOUS_NOTES > 64) #undef MAX_SIMULTANEOUS_NOTES #define MAX_SIMULTANEOUS_NOTES 64 +#elif (MAX_SIMULTANEOUS_NOTES < 0) + #undef MAX_SIMULTANEOUS_NOTES + #define MAX_SIMULTANEOUS_NOTES 0 +#endif + +#if defined(BETTER_REVERB) && !(defined(VERSION_US) || defined(VERSION_JP)) + #undef BETTER_REVERB #endif diff --git a/src/audio/data.c b/src/audio/data.c index 801c7233..d536a227 100644 --- a/src/audio/data.c +++ b/src/audio/data.c @@ -10,7 +10,7 @@ extern struct OSMesgQueue OSMesgQueue3; // Since the audio session is just one now, the reverb settings are duplicated to match the original audio setting scenario. // It's a bit hacky but whatever lol. Index range must be defined, since it's needed by the compiler. -// To increase reverb window sizes beyond 64, please increase the REVERB_WINDOW_SIZE_MAX in heap.c by a factor of 0x40 and update AUDIO_HEAP_SIZE by 4x the same amount. +// To increase reverb window sizes beyond 64, please increase the REVERB_WINDOW_SIZE_MAX in heap.c by a factor of 0x40. #ifdef VERSION_EU struct ReverbSettingsEU sReverbSettings[8] = { { /*Downsample Rate*/ 1, /*Window Size*/ 64, /*Gain*/ 0x2FFF }, @@ -57,7 +57,7 @@ struct AudioSessionSettingsEU gAudioSessionPresets[] = { // - memory used for temporary sequences // - memory used for temporary banks -// To increase reverb window sizes beyond 0x1000, please increase the REVERB_WINDOW_SIZE_MAX in heap.c and update AUDIO_HEAP_SIZE by the same amount. +// To increase reverb window sizes beyond 0x1000, please increase the REVERB_WINDOW_SIZE_MAX in heap.c. #if defined(VERSION_JP) || defined(VERSION_US) struct ReverbSettingsUS gReverbSettings[18] = { { 1, 0x0C00, 0x2FFF }, diff --git a/src/audio/data.h b/src/audio/data.h index ab31a82f..826ae059 100644 --- a/src/audio/data.h +++ b/src/audio/data.h @@ -122,11 +122,11 @@ extern u32 gAudioRandom; MAX_SIMULTANEOUS_NOTES * ((4 /* updatesPerFrame */ * 20 * 2 * sizeof(u64)) \ + ALIGN16(sizeof(struct Note)) \ + (DMA_BUF_SIZE_0 * 3) \ - + (DMA_BUF_SIZE_1) \ + + DMA_BUF_SIZE_1 \ + ALIGN16(sizeof(struct NoteSynthesisBuffers))) \ - + 320 * 2 * sizeof(u64) /* gMaxAudioCmds */ \ + + (320 * 2 * sizeof(u64)) /* gMaxAudioCmds */ \ ) -#elif defined(VERSION_EU) +#else // Probably SH incompatible but that's an entirely different headache to save at this point tbh #define NOTES_BUFFER_SIZE \ ( \ MAX_SIMULTANEOUS_NOTES * ((4 /* updatesPerFrame */ * 0x10 * 2 * sizeof(u64)) \ @@ -135,8 +135,7 @@ extern u32 gAudioRandom; + (DMA_BUF_SIZE_1) \ + ALIGN16(sizeof(struct NoteSynthesisBuffers)) \ + ALIGN16(4 /* updatesPerFrame */ * sizeof(struct NoteSubEu))) \ - + (0x300 + 4 /* numReverbs */ * 0x20) * 2 * sizeof(u64) /* gMaxAudioCmds */ \ - + 0x4000 /* Extra space to hopefully tolerate whatever the note patch behavior is */ \ + + ((0x300 + (4 /* numReverbs */ * 0x20)) * 2 * sizeof(u64)) /* gMaxAudioCmds */ \ ) #endif diff --git a/src/audio/heap.c b/src/audio/heap.c index 3c08d8a7..b94d65ed 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -32,7 +32,7 @@ struct SoundAllocPool gAudioSessionPool; struct SoundAllocPool gAudioInitPool; struct SoundAllocPool gNotesAndBuffersPool; u8 sAudioHeapPad[0x20]; // probably two unused pools -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB struct SoundAllocPool gBetterReverbPool; #endif struct SoundAllocPool gSeqAndBankPool; @@ -310,7 +310,7 @@ void puppyprint_get_allocated_pools(s32 *audioPoolList) { &gSeqLoadedPool.temporary.pool, &gBankLoadedPool.persistent.pool, &gBankLoadedPool.temporary.pool, -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB &gBetterReverbPool, #endif }; @@ -332,7 +332,7 @@ void session_pools_init(struct PoolSplit *a) { gAudioSessionPool.cur = gAudioSessionPool.start; sound_alloc_pool_init(&gNotesAndBuffersPool, SOUND_ALLOC_FUNC(&gAudioSessionPool, a->wantSeq ), a->wantSeq ); sound_alloc_pool_init(&gSeqAndBankPool, SOUND_ALLOC_FUNC(&gAudioSessionPool, a->wantCustom ), a->wantCustom ); -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB sound_alloc_pool_init(&gBetterReverbPool, SOUND_ALLOC_FUNC(&gAudioSessionPool, BETTER_REVERB_SIZE), BETTER_REVERB_SIZE); #endif } @@ -1344,12 +1344,9 @@ void audio_reset_session(void) { #if defined(VERSION_SH) persistentMem = DOUBLE_SIZE_ON_64_BIT(preset->persistentSeqMem + preset->persistentBankMem + preset->unk18 + preset->unkMem28 + 0x10); temporaryMem = DOUBLE_SIZE_ON_64_BIT(preset->temporarySeqMem + preset->temporaryBankMem + preset->unk24 + preset->unkMem2C + 0x10); -#elif defined(VERSION_EU) +#else persistentMem = DOUBLE_SIZE_ON_64_BIT(preset->persistentSeqMem + preset->persistentBankMem); temporaryMem = DOUBLE_SIZE_ON_64_BIT(preset->temporarySeqMem + preset->temporaryBankMem); -#else - persistentMem = DOUBLE_SIZE_ON_64_BIT(preset->persistentBankMem + preset->persistentSeqMem); - temporaryMem = DOUBLE_SIZE_ON_64_BIT(preset->temporaryBankMem + preset->temporarySeqMem); #endif totalMem = persistentMem + temporaryMem; wantMisc = gAudioSessionPool.size - totalMem - BETTER_REVERB_SIZE; @@ -1436,6 +1433,8 @@ void audio_reset_session(void) { if (gMaxSimultaneousNotes > MAX_SIMULTANEOUS_NOTES) gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES; + else if (gMaxSimultaneousNotes < 0) + gMaxSimultaneousNotes = 0; sAudioFirstBoot = 1; } diff --git a/src/audio/synthesis.c b/src/audio/synthesis.c index 551c75d5..0f5f5315 100644 --- a/src/audio/synthesis.c +++ b/src/audio/synthesis.c @@ -39,7 +39,7 @@ #define AUDIO_ALIGN(val, amnt) (((val) + (1 << amnt) - 1) & ~((1 << amnt) - 1)) -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB /* ----------------------------------------------------------------------BEGIN REVERB PARAMETERS---------------------------------------------------------------------- */ @@ -206,7 +206,7 @@ struct SynthesisReverb gSynthesisReverb; u8 sAudioSynthesisPad[0x20]; #endif -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB static inline void reverb_samples(s16 *outSampleL, s16 *outSampleR, s32 inSampleL, s32 inSampleR) { s32 i = 0; s32 j = 0; diff --git a/src/audio/synthesis.h b/src/audio/synthesis.h index b29cc399..1adaa6d9 100644 --- a/src/audio/synthesis.h +++ b/src/audio/synthesis.h @@ -19,7 +19,7 @@ #define ALIGN16(val) (((val) + 0xF) & ~0xF) -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB #define NUM_ALLPASS 12 // Number of delay filters to use with better reverb; do not change this value if you don't know what you're doing. #define BETTER_REVERB_PTR_SIZE ALIGN16(NUM_ALLPASS * sizeof(s32*) * 2) // Allocation space consumed by dynamically allocated pointers diff --git a/src/game/puppyprint.c b/src/game/puppyprint.c index 9987026b..2b1a64cc 100644 --- a/src/game/puppyprint.c +++ b/src/game/puppyprint.c @@ -316,7 +316,7 @@ const char *audioPoolNames[NUM_AUDIO_POOLS] = { "gSeqLoadedPool.temporary.pool", "gBankLoadedPool.persistent.pool", "gBankLoadedPool.temporary.pool", -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB "gBetterReverbPool", #endif }; diff --git a/src/game/puppyprint.h b/src/game/puppyprint.h index 7608adc9..621a3fc1 100644 --- a/src/game/puppyprint.h +++ b/src/game/puppyprint.h @@ -33,7 +33,7 @@ enum PuppyprintTextAlign { }; #if PUPPYPRINT_DEBUG -#if defined(BETTER_REVERB) && (defined(VERSION_US) || defined(VERSION_JP)) +#ifdef BETTER_REVERB #define NUM_AUDIO_POOLS 7 #else #define NUM_AUDIO_POOLS 6 From 8f2b9c89796b9a96eb2ed67f7b9c847a6f6dfbff Mon Sep 17 00:00:00 2001 From: gheskett Date: Sat, 26 Feb 2022 02:52:40 -0500 Subject: [PATCH 004/180] Pointless memory allocation --- include/config/config_audio.h | 6 +++--- src/audio/data.h | 6 +++--- src/audio/heap.c | 2 +- src/game/puppyprint.c | 14 +++++++------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index 5111911b..332e09b3 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -10,7 +10,7 @@ #define CASTLE_MUSIC_FIX /** - * Increase audio heap size to allow for more concurrent notes to be played and for more custom sequences/banks to be imported (not supported for SH). + * Increase audio heap size to allow for larger/more custom sequences/banks/sfx to be imported without causing issues (not supported for SH). */ #define EXPAND_AUDIO_HEAP @@ -21,10 +21,10 @@ * Vanilla by default only generally allocates 16 or 20 notes at once. Memory usage is always determined by the largest of the two values here (~7200 bytes per US/JP note). */ #define MAX_SIMULTANEOUS_NOTES_EMULATOR 40 -#define MAX_SIMULTANEOUS_NOTES_CONSOLE 32 +#define MAX_SIMULTANEOUS_NOTES_CONSOLE 24 /** * Use a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. * Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. */ -//#define BETTER_REVERB +// #define BETTER_REVERB diff --git a/src/audio/data.h b/src/audio/data.h index 826ae059..d0395357 100644 --- a/src/audio/data.h +++ b/src/audio/data.h @@ -141,7 +141,7 @@ extern u32 gAudioRandom; #ifdef EXPAND_AUDIO_HEAP #if defined(VERSION_US) || defined(VERSION_JP) || defined(VERSION_EU) -#define EXT_AUDIO_INIT_POOL_SIZE (0x1800 + 0x300) +#define EXT_AUDIO_INIT_POOL_SIZE (0x2000 + 0x300) #define EXT_AUDIO_HEAP_SIZE 0x14D80 #else // SH not yet supported for expanded audio heap @@ -179,9 +179,9 @@ extern OSMesgQueue *D_SH_80350FA8; #endif #if defined(VERSION_EU) || defined(VERSION_SH) -#define AUDIO_INIT_POOL_SIZE (0x1B00 + EXT_AUDIO_INIT_POOL_SIZE + ALIGN16(MAX_SIMULTANEOUS_NOTES * sizeof(struct Note))) +#define AUDIO_INIT_POOL_SIZE (0x2C00 + EXT_AUDIO_INIT_POOL_SIZE) #else -#define AUDIO_INIT_POOL_SIZE (0x1600 + EXT_AUDIO_INIT_POOL_SIZE + ALIGN16(MAX_SIMULTANEOUS_NOTES * sizeof(struct Note))) +#define AUDIO_INIT_POOL_SIZE (0x2500 + EXT_AUDIO_INIT_POOL_SIZE) #endif // TODO: needs validation once EU can compile. EU is very likely incorrect! diff --git a/src/audio/heap.c b/src/audio/heap.c index b94d65ed..3660ce5d 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -307,8 +307,8 @@ void puppyprint_get_allocated_pools(s32 *audioPoolList) { &gAudioInitPool, &gNotesAndBuffersPool, &gSeqLoadedPool.persistent.pool, - &gSeqLoadedPool.temporary.pool, &gBankLoadedPool.persistent.pool, + &gSeqLoadedPool.temporary.pool, &gBankLoadedPool.temporary.pool, #ifdef BETTER_REVERB &gBetterReverbPool, diff --git a/src/game/puppyprint.c b/src/game/puppyprint.c index 2b1a64cc..a30f9123 100644 --- a/src/game/puppyprint.c +++ b/src/game/puppyprint.c @@ -310,14 +310,14 @@ void print_ram_overview(void) { } const char *audioPoolNames[NUM_AUDIO_POOLS] = { - "gAudioInitPool", - "gNotesAndBuffersPool", - "gSeqLoadedPool.persistent.pool", - "gSeqLoadedPool.temporary.pool", - "gBankLoadedPool.persistent.pool", - "gBankLoadedPool.temporary.pool", + "Audio Init Pool", + "Notes And Buffers Pool", + "Persistent Sequence Pool", + "Persistent Bank Pool", + "Temporary Sequence Pool", + "Temporary Bank Pool", #ifdef BETTER_REVERB - "gBetterReverbPool", + "Better Reverb Pool", #endif }; From f061076a4f15e3ac6df81d8e5d69a5f97a90f170 Mon Sep 17 00:00:00 2001 From: gheskett Date: Sat, 26 Feb 2022 03:01:08 -0500 Subject: [PATCH 005/180] Audio safeguard error --- include/config/config_safeguards.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/config/config_safeguards.h b/include/config/config_safeguards.h index 6971fe96..559dbc92 100644 --- a/include/config/config_safeguards.h +++ b/include/config/config_safeguards.h @@ -24,9 +24,9 @@ #ifndef MAX_SIMULTANEOUS_NOTES_CONSOLE #ifdef EXPAND_AUDIO_HEAP - #define MAX_SIMULTANEOUS_NOTES_EMULATOR 32 + #define MAX_SIMULTANEOUS_NOTES_CONSOLE 24 #else - #define MAX_SIMULTANEOUS_NOTES_EMULATOR 16 + #define MAX_SIMULTANEOUS_NOTES_CONSOLE 16 #endif #endif // MAX_SIMULTANEOUS_NOTES_CONSOLE From c4a23d0036eed0734da47bfc3ba03a884399e69b Mon Sep 17 00:00:00 2001 From: gheskett Date: Sun, 27 Feb 2022 00:20:52 -0500 Subject: [PATCH 006/180] Bugfix: the smaller MAX_SIMULTANEOUS_NOTES define, when used, can lead to silence on audio init --- src/audio/heap.c | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/audio/heap.c b/src/audio/heap.c index 3660ce5d..c6836c17 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -1313,6 +1313,16 @@ void audio_reset_session(void) { gAudioBufferParameters.minAiBufferLength *= gAudioBufferParameters.presetUnk4; gAudioBufferParameters.updatesPerFrame *= gAudioBufferParameters.presetUnk4; + if (gIsConsole) + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_CONSOLE; + else + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_EMULATOR; + + if (gMaxSimultaneousNotes > MAX_SIMULTANEOUS_NOTES) + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES; + else if (gMaxSimultaneousNotes < 0) + gMaxSimultaneousNotes = 0; + #ifdef VERSION_SH if (gAudioBufferParameters.presetUnk4 >= 2) { gAudioBufferParameters.maxAiBufferLength -= 0x10; @@ -1330,6 +1340,16 @@ void audio_reset_session(void) { gMinAiBufferLength = gSamplesPerFrameTarget - 0x10; gAudioUpdatesPerFrame = updatesPerFrame = gSamplesPerFrameTarget / 160 + 1; + if (gIsConsole) + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_CONSOLE; + else + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_EMULATOR; + + if (gMaxSimultaneousNotes > MAX_SIMULTANEOUS_NOTES) + gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES; + else if (gMaxSimultaneousNotes < 0) + gMaxSimultaneousNotes = 0; + // Compute conversion ratio from the internal unit tatums/tick to the // external beats/minute (JP) or tatums/minute (US). In practice this is // 300 on JP and 14360 on US. @@ -1426,16 +1446,6 @@ void audio_reset_session(void) { #endif #endif - if (gIsConsole) - gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_CONSOLE; - else - gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES_EMULATOR; - - if (gMaxSimultaneousNotes > MAX_SIMULTANEOUS_NOTES) - gMaxSimultaneousNotes = MAX_SIMULTANEOUS_NOTES; - else if (gMaxSimultaneousNotes < 0) - gMaxSimultaneousNotes = 0; - sAudioFirstBoot = 1; } From 448d18de2b179ac20b1aae72e115562c79f92705 Mon Sep 17 00:00:00 2001 From: gheskett Date: Tue, 8 Mar 2022 00:49:13 -0500 Subject: [PATCH 007/180] Bugfixes, sound bank heap defines, BETTER_REVERB improvements --- src/audio/data.c | 14 ++----------- src/audio/data.h | 40 +++++++++++++++++++------------------ src/audio/load.c | 9 ++------- src/audio/playback.c | 2 +- src/audio/seqplayer.c | 6 +++--- src/audio/synthesis.c | 46 +++++++++++++++---------------------------- src/audio/synthesis.h | 6 ++++-- 7 files changed, 49 insertions(+), 74 deletions(-) diff --git a/src/audio/data.c b/src/audio/data.c index d536a227..bfe942ce 100644 --- a/src/audio/data.c +++ b/src/audio/data.c @@ -37,11 +37,7 @@ struct ReverbSettingsEU sReverbSettings[8] = { */ struct AudioSessionSettingsEU gAudioSessionPresets[] = { -#ifdef EXPAND_AUDIO_HEAP - { /*1*/ 32000,/*2*/ 1,/*3*/ MAX_SIMULTANEOUS_NOTES,/*4*/ 1,/*5*/ 0, &sReverbSettings[0],/*6*/ 0x7FFF,/*7*/ 0,/*8*/ 0x8200,/*9*/ 0xDC00,/*10*/ 0xE800,/*11*/ 0x5500 }, -#else - { /*1*/ 32000,/*2*/ 1,/*3*/ MAX_SIMULTANEOUS_NOTES,/*4*/ 1,/*5*/ 0, &sReverbSettings[0],/*6*/ 0x7FFF,/*7*/ 0,/*8*/ 0x4100,/*9*/ 0x6E00,/*10*/ 0x7400,/*11*/ 0x2A80 }, -#endif + { /*1*/ 32000,/*2*/ 1,/*3*/ MAX_SIMULTANEOUS_NOTES,/*4*/ 1,/*5*/ 0, &sReverbSettings[0],/*6*/ 0x7FFF,/*7*/ 0,/*8*/ PERSISTENT_SEQ_MEM,/*9*/ PERSISTENT_BANK_MEM,/*10*/ TEMPORARY_SEQ_MEM,/*11*/ TEMPORARY_BANK_MEM }, }; #endif @@ -80,15 +76,9 @@ struct ReverbSettingsUS gReverbSettings[18] = { { 1, 0x0800, 0x2FFF }, }; -#ifdef EXPAND_AUDIO_HEAP struct AudioSessionSettings gAudioSessionPresets[1] = { - { 32000, MAX_SIMULTANEOUS_NOTES, 1, 0x1000, 0x2FFF, 0x7FFF, 0x8200, 0xDC00, 0xE800, 0x5500 }, + { 32000, MAX_SIMULTANEOUS_NOTES, 1, 0x1000, 0x2FFF, 0x7FFF, PERSISTENT_SEQ_MEM, PERSISTENT_BANK_MEM, TEMPORARY_SEQ_MEM, TEMPORARY_BANK_MEM }, }; -#else -struct AudioSessionSettings gAudioSessionPresets[1] = { - { 32000, MAX_SIMULTANEOUS_NOTES, 1, 0x1000, 0x2FFF, 0x7FFF, 0x4100, 0x6E00, 0x7400, 0x2A80 }, -}; -#endif #endif // gAudioCosineTable[k] = round((2**15 - 1) * cos(pi/2 * k / 127)). Unused. #if defined(VERSION_JP) || defined(VERSION_US) diff --git a/src/audio/data.h b/src/audio/data.h index d0395357..b6b42777 100644 --- a/src/audio/data.h +++ b/src/audio/data.h @@ -21,6 +21,24 @@ #define DMA_BUF_SIZE_1 (160 * 9) #endif +#ifdef EXPAND_AUDIO_HEAP +#define PERSISTENT_SEQ_MEM 0x8200 +#define PERSISTENT_BANK_MEM 0xDC00 +#define TEMPORARY_SEQ_MEM 0xE800 +#define TEMPORARY_BANK_MEM 0x5500 +#define BANK_SETS_ALLOC 0x400 +#define EXT_AUDIO_INIT_POOL_SIZE 0x2000 +#else +#define PERSISTENT_SEQ_MEM 0x4100 +#define PERSISTENT_BANK_MEM 0x6E00 +#define TEMPORARY_SEQ_MEM 0x7400 +#define TEMPORARY_BANK_MEM 0x2A80 +#define BANK_SETS_ALLOC 0x100 +#define EXT_AUDIO_INIT_POOL_SIZE 0x0 +#endif + +#define SEQ_BANK_MEM (PERSISTENT_SEQ_MEM + PERSISTENT_BANK_MEM + TEMPORARY_SEQ_MEM + TEMPORARY_BANK_MEM) + // constant .data #if defined(VERSION_EU) || defined(VERSION_SH) extern struct AudioSessionSettingsEU gAudioSessionPresets[]; @@ -139,20 +157,6 @@ extern u32 gAudioRandom; ) #endif -#ifdef EXPAND_AUDIO_HEAP -#if defined(VERSION_US) || defined(VERSION_JP) || defined(VERSION_EU) -#define EXT_AUDIO_INIT_POOL_SIZE (0x2000 + 0x300) -#define EXT_AUDIO_HEAP_SIZE 0x14D80 -#else -// SH not yet supported for expanded audio heap -#define EXT_AUDIO_INIT_POOL_SIZE 0x0 -#define EXT_AUDIO_HEAP_SIZE 0x0 -#endif -#else -#define EXT_AUDIO_INIT_POOL_SIZE 0x0 -#define EXT_AUDIO_HEAP_SIZE 0x0 -#endif - #ifdef VERSION_SH extern f32 unk_sh_data_1[]; @@ -179,15 +183,13 @@ extern OSMesgQueue *D_SH_80350FA8; #endif #if defined(VERSION_EU) || defined(VERSION_SH) -#define AUDIO_INIT_POOL_SIZE (0x2C00 + EXT_AUDIO_INIT_POOL_SIZE) +#define AUDIO_INIT_POOL_SIZE (0x2C00 + BANK_SETS_ALLOC + EXT_AUDIO_INIT_POOL_SIZE) #else -#define AUDIO_INIT_POOL_SIZE (0x2500 + EXT_AUDIO_INIT_POOL_SIZE) +#define AUDIO_INIT_POOL_SIZE (0x2500 + BANK_SETS_ALLOC + EXT_AUDIO_INIT_POOL_SIZE) #endif // TODO: needs validation once EU can compile. EU is very likely incorrect! -#define AUDIO_HEAP_BASE (0x14D80 /* sound bank space */ + AUDIO_INIT_POOL_SIZE + EXT_AUDIO_HEAP_SIZE + NOTES_BUFFER_SIZE) - -#define AUDIO_HEAP_SIZE (AUDIO_HEAP_BASE + BETTER_REVERB_SIZE + REVERB_WINDOW_HEAP_SIZE) +#define AUDIO_HEAP_SIZE (SEQ_BANK_MEM + AUDIO_INIT_POOL_SIZE + NOTES_BUFFER_SIZE + BETTER_REVERB_SIZE + REVERB_WINDOW_HEAP_SIZE) #ifdef VERSION_SH extern u32 D_SH_80315EF0; diff --git a/src/audio/load.c b/src/audio/load.c index d2003701..79ee38f1 100644 --- a/src/audio/load.c +++ b/src/audio/load.c @@ -983,13 +983,8 @@ void audio_init() { alSeqFileNew(gAlTbl, gSoundDataRaw); // Load bank sets for each sequence -#ifdef EXPAND_AUDIO_HEAP - gAlBankSets = soundAlloc(&gAudioInitPool, 0x400); - audio_dma_copy_immediate((uintptr_t) gBankSetsData, gAlBankSets, 0x400); -#else - gAlBankSets = soundAlloc(&gAudioInitPool, 0x100); - audio_dma_copy_immediate((uintptr_t) gBankSetsData, gAlBankSets, 0x100); -#endif + gAlBankSets = soundAlloc(&gAudioInitPool, BANK_SETS_ALLOC); + audio_dma_copy_immediate((uintptr_t) gBankSetsData, gAlBankSets, BANK_SETS_ALLOC); init_sequence_players(); gAudioLoadLock = AUDIO_LOCK_NOT_LOADING; diff --git a/src/audio/playback.c b/src/audio/playback.c index 9a29f8c4..efa8aa08 100644 --- a/src/audio/playback.c +++ b/src/audio/playback.c @@ -1448,4 +1448,4 @@ void note_init_all(void) { note->synthesisBuffers = soundAlloc(&gNotesAndBuffersPool, ALIGN16(sizeof(struct NoteSynthesisBuffers))); #endif } -} \ No newline at end of file +} diff --git a/src/audio/seqplayer.c b/src/audio/seqplayer.c index 6628da32..8b5b917b 100644 --- a/src/audio/seqplayer.c +++ b/src/audio/seqplayer.c @@ -2517,10 +2517,10 @@ void sequence_player_process_sequence(struct SequencePlayer *seqPlayer) { break; case 0xda: // seq_changevol - temp = (f32)(s8) m64_read_u8(state) / 127.0f; - seqPlayer->fadeVolume += temp; + temp = m64_read_u8(state); + seqPlayer->fadeVolume += (f32)(s8) temp / 127.0f; - seqPlayer->volumeDefault += temp; + seqPlayer->volumeDefault += (f32)(s8) temp / 127.0f; if (seqPlayer->volumeDefault > 1.0f) seqPlayer->volumeDefault = 1.0f; else if (seqPlayer->volumeDefault < 0.0f) diff --git a/src/audio/synthesis.c b/src/audio/synthesis.c index 0f5f5315..7800ca81 100644 --- a/src/audio/synthesis.c +++ b/src/audio/synthesis.c @@ -61,6 +61,7 @@ * * This is also known to cause severe lag on emulators that have counter factor set to 2 or greater. * Be sure either you alert the user in advance, or check for and set betterReverbDownsampleEmulator to -1 if it's detected the user isn't using good settings. + * Reducing performance heavy parameters or using RCVI hack may be another working solution to this problem. */ @@ -80,28 +81,28 @@ s8 betterReverbDownsampleEmulator = 2; // This value represents the number of filters to use with the reverb. This can be decreased to improve performance, but at the cost of a lesser presence of reverb in the final audio. // Filter count should always be a multiple of 3. Never ever set this value to be greater than NUM_ALLPASS. // Setting it to anything less than 3 will disable reverb outright. -// This can be changed at any time, but is best set when calling audio_reset_session. +// This can be changed at any time, but is best set immediately before calling audio_reset_session. u32 reverbFilterCountConsole = (NUM_ALLPASS - 6); // This value represents the number of filters to use with the reverb. This can be decreased to improve performance, but at the cost of a lesser presence of reverb in the final audio. // Filter count should always be a multiple of 3. Never ever set this value to be greater than NUM_ALLPASS. // Setting it to anything less than 3 will disable reverb outright. -// This can be changed at any time, but is best set when calling audio_reset_session. +// This can be changed at any time, but is best set immediately before calling audio_reset_session. u32 reverbFilterCountEmulator = NUM_ALLPASS; // Set this to TRUE to use mono over stereo for reverb. This should increase performance, but at the cost of a less fullfilling reverb experience. // If performance is desirable, it is recommended to change reverbFilterCountConsole or betterReverbDownsampleConsole first. -// This can be changed at any time, but is best set when calling audio_reset_session. +// This can be changed at any time, but is best set immediately before calling audio_reset_session. u8 monoReverbConsole = FALSE; // Set this to TRUE to use mono over stereo for reverb. This should increase performance, but at the cost of a less fullfilling reverb experience. // If performance is desirable, it is recommended to change reverbFilterCountEmulator or betterReverbDownsampleEmulator first. -// This can be changed at any time, but is best set when calling audio_reset_session. +// This can be changed at any time, but is best set immediately before calling audio_reset_session. u8 monoReverbEmulator = FALSE; // This value controls the size of the reverb buffer. It affects the global reverb delay time. This variable is one of the easiest to control. -// It is not recommended setting this to values greater than 0x1000 * 2^(downsample factor - 1), as you run the risk of running into a memory issue (though this is far from a guarantee). // Setting the value lower than the downsample buffer size will destroy the game audio. This is taken into account automatically, but also means the value set here isn't what always gets used. +// Similarly, this value maxes out at (REVERB_WINDOW_SIZE_MAX * 2^(downsample factor - 1)). // If this value is changed, it will go into effect the next time audio_reset_session is called. // Set to -1 to use a default preset instead. Higher values represent more audio delay (usually better for echoey spaces). s32 betterReverbWindowsSize = -1; @@ -120,32 +121,15 @@ s32 betterReverbWindowsSize = -1; // These values affect filter delays. Bigger values will result in fatter echo (and more memory); must be cumulatively smaller than BETTER_REVERB_SIZE/2. // If setting a reverb downsample value to 1, these must be cumulatively smaller than BETTER_REVERB_SIZE/4. -// These values should never be changed unless in this declaration or during a call to audio_reset_session, as it could otherwise lead to a major memory leak or garbage audio. -// None of the delay values should ever be smaller than 1 either; these are s32s purely to avoid typecasts. -// These values are currently set by using delaysBaseline in the audio_reset_session function, so its behavior must be overridden to use dynamically (or at all). -s32 delaysL[NUM_ALLPASS] = { +// None of the delay values should ever be smaller than 1; these are s32s purely to avoid typecasts. +// These values are applied any time audio_reset_session is called, and as such can be changed at any time without issues. +s32 delaysBaselineL[NUM_ALLPASS] = { 1080, 1352, 1200, 1200, 1232, 1432, 1384, 1048, 1352, 928, 1504, 1512 }; -s32 delaysR[NUM_ALLPASS] = { - 1384, 1352, 1048, - 928, 1512, 1504, - 1080, 1200, 1352, - 1200, 1432, 1232 -}; - -// Like the delays array, but represents default max values that don't change (also probably somewhat redundant) -// Change this array rather than the delays array to customize reverb delay times globally. -// Similarly to delaysL/R, these should be kept within the memory constraints defined by BETTER_REVERB_SIZE. -const s32 delaysBaselineL[NUM_ALLPASS] = { - 1080, 1352, 1200, - 1200, 1232, 1432, - 1384, 1048, 1352, - 928, 1504, 1512 -}; -const s32 delaysBaselineR[NUM_ALLPASS] = { +s32 delaysBaselineR[NUM_ALLPASS] = { 1384, 1352, 1048, 928, 1512, 1504, 1080, 1200, 1352, @@ -164,10 +148,12 @@ s32 reverbFilterCount = NUM_ALLPASS; s32 reverbFilterCountm1 = (NUM_ALLPASS - 1); u8 monoReverb = FALSE; u8 toggleBetterReverb = TRUE; -s32 allpassIdxL[NUM_ALLPASS] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -s32 allpassIdxR[NUM_ALLPASS] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -s32 tmpBufL[NUM_ALLPASS] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -s32 tmpBufR[NUM_ALLPASS] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; +s32 allpassIdxL[NUM_ALLPASS] = {0}; +s32 allpassIdxR[NUM_ALLPASS] = {0}; +s32 tmpBufL[NUM_ALLPASS] = {0}; +s32 tmpBufR[NUM_ALLPASS] = {0}; +s32 delaysL[NUM_ALLPASS] = {0}; +s32 delaysR[NUM_ALLPASS] = {0}; s32 **delayBufsL; s32 **delayBufsR; #endif diff --git a/src/audio/synthesis.h b/src/audio/synthesis.h index 1adaa6d9..54403016 100644 --- a/src/audio/synthesis.h +++ b/src/audio/synthesis.h @@ -39,8 +39,8 @@ extern u8 monoReverbConsole; extern u8 monoReverbEmulator; extern s32 betterReverbWindowsSize; -extern const s32 delaysBaselineL[NUM_ALLPASS]; -extern const s32 delaysBaselineR[NUM_ALLPASS]; +extern s32 delaysBaselineL[NUM_ALLPASS]; +extern s32 delaysBaselineR[NUM_ALLPASS]; extern s32 delaysL[NUM_ALLPASS]; extern s32 delaysR[NUM_ALLPASS]; extern s32 reverbMultsL[NUM_ALLPASS / 3]; @@ -51,6 +51,8 @@ extern s32 **delayBufsR; extern u8 toggleBetterReverb; #define REVERB_WINDOW_SIZE_MAX 0x2000 +STATIC_ASSERT(NUM_ALLPASS % 3 == 0, "NUM_ALLPASS must be a multiple of 3!"); + #else #define BETTER_REVERB_SIZE 0 From 9f2f4a27b60c4f1a2482be3a657bb19b0f3a9326 Mon Sep 17 00:00:00 2001 From: gheskett Date: Tue, 8 Mar 2022 00:51:22 -0500 Subject: [PATCH 008/180] Whoops --- src/audio/data.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/data.h b/src/audio/data.h index b6b42777..e4351788 100644 --- a/src/audio/data.h +++ b/src/audio/data.h @@ -183,9 +183,9 @@ extern OSMesgQueue *D_SH_80350FA8; #endif #if defined(VERSION_EU) || defined(VERSION_SH) -#define AUDIO_INIT_POOL_SIZE (0x2C00 + BANK_SETS_ALLOC + EXT_AUDIO_INIT_POOL_SIZE) +#define AUDIO_INIT_POOL_SIZE (0x2B00 + BANK_SETS_ALLOC + EXT_AUDIO_INIT_POOL_SIZE) #else -#define AUDIO_INIT_POOL_SIZE (0x2500 + BANK_SETS_ALLOC + EXT_AUDIO_INIT_POOL_SIZE) +#define AUDIO_INIT_POOL_SIZE (0x2400 + BANK_SETS_ALLOC + EXT_AUDIO_INIT_POOL_SIZE) #endif // TODO: needs validation once EU can compile. EU is very likely incorrect! From 8163bc48375873dcb27631dd51511edfe9075e36 Mon Sep 17 00:00:00 2001 From: gheskett Date: Tue, 8 Mar 2022 01:03:54 -0500 Subject: [PATCH 009/180] sAudioFirstBoot renamed to sAudioIsInitialized --- src/audio/heap.c | 20 ++++++++++---------- src/audio/load.h | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/audio/heap.c b/src/audio/heap.c index c6836c17..573b3d4e 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -985,7 +985,7 @@ void wait_for_audio_frames(s32 frames) { } #endif -u8 sAudioFirstBoot = 0; +u8 sAudioIsInitialized = FALSE; // Separate the reverb settings into their own func. Bit unstable currently, so still only runs at boot. #if defined(VERSION_EU) || defined(VERSION_SH) void init_reverb_eu(void) { @@ -1000,7 +1000,7 @@ void init_reverb_eu(void) { gSynthesisReverbs[j].useReverb = 0; // Both left and right channels are allocated/cleared together, then separated based on the reverb window size - if (!sAudioFirstBoot) { + if (!sAudioIsInitialized) { gSynthesisReverbs[j].ringBuffer.left = soundAlloc(&gNotesAndBuffersPool, REVERB_WINDOW_SIZE_MAX * 4); } } @@ -1015,7 +1015,7 @@ void init_reverb_eu(void) { if (reverb->windowSize > REVERB_WINDOW_SIZE_MAX) { reverb->windowSize = REVERB_WINDOW_SIZE_MAX; } - if (sAudioFirstBoot) { + if (sAudioIsInitialized) { bzero(reverb->ringBuffer.left, (REVERB_WINDOW_SIZE_MAX * 4)); } else { reverb->resampleRate = (0x8000 / reverb->downsampleRate); @@ -1041,7 +1041,7 @@ void init_reverb_eu(void) { reverb->framesLeftToIgnore = 2; if (reverb->downsampleRate != 1) { reverb->resampleRate = (0x8000 / reverb->downsampleRate); - if (sAudioFirstBoot) { + if (sAudioIsInitialized) { bzero(reverb->resampleStateLeft, (16 * sizeof(s16))); bzero(reverb->resampleStateRight, (16 * sizeof(s16))); bzero(reverb->unk24, (16 * sizeof(s16))); @@ -1096,7 +1096,7 @@ void init_reverb_us(s32 presetId) { reverbWindowSize = REVERB_WINDOW_SIZE_MAX; } // Both left and right channels are allocated/cleared together, then separated based on the reverb window size - if (!sAudioFirstBoot) { + if (!sAudioIsInitialized) { gSynthesisReverb.ringBuffer.left = soundAlloc(&gNotesAndBuffersPool, REVERB_WINDOW_SIZE_MAX * 2 * sizeof(s16)); gSynthesisReverb.resampleStateLeft = soundAlloc(&gNotesAndBuffersPool, (16 * sizeof(s16))); @@ -1130,7 +1130,7 @@ void init_reverb_us(s32 presetId) { if (gReverbDownsampleRate != 1) { gSynthesisReverb.resampleFlags = A_INIT; gSynthesisReverb.resampleRate = (0x8000 / gReverbDownsampleRate); - if (sAudioFirstBoot) { + if (sAudioIsInitialized) { bzero(gSynthesisReverb.resampleStateLeft, (16 * sizeof(s16))); bzero(gSynthesisReverb.resampleStateRight, (16 * sizeof(s16))); bzero(gSynthesisReverb.unk24, (16 * sizeof(s16))); @@ -1145,7 +1145,7 @@ void init_reverb_us(s32 presetId) { // However, reseting this allows for proper clearing of the reverb buffers, as well as dynamic customization of the delays array. #ifdef BETTER_REVERB if (toggleBetterReverb) { - if (sAudioFirstBoot) { + if (sAudioIsInitialized) { bzero(delayBufsL[0], (BETTER_REVERB_SIZE - BETTER_REVERB_PTR_SIZE)); } @@ -1166,7 +1166,7 @@ void init_reverb_us(s32 presetId) { #if defined(VERSION_JP) || defined(VERSION_US) void audio_reset_session(struct AudioSessionSettings *preset, s32 presetId) { - if (sAudioFirstBoot) { + if (sAudioIsInitialized) { bzero(&gAiBuffers[0][0], (AIBUFFER_LEN * NUMAIBUFFERS)); persistent_pool_clear(&gSeqLoadedPool.persistent); persistent_pool_clear(&gBankLoadedPool.persistent); @@ -1187,7 +1187,7 @@ void audio_reset_session(struct AudioSessionSettings *preset, s32 presetId) { } #else void audio_reset_session(void) { - if (sAudioFirstBoot) { + if (sAudioIsInitialized) { persistent_pool_clear(&gSeqLoadedPool.persistent); persistent_pool_clear(&gBankLoadedPool.persistent); temporary_pool_clear(&gSeqLoadedPool.temporary); @@ -1446,7 +1446,7 @@ void audio_reset_session(void) { #endif #endif - sAudioFirstBoot = 1; + sAudioIsInitialized = TRUE; } #ifdef VERSION_SH diff --git a/src/audio/load.h b/src/audio/load.h index 4dcc24f5..12b6ed6c 100644 --- a/src/audio/load.h +++ b/src/audio/load.h @@ -16,7 +16,7 @@ enum Preloads { #define IS_SEQUENCE_CHANNEL_VALID(ptr) ((uintptr_t)(ptr) != (uintptr_t)&gSequenceChannelNone) extern struct Note *gNotes; -extern u8 sAudioFirstBoot; +extern u8 sAudioIsInitialized; // Music in SM64 is played using 3 players: // gSequencePlayers[0] is level background music From 3ac257e6fba0327c66cc008ca688a40a6e7dfa63 Mon Sep 17 00:00:00 2001 From: Denis Kopyrin Date: Sun, 20 Mar 2022 21:48:40 +0800 Subject: [PATCH 010/180] Added no cap music restarts define (#335) --- include/config/config_audio.h | 5 +++++ src/audio/external.c | 4 ++++ src/game/sound_init.c | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index 332e09b3..a65b1818 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -28,3 +28,8 @@ * Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. */ // #define BETTER_REVERB + +/** + * Do not restart the music on cap grabs + */ +#define PERSISTENT_CAP_MUSIC diff --git a/src/audio/external.c b/src/audio/external.c index 7f77c613..95b9423e 100644 --- a/src/audio/external.c +++ b/src/audio/external.c @@ -15,6 +15,8 @@ #include "seq_ids.h" #include "dialog_ids.h" +#include "config/config_audio.h" + // N.B. sound banks are different from the audio banks referred to in other // files. We should really fix our naming to be less ambiguous... #define MAX_BACKGROUND_MUSIC_QUEUE_SIZE 6 @@ -2195,7 +2197,9 @@ void play_music(u8 player, u16 seqArgs, u16 fadeTimer) { for (i = 0; i < sBackgroundMusicQueueSize; i++) { if (sBackgroundMusicQueue[i].seqId == seqId) { if (i == 0) { +#ifndef PERSISTENT_CAP_MUSIC seq_player_play_sequence(SEQ_PLAYER_LEVEL, seqId, fadeTimer); +#endif } else if (!gSequencePlayers[SEQ_PLAYER_LEVEL].enabled) { stop_background_music(sBackgroundMusicQueue[0].seqId); } diff --git a/src/game/sound_init.c b/src/game/sound_init.c index db5c3213..beed9f67 100644 --- a/src/game/sound_init.c +++ b/src/game/sound_init.c @@ -16,6 +16,8 @@ #include "rumble_init.h" #include "puppyprint.h" +#include "config/config_audio.h" + #define MUSIC_NONE 0xFFFF static OSMesgQueue sSoundMesgQueue; @@ -293,7 +295,20 @@ void stop_shell_music(void) { /** * Called from threads: thread5_game_loop */ + +#ifdef PERSISTENT_CAP_MUSIC +static s8 sDoResetMusic = FALSE; +extern void stop_cap_music(void); +#endif + void play_cap_music(u16 seqArgs) { +#ifdef PERSISTENT_CAP_MUSIC + if (sDoResetMusic) { + sDoResetMusic = FALSE; + stop_cap_music(); + } +#endif + play_music(SEQ_PLAYER_LEVEL, seqArgs, 0); if (sCurrentCapMusic != MUSIC_NONE && sCurrentCapMusic != seqArgs) { stop_background_music(sCurrentCapMusic); @@ -307,6 +322,9 @@ void play_cap_music(u16 seqArgs) { void fadeout_cap_music(void) { if (sCurrentCapMusic != MUSIC_NONE) { fadeout_background_music(sCurrentCapMusic, 600); +#ifdef PERSISTENT_CAP_MUSIC + sDoResetMusic = TRUE; +#endif } } From 4b9a0b89a0a6324980b20cba5b487a17010ed145 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Fri, 25 Mar 2022 17:08:09 +0000 Subject: [PATCH 011/180] Add missing syncs for G_PM_NPRIMITIVE (#345) --- actors/bubble/model.inc.c | 2 ++ actors/coin/model.inc.c | 2 ++ actors/leaves/model.inc.c | 1 + actors/mr_i_eyeball/model.inc.c | 2 ++ actors/mr_i_iris/model.inc.c | 1 + actors/sand/model.inc.c | 1 + actors/sparkle/model.inc.c | 1 + actors/sparkle_animation/model.inc.c | 1 + actors/transparent_star/model.inc.c | 1 + actors/walk_smoke/model.inc.c | 1 + actors/water_splash/model.inc.c | 1 + bin/effect.c | 1 + bin/segment2.c | 1 + levels/menu/leveldata.c | 3 +++ src/game/game_init.c | 2 +- src/game/ingame_menu.c | 1 + src/game/puppyprint.c | 3 ++- src/goddard/renderer.c | 2 ++ 18 files changed, 25 insertions(+), 2 deletions(-) diff --git a/actors/bubble/model.inc.c b/actors/bubble/model.inc.c index 150ee15e..c01521f2 100644 --- a/actors/bubble/model.inc.c +++ b/actors/bubble/model.inc.c @@ -27,6 +27,7 @@ const Gfx bubble_seg4_dl_0401DD60[] = { gsSPVertex(bubble_seg4_vertex_0401CD20, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; @@ -40,6 +41,7 @@ const Gfx bubble_seg4_dl_0401DDE0[] = { gsSPVertex(bubble_seg4_vertex_0401CD20, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; diff --git a/actors/coin/model.inc.c b/actors/coin/model.inc.c index cc93e8c0..146f9c16 100644 --- a/actors/coin/model.inc.c +++ b/actors/coin/model.inc.c @@ -123,6 +123,7 @@ const Gfx coin_seg3_dl_start[] = { const Gfx coin_seg3_dl_end[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_LIGHTING), gsSPEndDisplayList(), @@ -503,6 +504,7 @@ const Gfx coin_seg3_sub_dl_begin[] = { const Gfx coin_seg3_sub_dl_end[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_LIGHTING), gsSPEndDisplayList(), diff --git a/actors/leaves/model.inc.c b/actors/leaves/model.inc.c index 72c52331..9485de59 100644 --- a/actors/leaves/model.inc.c +++ b/actors/leaves/model.inc.c @@ -24,6 +24,7 @@ const Gfx leaves_seg3_dl_0301CDE0[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; diff --git a/actors/mr_i_eyeball/model.inc.c b/actors/mr_i_eyeball/model.inc.c index bcb354fa..888e7468 100644 --- a/actors/mr_i_eyeball/model.inc.c +++ b/actors/mr_i_eyeball/model.inc.c @@ -36,11 +36,13 @@ const Gfx mr_i_eyeball_seg6_dl_06002080[] = { gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), + gsDPPipeSync(), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mr_i_eyeball_seg6_texture_06001080), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; diff --git a/actors/mr_i_iris/model.inc.c b/actors/mr_i_iris/model.inc.c index 17368e9b..5d7e3fc7 100644 --- a/actors/mr_i_iris/model.inc.c +++ b/actors/mr_i_iris/model.inc.c @@ -40,6 +40,7 @@ const Gfx mr_i_iris_seg6_dl_06004170[] = { gsSPVertex(mr_i_iris_seg6_vertex_06002130, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; diff --git a/actors/sand/model.inc.c b/actors/sand/model.inc.c index 88a973af..4203b5ac 100644 --- a/actors/sand/model.inc.c +++ b/actors/sand/model.inc.c @@ -23,6 +23,7 @@ const Gfx sand_seg3_dl_particle[] = { gsSPVertex(sand_seg3_vertex_billboard_16x16, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_LIGHTING), gsSPEndDisplayList(), diff --git a/actors/sparkle/model.inc.c b/actors/sparkle/model.inc.c index c863ad45..146cf6a2 100644 --- a/actors/sparkle/model.inc.c +++ b/actors/sparkle/model.inc.c @@ -50,6 +50,7 @@ const Gfx sparkles_seg4_dl_0402A490[] = { gsSPVertex(sparkles_seg4_vertex_04027450, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; diff --git a/actors/sparkle_animation/model.inc.c b/actors/sparkle_animation/model.inc.c index 09ef7947..ec008624 100644 --- a/actors/sparkle_animation/model.inc.c +++ b/actors/sparkle_animation/model.inc.c @@ -47,6 +47,7 @@ const Gfx sparkles_animation_seg4_dl_04035288[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsSPSetGeometryMode(G_LIGHTING), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; diff --git a/actors/transparent_star/model.inc.c b/actors/transparent_star/model.inc.c index ca3fb4d2..86b5bdb1 100644 --- a/actors/transparent_star/model.inc.c +++ b/actors/transparent_star/model.inc.c @@ -46,6 +46,7 @@ const Gfx transparent_star_seg3_dl_body[] = { gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), gsDPSetEnvColor(255, 255, 255, 120), gsSPDisplayList(transparent_star_seg3_sub_dl_body), + gsDPPipeSync(), gsDPSetEnvColor(255, 255, 255, 255), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), diff --git a/actors/walk_smoke/model.inc.c b/actors/walk_smoke/model.inc.c index 1b0452c6..183426a1 100644 --- a/actors/walk_smoke/model.inc.c +++ b/actors/walk_smoke/model.inc.c @@ -56,6 +56,7 @@ const Gfx smoke_seg4_dl_040216A0[] = { gsSPVertex(smoke_seg4_vertex_0401DE60, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_LIGHTING), gsSPEndDisplayList(), diff --git a/actors/water_splash/model.inc.c b/actors/water_splash/model.inc.c index 6b7b2daf..bc51237f 100644 --- a/actors/water_splash/model.inc.c +++ b/actors/water_splash/model.inc.c @@ -61,6 +61,7 @@ const Gfx water_splash_seg4_dl_040325C8[] = { gsSPVertex(water_splash_seg4_vertex_0402A588, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_LIGHTING), gsSPEndDisplayList(), diff --git a/bin/effect.c b/bin/effect.c index 1b8091b1..301c515e 100644 --- a/bin/effect.c +++ b/bin/effect.c @@ -130,6 +130,7 @@ const Gfx tiny_bubble_dl_0B006A50[] = { // 0x0B006AB0 - 0x0B006AD8 const Gfx tiny_bubble_dl_0B006AB0[] = { gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK | G_SHADING_SMOOTH), diff --git a/bin/segment2.c b/bin/segment2.c index 31b51d29..ba72215c 100644 --- a/bin/segment2.c +++ b/bin/segment2.c @@ -2328,6 +2328,7 @@ const Gfx dl_draw_triangle[] = { gsSPVertex(vertex_triangle, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPSetGeometryMode(G_LIGHTING), + gsDPPipeSync(), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), diff --git a/levels/menu/leveldata.c b/levels/menu/leveldata.c index d387f92d..56893d28 100644 --- a/levels/menu/leveldata.c +++ b/levels/menu/leveldata.c @@ -436,6 +436,7 @@ static const Gfx dl_menu_hand[] = { gsSPVertex(vertex_menu_hand, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), @@ -1786,6 +1787,7 @@ const Gfx dl_menu_rgba16_wood_course_end[] = { gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), gsSPVertex(vertex_menu_course_upper, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), + gsDPPipeSync(), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, texture_menu_course_lower), 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), gsDPLoadSync(), @@ -1796,6 +1798,7 @@ const Gfx dl_menu_rgba16_wood_course_end[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList(), }; diff --git a/src/game/game_init.c b/src/game/game_init.c index 4a8934c6..a53913bb 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -102,7 +102,7 @@ struct DemoInput gRecordedDemoInput = { 0 }; */ const Gfx init_rdp[] = { gsDPPipeSync(), - gsDPPipelineMode(G_PM_1PRIMITIVE), + gsDPPipelineMode(G_PM_NPRIMITIVE), gsDPSetScissor(G_SC_NON_INTERLACE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), diff --git a/src/game/ingame_menu.c b/src/game/ingame_menu.c index 28c80f34..b8f65c27 100644 --- a/src/game/ingame_menu.c +++ b/src/game/ingame_menu.c @@ -1697,6 +1697,7 @@ void render_pause_castle_menu_box(s16 x, s16 y) { create_dl_translation_matrix(MENU_MTX_PUSH, x + 6, y - 28, 0); create_dl_rotation_matrix(MENU_MTX_NOPUSH, DEFAULT_DIALOG_BOX_ANGLE, 0, 0, 1.0f); + gDPPipeSync(gDisplayListHead++); gDPSetEnvColor(gDisplayListHead++, 255, 255, 255, gDialogTextAlpha); gSPDisplayList(gDisplayListHead++, dl_draw_triangle); gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW); diff --git a/src/game/puppyprint.c b/src/game/puppyprint.c index a30f9123..aadcb5f5 100644 --- a/src/game/puppyprint.c +++ b/src/game/puppyprint.c @@ -828,6 +828,7 @@ void prepare_blank_box(void) { } void finish_blank_box(void) { + gDPPipeSync(gDisplayListHead++); print_set_envcolour(255, 255, 255, 255); gSPDisplayList(gDisplayListHead++, dl_hud_img_end); } @@ -837,6 +838,7 @@ void finish_blank_box(void) { // Otherwise, if there's transparency, it uses that rendermode, which is slower than using opaque rendermodes. void render_blank_box(s32 x1, s32 y1, s32 x2, s32 y2, s32 r, s32 g, s32 b, s32 a) { s32 cycleadd = 0; + gDPPipeSync(gDisplayListHead++); if (((absi(x1 - x2) % 4) == 0) && (a == 255)) { gDPSetCycleType( gDisplayListHead++, G_CYC_FILL); gDPSetRenderMode(gDisplayListHead++, G_RM_NOOP, G_RM_NOOP); @@ -851,7 +853,6 @@ void render_blank_box(s32 x1, s32 y1, s32 x2, s32 y2, s32 r, s32 g, s32 b, s32 a cycleadd = 0; } - gDPPipeSync(gDisplayListHead++); gDPSetFillColor(gDisplayListHead++, (GPACK_RGBA5551(r, g, b, 1) << 16) | GPACK_RGBA5551(r, g, b, 1)); print_set_envcolour(r, g, b, a); gDPFillRectangle(gDisplayListHead++, x1, y1, x2 - cycleadd, y2 - cycleadd); diff --git a/src/goddard/renderer.c b/src/goddard/renderer.c index c8c5c7b9..5f84ddde 100644 --- a/src/goddard/renderer.c +++ b/src/goddard/renderer.c @@ -329,6 +329,7 @@ static Gfx gd_dl_star_common[] = { gsSPVertex(gd_vertex_star, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_INTER, G_RM_NOOP2), gsSPEndDisplayList(), @@ -516,6 +517,7 @@ static Gfx gd_dl_sparkle[] = { gsSPVertex(gd_vertex_sparkle, 4, 0), gsSP2Triangles(0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF), + gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_INTER, G_RM_NOOP2), gsSPEndDisplayList(), From 4a3ef802d5fc74e85922c2343b0ce95aa48e3d62 Mon Sep 17 00:00:00 2001 From: Denis Kopyrin Date: Sun, 27 Mar 2022 10:39:44 +0800 Subject: [PATCH 012/180] Fixed eeprom saving on VC (#334) * Fixed eeprom saving on VC * Specify SM for EEP4K, for any other savetype use ED * Moved IS_VC() check to an earlier point, switch IS_VC()->gIsVC * Moved binary VC files to bin folder, added checks for EEP * Do not keep vc_bin if EEP is not set --- asm/rom_header.s | 4 +++ asm/vc_bin.s | 23 +++++++++++++ bin/vc/osEepStatusVC.bin | Bin 0 -> 560 bytes bin/vc/osEepromReadVC.bin | Bin 0 -> 512 bytes bin/vc/osEepromWriteVC.bin | Bin 0 -> 448 bytes sm64.ld | 3 ++ src/boot/main.c | 3 ++ src/game/game_init.c | 5 ++- src/game/save_file.c | 11 ++++-- src/game/vc_bin.h | 7 ++++ src/game/vc_ultra.c | 68 +++++++++++++++++++++++++++++++++++++ src/game/vc_ultra.h | 7 ++++ 12 files changed, 128 insertions(+), 3 deletions(-) create mode 100644 asm/vc_bin.s create mode 100644 bin/vc/osEepStatusVC.bin create mode 100644 bin/vc/osEepromReadVC.bin create mode 100644 bin/vc/osEepromWriteVC.bin create mode 100644 src/game/vc_bin.h create mode 100644 src/game/vc_ultra.c create mode 100644 src/game/vc_ultra.h diff --git a/asm/rom_header.s b/asm/rom_header.s index cc9432d0..0673aee8 100644 --- a/asm/rom_header.s +++ b/asm/rom_header.s @@ -17,7 +17,11 @@ .ascii INTERNAL_ROM_NAME /* Internal ROM name */ .word 0x00000000 /* Unknown */ .word 0x0000004E /* Cartridge */ +#if defined(EEP4K) +.ascii "SM" /* Cartridge ID */ +#else .ascii "ED" /* Cartridge ID */ +#endif /* Region */ #if defined(VERSION_JP) || defined(VERSION_SH) diff --git a/asm/vc_bin.s b/asm/vc_bin.s new file mode 100644 index 00000000..7a89d676 --- /dev/null +++ b/asm/vc_bin.s @@ -0,0 +1,23 @@ +// VC is using binary matching to stub functions - this hex was copied from SM64 +// osEepromRead/Write are performing infinite cycle inside them which causes recompiler do go crazy +// _osEepStatus does not have any suspicious asm in it but it is just VC hacked anyways +// If it is not replaced with a VC variant, EEP probe fails + +.include "macros.inc" +.section .text + +#if defined(EEP) +// 0x80329150 = 0xE4150 +.balign 16 +glabel osEepromReadVC +.incbin "bin/vc/osEepromReadVC.bin" + +// 0x80328af0 = 0xE3AF0 +.balign 16 +glabel osEepromWriteVC +.incbin "bin/vc/osEepromWriteVC.bin" + +.balign 16 +glabel __osEepStatusVC +.incbin "bin/vc/osEepStatusVC.bin" +#endif diff --git a/bin/vc/osEepStatusVC.bin b/bin/vc/osEepStatusVC.bin new file mode 100644 index 0000000000000000000000000000000000000000..e763f78c248255c6eae011d163359c959f2150a8 GIT binary patch literal 560 zcmY%2`~QLsUxS(Ixx#|=`x!*mFJUlPzm&mb{Q?G^_3Ic^)-Pbt=wHvE(Z7>H!-lcJ zjDi0^1A_&J;u?j*0(A`rMomTr0TG4&-`B5T(6HfZFjL`VU<9dC^(rh_qgl9S{VJ## zs~J=lCNMDcuVc{YU&ElHdY*w%^C1I^YA*xh`t=MNU^CV-sHjLV{8y1=U{v8?U{>K| z_^-mn@Lz?S;lBzG!~exQ7-SajWRP9Ffqv~ zy$2Z>`a$M!G5oV(Z7^H8kbz<6LI&pEn+z-}OA8BBSQr>r?qp!uxs!pte+7ezDklTS z`jreSJUojc7HTmttY5^S)4znlfPq0nm4~N`L4}QhQH7g<733$7c?+})CVN*BSP*{S)V;zG^|4IfG^;HZqor(+$GZh(_*E%vVbm}m$%+z6EU+crbGIm-- z6Jvgc0}T9`%nQ#lFi+mepg4IogF^pG1``HJCk96D0M(^h3=I7{7)&OwVNhDk!@$(P pp21||TLxyq1#ovVF)k2LWnd6c?cdKJqP~~GfcXIf2gnb|7y$JpmLmWF literal 0 HcmV?d00001 diff --git a/bin/vc/osEepromReadVC.bin b/bin/vc/osEepromReadVC.bin new file mode 100644 index 0000000000000000000000000000000000000000..dd3481a17c216263580cd52e77d698e5809911cf GIT binary patch literal 512 zcmY%2`~SrHr3^Nc*E87L@HLpJo+~WSe8}Lqem{fA`Xvk&>z6S&tY5%jvVH-BfrtVF z^ZIoRIsyy~St?Bb|MT!HvSDCgVCY}MV8O$)I9q)wgU0$r3?}_M7)-<&7+67a(|0mx zm@qal2rDu$gZKgr4ACk~3>=eJFlZTaGBgM(FmQmxk~l!1YN z{R&8!_pf9y=wHp?z`Qa*aiSN4!on;DhW<4S2L0<898~)m7&RXz6S&tY5%jBBH>+ynY>n zjsOEgv+YFWHTnOVvsZRW@r#i`2PzeH+czzJrB=f zjsB$!4mPX}W-3by3wU@IMX0baFoNw{!eGI`prOjc)5V~|#=y9K0fRyRS_Xsu^$Z3! zj16WCyaf#mdK`)>JPiNW=oA*H{$OC#W@Hc$QTYFD{SJs4khyCV3fI8QW?)cIRgq+1 z1?dObvB0um0?3UR_N-zs=wHF0qw3ATsF}#XqRPp@xPCQ*fr!HYpX*mL==85)&{1E@ zpwQXKz%a9sfqCsh28Pal29}xq4D4&yGq7|vGH}dnWZ+)Akbz_J4hBVINrnRql8($g fJd1qSuV66g2ZiT;1`+kW3>M4}AYlax6J!hkmaB7k literal 0 HcmV?d00001 diff --git a/sm64.ld b/sm64.ld index 7bff39df..94841950 100755 --- a/sm64.ld +++ b/sm64.ld @@ -159,6 +159,9 @@ SECTIONS { KEEP(BUILD_DIR/asm/entry.o(.text*)); KEEP(BUILD_DIR/asm/n64_assert.o(.text*)); +#ifdef EEP + KEEP(BUILD_DIR/asm/vc_bin.o(.text*)); +#endif BUILD_DIR/src/boot*.o(.text*); BUILD_DIR/src/hvqm*.o(.text*); diff --git a/src/boot/main.c b/src/boot/main.c index 75a9dc54..1b3f198e 100644 --- a/src/boot/main.c +++ b/src/boot/main.c @@ -21,6 +21,8 @@ #include "game/puppyprint.h" #include "game/puppylights.h" +#include "game/vc_check.h" + // Message IDs enum MessageIDs { MESG_SP_COMPLETE = 100, @@ -302,6 +304,7 @@ void thread3_main(UNUSED void *arg) { setup_mesg_queues(); alloc_pool(); load_engine_code_segment(); + gIsVC = IS_VC(); #ifndef UNF crash_screen_init(); #endif diff --git a/src/game/game_init.c b/src/game/game_init.c index a53913bb..7f0fc4f1 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -29,6 +29,7 @@ #include "puppycam2.h" #include "debug_box.h" #include "vc_check.h" +#include "vc_ultra.h" // First 3 controller slots struct Controller gControllers[3]; @@ -653,7 +654,9 @@ void init_controllers(void) { #ifdef EEP // strangely enough, the EEPROM probe for save data is done in this function. // save pak detection? - gEepromProbe = osEepromProbe(&gSIEventMesgQueue); + gEepromProbe = gIsVC + ? osEepromProbeVC(&gSIEventMesgQueue) + : osEepromProbe (&gSIEventMesgQueue); #endif #ifdef SRAM gSramProbe = nuPiInitSram(); diff --git a/src/game/save_file.c b/src/game/save_file.c index 07f0faad..6a81260e 100644 --- a/src/game/save_file.c +++ b/src/game/save_file.c @@ -52,6 +52,9 @@ s8 gLevelToCourseNumTable[] = { STATIC_ASSERT(ARRAY_COUNT(gLevelToCourseNumTable) == LEVEL_COUNT - 1, "change this array if you are adding levels"); #ifdef EEP +#include "vc_check.h" +#include "vc_ultra.h" + /** * Read from EEPROM to a given address. * The EEPROM address is computed using the offset of the destination address from gSaveBuffer. @@ -70,7 +73,9 @@ static s32 read_eeprom_data(void *buffer, s32 size) { block_until_rumble_pak_free(); #endif triesLeft--; - status = osEepromLongRead(&gSIEventMesgQueue, offset, buffer, size); + status = gIsVC + ? osEepromLongReadVC(&gSIEventMesgQueue, offset, buffer, size) + : osEepromLongRead (&gSIEventMesgQueue, offset, buffer, size); #if ENABLE_RUMBLE release_rumble_pak_control(); #endif @@ -98,7 +103,9 @@ static s32 write_eeprom_data(void *buffer, s32 size) { block_until_rumble_pak_free(); #endif triesLeft--; - status = osEepromLongWrite(&gSIEventMesgQueue, offset, buffer, size); + status = gIsVC + ? osEepromLongWriteVC(&gSIEventMesgQueue, offset, buffer, size) + : osEepromLongWrite (&gSIEventMesgQueue, offset, buffer, size); #if ENABLE_RUMBLE release_rumble_pak_control(); #endif diff --git a/src/game/vc_bin.h b/src/game/vc_bin.h new file mode 100644 index 00000000..47219980 --- /dev/null +++ b/src/game/vc_bin.h @@ -0,0 +1,7 @@ +// These functions are actually fully binary, I use these invokations for my convenience + +#include + +s32 osEepromReadVC(OSMesgQueue *mq, u8 address, u8 *buffer); +s32 osEepromWriteVC(OSMesgQueue *mq, u8 address, u8 *buffer); +s32 __osEepStatusVC(OSMesgQueue *mq, OSContStatus *data); diff --git a/src/game/vc_ultra.c b/src/game/vc_ultra.c new file mode 100644 index 00000000..fe11661e --- /dev/null +++ b/src/game/vc_ultra.c @@ -0,0 +1,68 @@ +#include "vc_ultra.h" + +#include "vc_bin.h" + +#ifdef EEP +// These functions are real implementations of libultra functions +// with an exception that some VC useless code was dropped from them +// for the cleaner understanding purposes. +// These functions are generally wrappers around binary stubs from vc_bin +s32 osEepromProbeVC(OSMesgQueue *mq) +{ + s32 ret; + u16 type; + ret = 0; + OSContStatus sdata; + ret = __osEepStatusVC(mq, &sdata); // call to binary stub + type = sdata.type & (CONT_EEPROM | CONT_EEP16K); + if (ret != 0) + { + ret = 0; + } + else + { + switch (type) + { + case CONT_EEPROM: + ret = EEPROM_TYPE_4K; + break; + case CONT_EEPROM | CONT_EEP16K: + ret = EEPROM_TYPE_16K; + break; + default: + ret = 0; + break; + } + } + + return ret; +} + +s32 osEepromLongReadVC(OSMesgQueue *mq, u8 address, u8 *buffer, int length) +{ + s32 ret; + ret = 0; + while (length > 0) + { + osEepromReadVC(mq, address, buffer); // call to binary stub + length -= EEPROM_BLOCK_SIZE; + address++; + buffer += EEPROM_BLOCK_SIZE; + } + return ret; +} + +s32 osEepromLongWriteVC(OSMesgQueue *mq, u8 address, u8 *buffer, int length) +{ + s32 ret; + ret = 0; + while (length > 0) + { + osEepromWriteVC(mq, address, buffer); // call to binary stub + length -= EEPROM_BLOCK_SIZE; + address++; + buffer += EEPROM_BLOCK_SIZE; + } + return ret; +} +#endif diff --git a/src/game/vc_ultra.h b/src/game/vc_ultra.h new file mode 100644 index 00000000..0faf942a --- /dev/null +++ b/src/game/vc_ultra.h @@ -0,0 +1,7 @@ +// Some libultra functions that use VC alternatives + +#include + +s32 osEepromProbeVC(OSMesgQueue *mq); +s32 osEepromLongReadVC(OSMesgQueue *mq, u8 address, u8 *buffer, int length); +s32 osEepromLongWriteVC(OSMesgQueue *mq, u8 address, u8 *buffer, int length); From 25b421aaaef88b29dc31ef6c80b68b0756b47e43 Mon Sep 17 00:00:00 2001 From: axollyon <20480418+axollyon@users.noreply.github.com> Date: Fri, 17 Jun 2022 00:46:48 -0400 Subject: [PATCH 013/180] Added buttonReleased member in the controller struct (#421) --- include/types.h | 7 ++++--- src/game/game_init.c | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/types.h b/include/types.h index 64955f84..2e0f5189 100644 --- a/include/types.h +++ b/include/types.h @@ -40,10 +40,11 @@ struct Controller { /*0x0C*/ f32 stickMag; // distance from center [0, 64] /*0x10*/ u16 buttonDown; /*0x12*/ u16 buttonPressed; - /*0x14*/ OSContStatus *statusData; - /*0x18*/ OSContPad *controllerData; + /*0x14*/ u16 buttonReleased; + /*0x18*/ OSContStatus *statusData; + /*0x1C*/ OSContPad *controllerData; #if ENABLE_RUMBLE - /*0x1C*/ s32 port; + /*0x20*/ s32 port; #endif }; diff --git a/src/game/game_init.c b/src/game/game_init.c index 7f0fc4f1..a52ae10e 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -611,8 +611,8 @@ void read_controller_inputs(s32 threadID) { if (controller->controllerData != NULL) { controller->rawStickX = controller->controllerData->stick_x; controller->rawStickY = controller->controllerData->stick_y; - controller->buttonPressed = controller->controllerData->button - & (controller->controllerData->button ^ controller->buttonDown); + controller->buttonPressed = ~controller->buttonDown & controller->controllerData->button; + controller->buttonReleased = ~controller->controllerData->button & controller->buttonDown; // 0.5x A presses are a good meme controller->buttonDown = controller->controllerData->button; adjust_analog_stick(controller); @@ -620,6 +620,7 @@ void read_controller_inputs(s32 threadID) { controller->rawStickX = 0; controller->rawStickY = 0; controller->buttonPressed = 0; + controller->buttonReleased = 0; controller->buttonDown = 0; controller->stickX = 0; controller->stickY = 0; @@ -636,6 +637,7 @@ void read_controller_inputs(s32 threadID) { gPlayer3Controller->stickY = gPlayer1Controller->stickY; gPlayer3Controller->stickMag = gPlayer1Controller->stickMag; gPlayer3Controller->buttonPressed = gPlayer1Controller->buttonPressed; + gPlayer3Controller->buttonReleased = gPlayer1Controller->buttonReleased; gPlayer3Controller->buttonDown = gPlayer1Controller->buttonDown; } From 5ef0e8c9f6b6c49150e2e1e392b064b1e54ad782 Mon Sep 17 00:00:00 2001 From: Gregory Heskett Date: Fri, 17 Jun 2022 01:05:40 -0400 Subject: [PATCH 014/180] Bugfix, refactor, and slightly improve BETTER_REVERB runtime (#391) * Buxfix, refactor, and slightly improve BETTER_REVERB runtime * Update BETTER_REVERB defaults and add some more customizability * Improve BETTER_REVERB runtime even further * Rename some reverb variables to make more sense in context --- include/config/config_audio.h | 10 +- src/audio/heap.c | 18 +--- src/audio/heap.h | 3 + src/audio/synthesis.c | 169 ++++++++++++++++++++++------------ src/audio/synthesis.h | 18 ++-- 5 files changed, 132 insertions(+), 86 deletions(-) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index a65b1818..e4136c25 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -9,6 +9,11 @@ */ #define CASTLE_MUSIC_FIX +/** + * Do not restart the music on cap grabs + */ +#define PERSISTENT_CAP_MUSIC + /** * Increase audio heap size to allow for larger/more custom sequences/banks/sfx to be imported without causing issues (not supported for SH). */ @@ -28,8 +33,3 @@ * Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. */ // #define BETTER_REVERB - -/** - * Do not restart the music on cap grabs - */ -#define PERSISTENT_CAP_MUSIC diff --git a/src/audio/heap.c b/src/audio/heap.c index 573b3d4e..21379fe5 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -1059,7 +1059,6 @@ void init_reverb_us(s32 presetId) { s32 i; #ifdef BETTER_REVERB s8 reverbConsole; - s32 bufOffset = 0; #endif s32 reverbWindowSize = gReverbSettings[presetId].windowSize; @@ -1112,9 +1111,7 @@ void init_reverb_us(s32 presetId) { gSynthesisReverb.items[1][i].toDownsampleRight = (mem + (DEFAULT_LEN_1CH / sizeof(s16))); } #ifdef BETTER_REVERB - delayBufsL = (s32**) soundAlloc(&gBetterReverbPool, BETTER_REVERB_PTR_SIZE); - delayBufsR = &delayBufsL[NUM_ALLPASS]; - delayBufsL[0] = (s32*) soundAlloc(&gBetterReverbPool, BETTER_REVERB_SIZE - BETTER_REVERB_PTR_SIZE); + initialize_better_reverb_buffers(); #endif } else { bzero(gSynthesisReverb.ringBuffer.left, (REVERB_WINDOW_SIZE_MAX * 2 * sizeof(s16))); @@ -1146,17 +1143,10 @@ void init_reverb_us(s32 presetId) { #ifdef BETTER_REVERB if (toggleBetterReverb) { if (sAudioIsInitialized) { - bzero(delayBufsL[0], (BETTER_REVERB_SIZE - BETTER_REVERB_PTR_SIZE)); - } - - for (i = 0; i < NUM_ALLPASS; ++i) { - delaysL[i] = (delaysBaselineL[i] / gReverbDownsampleRate); - delaysR[i] = (delaysBaselineR[i] / gReverbDownsampleRate); - delayBufsL[i] = (s32*) &delayBufsL[0][bufOffset]; - bufOffset += delaysL[i]; - delayBufsR[i] = (s32*) &delayBufsL[0][bufOffset]; // L and R buffers are interpolated adjacently in memory; not a bug - bufOffset += delaysR[i]; + clear_better_reverb_buffers(); } + + set_better_reverb_buffers(); } #endif } diff --git a/src/audio/heap.h b/src/audio/heap.h index f1fb3455..57107418 100644 --- a/src/audio/heap.h +++ b/src/audio/heap.h @@ -93,6 +93,9 @@ extern struct SoundAllocPool gAudioInitPool; extern struct SoundAllocPool gNotesAndBuffersPool; extern struct SoundAllocPool gPersistentCommonPool; extern struct SoundAllocPool gTemporaryCommonPool; +#ifdef BETTER_REVERB +extern struct SoundAllocPool gBetterReverbPool; +#endif extern struct SoundMultiPool gSeqLoadedPool; extern struct SoundMultiPool gBankLoadedPool; #ifdef VERSION_SH diff --git a/src/audio/synthesis.c b/src/audio/synthesis.c index 7800ca81..09c5e636 100644 --- a/src/audio/synthesis.c +++ b/src/audio/synthesis.c @@ -69,7 +69,7 @@ // You can change this value before audio_reset_session gets called if different levels can tolerate the demand better than others or just have different reverb goals. // A higher downsample value hits the game's frequency limit sooner, which can cause the reverb sometimes to be off pitch. This is a vanilla level issue (and also counter intuitive). // Higher downsample values also result in slightly shorter reverb decay times. -s8 betterReverbDownsampleConsole = 3; +s8 betterReverbDownsampleConsole = 2; // Most emulators can handle a default value of 2, but 3 may be advisable in some cases if targeting older emulators (e.g. PJ64 1.6). Setting this to -1 also uses vanilla reverb. // Using a value of 1 is not recommended on emulator unless reducing other parameters to compensate. If you do decide to use 1 here, you must adjust BETTER_REVERB_SIZE appropriately. @@ -80,22 +80,22 @@ s8 betterReverbDownsampleEmulator = 2; // This value represents the number of filters to use with the reverb. This can be decreased to improve performance, but at the cost of a lesser presence of reverb in the final audio. // Filter count should always be a multiple of 3. Never ever set this value to be greater than NUM_ALLPASS. -// Setting it to anything less than 3 will disable reverb outright. +// This value cannot be less than 3. Setting it to anything lower will act as if it was set to 3. // This can be changed at any time, but is best set immediately before calling audio_reset_session. -u32 reverbFilterCountConsole = (NUM_ALLPASS - 6); +s32 reverbFilterCountConsole = (NUM_ALLPASS - 9); // This value represents the number of filters to use with the reverb. This can be decreased to improve performance, but at the cost of a lesser presence of reverb in the final audio. // Filter count should always be a multiple of 3. Never ever set this value to be greater than NUM_ALLPASS. -// Setting it to anything less than 3 will disable reverb outright. +// This value cannot be less than 3. Setting it to anything lower will act as if it was set to 3. // This can be changed at any time, but is best set immediately before calling audio_reset_session. -u32 reverbFilterCountEmulator = NUM_ALLPASS; +s32 reverbFilterCountEmulator = NUM_ALLPASS; -// Set this to TRUE to use mono over stereo for reverb. This should increase performance, but at the cost of a less fullfilling reverb experience. +// Set this to TRUE to use mono over stereo for reverb. This should increase performance, but at the cost of a less fulfilling reverb experience. // If performance is desirable, it is recommended to change reverbFilterCountConsole or betterReverbDownsampleConsole first. // This can be changed at any time, but is best set immediately before calling audio_reset_session. u8 monoReverbConsole = FALSE; -// Set this to TRUE to use mono over stereo for reverb. This should increase performance, but at the cost of a less fullfilling reverb experience. +// Set this to TRUE to use mono over stereo for reverb. This should increase performance, but at the cost of a less fulfilling reverb experience. // If performance is desirable, it is recommended to change reverbFilterCountEmulator or betterReverbDownsampleEmulator first. // This can be changed at any time, but is best set immediately before calling audio_reset_session. u8 monoReverbEmulator = FALSE; @@ -111,7 +111,7 @@ s32 betterReverbWindowsSize = -1; // Setting these to values larger than 0xFF (255) or less than 0 may cause issues and is not recommended. #define REVERB_REV_INDEX 0x60 // Affects decay time mostly (large values can cause terrible feedback!); can be messed with at any time #define REVERB_GAIN_INDEX 0xA0 // Affects signal immediately retransmitted back into buffers (mid-high values yield the strongest effect); can be messed with at any time -#define REVERB_WET_SIGNAL 0xE8 // Amount of reverb specific output in final signal (also affects decay); can be messed with at any time, also very easy to control +#define REVERB_WET_SIGNAL 0xE0 // Amount of reverb specific output in final signal (also affects decay); can be messed with at any time, also very easy to control // #define REVERB_DRY_SIGNAL = 0x00; // Amount of original input in final signal (large values can cause terrible feedback!); declaration and uses commented out by default to improve compiler optimization @@ -136,26 +136,25 @@ s32 delaysBaselineR[NUM_ALLPASS] = { 1200, 1432, 1232 }; -// These values affect reverb decay depending on the filter index; can be messed with at any time -s32 reverbMultsL[NUM_ALLPASS / 3] = {0xD7, 0x6F, 0x36, 0x22}; -s32 reverbMultsR[NUM_ALLPASS / 3] = {0xCF, 0x73, 0x38, 0x1F}; +// These values affect reverb decay depending on the filter index; can be messed with at any time, and will have effects updated in real time +s32 gReverbMultsL[NUM_ALLPASS / 3] = {0xD7, 0x6F, 0x36, 0x22}; +s32 gReverbMultsR[NUM_ALLPASS / 3] = {0xCF, 0x73, 0x38, 0x1F}; /* -----------------------------------------------------------------------END REVERB PARAMETERS----------------------------------------------------------------------- */ // Do not touch these values manually, unless you want potential for problems. -s32 reverbFilterCount = NUM_ALLPASS; -s32 reverbFilterCountm1 = (NUM_ALLPASS - 1); -u8 monoReverb = FALSE; u8 toggleBetterReverb = TRUE; -s32 allpassIdxL[NUM_ALLPASS] = {0}; -s32 allpassIdxR[NUM_ALLPASS] = {0}; -s32 tmpBufL[NUM_ALLPASS] = {0}; -s32 tmpBufR[NUM_ALLPASS] = {0}; -s32 delaysL[NUM_ALLPASS] = {0}; -s32 delaysR[NUM_ALLPASS] = {0}; -s32 **delayBufsL; -s32 **delayBufsR; +static u8 monoReverb = FALSE; +static s32 reverbFilterCount = NUM_ALLPASS; +static s32 allpassIdxL[NUM_ALLPASS] = {0}; +static s32 allpassIdxR[NUM_ALLPASS] = {0}; +static s32 delaysL[NUM_ALLPASS] = {0}; +static s32 delaysR[NUM_ALLPASS] = {0}; +static u8 reverbMultsL[NUM_ALLPASS / 3] = {0}; +static u8 reverbMultsR[NUM_ALLPASS / 3] = {0}; +static s32 **delayBufsL; +static s32 **delayBufsR; #endif @@ -193,72 +192,109 @@ u8 sAudioSynthesisPad[0x20]; #endif #ifdef BETTER_REVERB -static inline void reverb_samples(s16 *outSampleL, s16 *outSampleR, s32 inSampleL, s32 inSampleR) { +static void reverb_samples(s16 *outSampleL, s16 *outSampleR, s32 inSampleL, s32 inSampleR) { + s32 *curDelaySampleL; + s32 *curDelaySampleR; + s32 historySampleL; + s32 historySampleR; s32 i = 0; s32 j = 0; s32 k = 0; s32 outTmpL = 0; s32 outTmpR = 0; - s32 tmpCarryoverL = (((tmpBufL[reverbFilterCountm1] * REVERB_REV_INDEX) / 256) + inSampleL); - s32 tmpCarryoverR = (((tmpBufR[reverbFilterCountm1] * REVERB_REV_INDEX) / 256) + inSampleR); + s32 tmpCarryoverL = (((delayBufsL[reverbFilterCount][allpassIdxL[reverbFilterCount]] * REVERB_REV_INDEX) >> 8) + inSampleL); + s32 tmpCarryoverR = (((delayBufsR[reverbFilterCount][allpassIdxR[reverbFilterCount]] * REVERB_REV_INDEX) >> 8) + inSampleR); - for (; i != reverbFilterCount; ++i, ++j) { - tmpBufL[i] = delayBufsL[i][allpassIdxL[i]]; - tmpBufR[i] = delayBufsR[i][allpassIdxR[i]]; + for (; i <= reverbFilterCount; ++i, ++j) { + curDelaySampleL = &delayBufsL[i][allpassIdxL[i]]; + curDelaySampleR = &delayBufsR[i][allpassIdxR[i]]; + historySampleL = *curDelaySampleL; + historySampleR = *curDelaySampleR; if (j == 2) { j = -1; - outTmpL += ((tmpBufL[i] * reverbMultsL[k ]) / 256); - outTmpR += ((tmpBufR[i] * reverbMultsR[k++]) / 256); - delayBufsL[i][allpassIdxL[i]] = tmpCarryoverL; - delayBufsR[i][allpassIdxR[i]] = tmpCarryoverR; - if (i != reverbFilterCountm1) { - tmpCarryoverL = ((tmpBufL[i] * REVERB_REV_INDEX) / 256); - tmpCarryoverR = ((tmpBufR[i] * REVERB_REV_INDEX) / 256); + outTmpL += ((historySampleL * reverbMultsL[k ]) >> 8); + outTmpR += ((historySampleR * reverbMultsR[k++]) >> 8); + *curDelaySampleL = tmpCarryoverL; + *curDelaySampleR = tmpCarryoverR; + if (i != reverbFilterCount) { + tmpCarryoverL = ((historySampleL * REVERB_REV_INDEX) >> 8); + tmpCarryoverR = ((historySampleR * REVERB_REV_INDEX) >> 8); } } else { - delayBufsL[i][allpassIdxL[i]] = (((tmpBufL[i] * (-REVERB_GAIN_INDEX)) / 256) + tmpCarryoverL); - delayBufsR[i][allpassIdxR[i]] = (((tmpBufR[i] * (-REVERB_GAIN_INDEX)) / 256) + tmpCarryoverR); - tmpCarryoverL = (((delayBufsL[i][allpassIdxL[i]] * REVERB_GAIN_INDEX) / 256) + tmpBufL[i]); - tmpCarryoverR = (((delayBufsR[i][allpassIdxR[i]] * REVERB_GAIN_INDEX) / 256) + tmpBufR[i]); + *curDelaySampleL = (((historySampleL * (-REVERB_GAIN_INDEX)) >> 8) + tmpCarryoverL); + *curDelaySampleR = (((historySampleR * (-REVERB_GAIN_INDEX)) >> 8) + tmpCarryoverR); + tmpCarryoverL = (((*curDelaySampleL * REVERB_GAIN_INDEX) >> 8) + historySampleL); + tmpCarryoverR = (((*curDelaySampleR * REVERB_GAIN_INDEX) >> 8) + historySampleR); } if (++allpassIdxL[i] == delaysL[i]) allpassIdxL[i] = 0; if (++allpassIdxR[i] == delaysR[i]) allpassIdxR[i] = 0; } - s32 outUnclamped = ((outTmpL * REVERB_WET_SIGNAL/* + inSampleL * REVERB_DRY_SIGNAL*/) / 256); + + s32 outUnclamped = ((outTmpL * REVERB_WET_SIGNAL/* + inSampleL * REVERB_DRY_SIGNAL*/) >> 8); *outSampleL = CLAMP_S16(outUnclamped); - outUnclamped = ((outTmpR * REVERB_WET_SIGNAL/* + inSampleL * REVERB_DRY_SIGNAL*/) / 256); + outUnclamped = ((outTmpR * REVERB_WET_SIGNAL/* + inSampleL * REVERB_DRY_SIGNAL*/) >> 8); *outSampleR = CLAMP_S16(outUnclamped); } -static inline void reverb_mono_sample(s16 *outSample, s32 inSample) { +static void reverb_mono_sample(s16 *outSample, s32 inSample) { + s32 *curDelaySample; + s32 historySample; s32 i = 0; s32 j = 0; s32 k = 0; s32 outTmp = 0; - s32 tmpCarryover = (((tmpBufL[reverbFilterCountm1] * REVERB_REV_INDEX) / 256) + inSample); + s32 tmpCarryover = (((delayBufsL[reverbFilterCount][allpassIdxL[reverbFilterCount]] * REVERB_REV_INDEX) >> 8) + inSample); - for (; i != reverbFilterCount; ++i, ++j) { - tmpBufL[i] = delayBufsL[i][allpassIdxL[i]]; + for (; i <= reverbFilterCount; ++i, ++j) { + curDelaySample = &delayBufsL[i][allpassIdxL[i]]; + historySample = *curDelaySample; if (j == 2) { j = -1; - outTmp += ((tmpBufL[i] * reverbMultsL[k++]) / 256); - delayBufsL[i][allpassIdxL[i]] = tmpCarryover; - if (i != reverbFilterCountm1) - tmpCarryover = ((tmpBufL[i] * REVERB_REV_INDEX) / 256); + outTmp += ((historySample * reverbMultsL[k++]) >> 8); + *curDelaySample = tmpCarryover; + if (i != reverbFilterCount) + tmpCarryover = ((historySample * REVERB_REV_INDEX) >> 8); } else { - delayBufsL[i][allpassIdxL[i]] = (((tmpBufL[i] * (-REVERB_GAIN_INDEX)) / 256) + tmpCarryover); - tmpCarryover = (((delayBufsL[i][allpassIdxL[i]] * REVERB_GAIN_INDEX) / 256) + tmpBufL[i]); + *curDelaySample = (((historySample * (-REVERB_GAIN_INDEX)) >> 8) + tmpCarryover); + tmpCarryover = (((*curDelaySample * REVERB_GAIN_INDEX) >> 8) + historySample); } - if (++allpassIdxL[i] == delaysL[i]) - allpassIdxL[i] = 0; + if (++allpassIdxL[i] == delaysL[i]) allpassIdxL[i] = 0; } - s32 outUnclamped = ((outTmp * REVERB_WET_SIGNAL/* + inSample * REVERB_DRY_SIGNAL*/) / 256); + + s32 outUnclamped = ((outTmp * REVERB_WET_SIGNAL/* + inSample * REVERB_DRY_SIGNAL*/) >> 8); *outSample = CLAMP_S16(outUnclamped); } + +void initialize_better_reverb_buffers(void) { + delayBufsL = (s32**) soundAlloc(&gBetterReverbPool, BETTER_REVERB_PTR_SIZE); + delayBufsR = &delayBufsL[NUM_ALLPASS]; + delayBufsL[0] = (s32*) soundAlloc(&gBetterReverbPool, BETTER_REVERB_SIZE - BETTER_REVERB_PTR_SIZE); +} + +void clear_better_reverb_buffers(void) { + bzero(delayBufsL[0], (BETTER_REVERB_SIZE - BETTER_REVERB_PTR_SIZE)); + + bzero(allpassIdxL, sizeof(allpassIdxL)); + bzero(allpassIdxR, sizeof(allpassIdxR)); +} + +void set_better_reverb_buffers(void) { + s32 bufOffset = 0; + s32 i; + + for (i = 0; i < NUM_ALLPASS; ++i) { + delaysL[i] = (delaysBaselineL[i] / gReverbDownsampleRate); + delaysR[i] = (delaysBaselineR[i] / gReverbDownsampleRate); + delayBufsL[i] = (s32*) &delayBufsL[0][bufOffset]; + bufOffset += delaysL[i]; + delayBufsR[i] = (s32*) &delayBufsL[0][bufOffset]; // L and R buffers are interpolated adjacently in memory; not a bug + bufOffset += delaysR[i]; + } +} #endif #ifdef VERSION_EU @@ -361,6 +397,7 @@ void prepare_reverb_ring_buffer(s32 chunkLen, u32 updateIndex) { } #ifdef BETTER_REVERB else if (toggleBetterReverb) { + reverbFilterCount--; // Temporarily lower filter count for optimized bulk processing item = &gSynthesisReverb.items[gSynthesisReverb.curFrame][updateIndex]; if (gSoundMode == SOUND_MODE_MONO || monoReverb) { if (gReverbDownsampleRate != 1) { @@ -397,6 +434,7 @@ void prepare_reverb_ring_buffer(s32 chunkLen, u32 updateIndex) { reverb_samples(&gSynthesisReverb.ringBuffer.left[dstPos], &gSynthesisReverb.ringBuffer.right[dstPos], gSynthesisReverb.ringBuffer.left[dstPos], gSynthesisReverb.ringBuffer.right[dstPos]); } } + reverbFilterCount++; // Reset filter count to accurate numbers } #endif item = &gSynthesisReverb.items[gSynthesisReverb.curFrame][updateIndex]; @@ -556,18 +594,31 @@ u64 *synthesis_execute(u64 *cmdBuf, s32 *writtenCmds, s16 *aiBuf, s32 bufLen) { #ifdef BETTER_REVERB if (gIsConsole) { - reverbFilterCount = (s32) reverbFilterCountConsole; + reverbFilterCount = reverbFilterCountConsole; monoReverb = monoReverbConsole; } else { - reverbFilterCount = (s32) reverbFilterCountEmulator; + reverbFilterCount = reverbFilterCountEmulator; monoReverb = monoReverbEmulator; } if (reverbFilterCount > NUM_ALLPASS) { reverbFilterCount = NUM_ALLPASS; + } else if (reverbFilterCount < 3) { + reverbFilterCount = 3; } - reverbFilterCountm1 = (reverbFilterCount - 1); - if (reverbFilterCount < 3) { - reverbFilterCountm1 = 0; + + s32 filterCountDiv3 = reverbFilterCount / 3; + reverbFilterCount = filterCountDiv3 * 3; // reverbFilterCount should always be a multiple of 3. + + // Update reverbMultsL every audio frame just in case gReverbMults is ever to change. + for (i = 0; i < filterCountDiv3; ++i) { + reverbMultsL[i] = gReverbMultsL[i]; + reverbMultsR[i] = gReverbMultsR[i]; + } + + // If there's only one reverb multiplier set, adjust these to match so one channel doesn't end up potentially overpowering the other. + if (filterCountDiv3 == 1) { + reverbMultsL[0] = (reverbMultsR[0] + reverbMultsL[0]) / 2; + reverbMultsR[0] = reverbMultsL[0]; } #endif diff --git a/src/audio/synthesis.h b/src/audio/synthesis.h index 54403016..95236321 100644 --- a/src/audio/synthesis.h +++ b/src/audio/synthesis.h @@ -33,20 +33,16 @@ extern s8 betterReverbDownsampleConsole; extern s8 betterReverbDownsampleEmulator; -extern u32 reverbFilterCountConsole; -extern u32 reverbFilterCountEmulator; extern u8 monoReverbConsole; extern u8 monoReverbEmulator; +extern s32 reverbFilterCountConsole; +extern s32 reverbFilterCountEmulator; extern s32 betterReverbWindowsSize; extern s32 delaysBaselineL[NUM_ALLPASS]; extern s32 delaysBaselineR[NUM_ALLPASS]; -extern s32 delaysL[NUM_ALLPASS]; -extern s32 delaysR[NUM_ALLPASS]; -extern s32 reverbMultsL[NUM_ALLPASS / 3]; -extern s32 reverbMultsR[NUM_ALLPASS / 3]; -extern s32 **delayBufsL; -extern s32 **delayBufsR; +extern s32 gReverbMultsL[NUM_ALLPASS / 3]; +extern s32 gReverbMultsR[NUM_ALLPASS / 3]; extern u8 toggleBetterReverb; #define REVERB_WINDOW_SIZE_MAX 0x2000 @@ -149,6 +145,12 @@ extern struct SynthesisReverb gSynthesisReverb; extern s16 D_SH_803479B4; #endif +#ifdef BETTER_REVERB +void initialize_better_reverb_buffers(void); +void clear_better_reverb_buffers(void); +void set_better_reverb_buffers(void); +#endif + u64 *synthesis_execute(u64 *cmdBuf, s32 *writtenCmds, s16 *aiBuf, s32 bufLen); #if defined(VERSION_JP) || defined(VERSION_US) void note_init_volume(struct Note *note); From 6f6c055f1cab40f835df5a54a1337ab04f479291 Mon Sep 17 00:00:00 2001 From: gheskett Date: Wed, 29 Jun 2022 00:17:04 -0400 Subject: [PATCH 015/180] Suppress a gcc10 compiler warning for uninitialized variable --- src/audio/synthesis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/synthesis.c b/src/audio/synthesis.c index 09c5e636..f06e193b 100644 --- a/src/audio/synthesis.c +++ b/src/audio/synthesis.c @@ -932,7 +932,7 @@ u64 *synthesis_process_notes(s16 *aiBuf, s32 bufLen, u64 *cmd) { s32 s5Aligned; #endif s32 resampledTempLen; // spD8, spAC - u16 noteSamplesDmemAddrBeforeResampling; // spD6, spAA + u16 noteSamplesDmemAddrBeforeResampling = 0; // spD6, spAA #ifndef VERSION_EU From b864e0d6da561b13ee77257a556f23ede0ddacc4 Mon Sep 17 00:00:00 2001 From: arthurtilly <32559225+arthurtilly@users.noreply.github.com> Date: Wed, 6 Jul 2022 14:27:23 +1200 Subject: [PATCH 016/180] Adjust the static surface pool's size automatically per level and add static object collision (#444) --- data/behavior_data.c | 33 +++------ include/config/config_world.h | 17 ----- src/engine/surface_load.c | 111 +++++++++++++++++++++---------- src/engine/surface_load.h | 15 +++-- src/game/behavior_actions.h | 2 +- src/game/behaviors/ddd_sub.inc.c | 4 +- src/game/hud.c | 3 - src/game/object_list_processor.c | 3 + src/game/puppyprint.c | 7 +- 9 files changed, 108 insertions(+), 87 deletions(-) diff --git a/data/behavior_data.c b/data/behavior_data.c index 946a3808..0d6d75be 100644 --- a/data/behavior_data.c +++ b/data/behavior_data.c @@ -762,21 +762,17 @@ const BehaviorScript bhvTower[] = { BEGIN(OBJ_LIST_SURFACE), OR_INT(oFlags, (OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)), LOAD_COLLISION_DATA(wf_seg7_collision_tower), - SET_FLOAT(oCollisionDistance, 3000), SET_FLOAT(oDrawingDistance, 20000), - BEGIN_LOOP(), - CALL_NATIVE(load_object_collision_model), - END_LOOP(), + CALL_NATIVE(load_object_static_model), + BREAK(), }; const BehaviorScript bhvBulletBillCannon[] = { BEGIN(OBJ_LIST_SURFACE), OR_INT(oFlags, OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE), LOAD_COLLISION_DATA(wf_seg7_collision_bullet_bill_cannon), - SET_FLOAT(oCollisionDistance, 300), - BEGIN_LOOP(), - CALL_NATIVE(load_object_collision_model), - END_LOOP(), + CALL_NATIVE(load_object_static_model), + BREAK(), }; const BehaviorScript bhvWfBreakableWallRight[] = { @@ -892,9 +888,9 @@ const BehaviorScript bhvWarpPipe[] = { SET_FLOAT(oDrawingDistance, 16000), SET_INT(oIntangibleTimer, 0), SET_HITBOX(/*Radius*/ 70, /*Height*/ 50), + CALL_NATIVE(load_object_static_model), BEGIN_LOOP(), CALL_NATIVE(bhv_warp_loop), - CALL_NATIVE(load_object_collision_model), END_LOOP(), }; @@ -1683,9 +1679,9 @@ const BehaviorScript bhvWfSolidTowerPlatform[] = { BEGIN(OBJ_LIST_SURFACE), OR_INT(oFlags, (OBJ_FLAG_SET_FACE_YAW_TO_MOVE_YAW | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)), LOAD_COLLISION_DATA(wf_seg7_collision_platform), + CALL_NATIVE(load_object_static_model), BEGIN_LOOP(), CALL_NATIVE(bhv_wf_solid_tower_platform_loop), - CALL_NATIVE(load_object_collision_model), END_LOOP(), }; @@ -2668,23 +2664,17 @@ const BehaviorScript bhvBowserSubDoor[] = { OR_INT(oFlags, (OBJ_FLAG_ACTIVE_FROM_AFAR | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)), LOAD_COLLISION_DATA(ddd_seg7_collision_bowser_sub_door), SET_FLOAT(oDrawingDistance, 20000), - SET_FLOAT(oCollisionDistance, 20000), - BEGIN_LOOP(), - CALL_NATIVE(bhv_bowsers_sub_loop), - CALL_NATIVE(load_object_collision_model), - END_LOOP(), + CALL_NATIVE(bhv_bowsers_sub_init), + BREAK(), }; const BehaviorScript bhvBowsersSub[] = { BEGIN(OBJ_LIST_SURFACE), OR_INT(oFlags, (OBJ_FLAG_ACTIVE_FROM_AFAR | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)), SET_FLOAT(oDrawingDistance, 20000), - SET_FLOAT(oCollisionDistance, 20000), LOAD_COLLISION_DATA(ddd_seg7_collision_submarine), - BEGIN_LOOP(), - CALL_NATIVE(bhv_bowsers_sub_loop), - CALL_NATIVE(load_object_collision_model), - END_LOOP(), + CALL_NATIVE(bhv_bowsers_sub_init), + BREAK(), }; const BehaviorScript bhvSushiShark[] = { @@ -3777,15 +3767,14 @@ const BehaviorScript bhvMessagePanel[] = { BEGIN(OBJ_LIST_SURFACE), OR_INT(oFlags, (OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)), LOAD_COLLISION_DATA(wooden_signpost_seg3_collision_0302DD80), - SET_FLOAT(oCollisionDistance, 150), SET_INTERACT_TYPE(INTERACT_TEXT), SET_INT(oInteractionSubtype, INT_SUBTYPE_SIGN), DROP_TO_FLOOR(), SET_HITBOX(/*Radius*/ 150, /*Height*/ 80), SET_INT(oWoodenPostTotalMarioAngle, 0), + CALL_NATIVE(load_object_static_model), BEGIN_LOOP(), SET_INT(oIntangibleTimer, 0), - CALL_NATIVE(load_object_collision_model), SET_INT(oInteractStatus, INT_STATUS_NONE), END_LOOP(), }; diff --git a/include/config/config_world.h b/include/config/config_world.h index 173a75da..2840d33a 100644 --- a/include/config/config_world.h +++ b/include/config/config_world.h @@ -12,7 +12,6 @@ */ // #define WORLD_SCALE 1 - /** * 0: Regular bounds * Same as vanilla sm64, boundaries are (-8192 to 8191) @@ -29,10 +28,6 @@ * level boundaries are 4 times as big (-32768 to 32767) * Collision calculations remain as fast as vanilla, at the cost of using far more RAM (16 times vanilla). * 64x64 collision cells. - * - * If you see "SURFACE POOL FULL" or "SURFACE NODE POOL FULL" in game, you should increase - * SURFACE_POOL_SIZE or SURFACE_NODE_POOL_SIZE, respectively, or reduce the amount of - * collision surfaces in your level. */ // Set this to the extended bounds mode you want, then do "make clean". @@ -70,18 +65,6 @@ STATIC_ASSERT(((EXTENDED_BOUNDS_MODE >= 0) && (EXTENDED_BOUNDS_MODE <= 3)), "You // The amount of cells in each axis in an area. #define NUM_CELLS (2 * LEVEL_BOUNDARY_MAX / CELL_SIZE) -// The maximum amount of collision surfaces (static and dynamic combined) -#define SURFACE_POOL_SIZE (LEVEL_BOUNDARY_MAX / 2) // Vanilla: 2300 -// The maximum amount of SurfaceNodes (static and dynamic combined). -// Each cell has a SurfaceNode for every surface which intersects it, -// so each cell a Surface intersects with gets its own SurfaceNode, -// so larger surfaces means more SurfaceNodes. -// Multiply SURFACE_POOL_SIZE by the average amount of cells the surfaces intersect. -#define SURFACE_NODE_POOL_SIZE (SURFACE_POOL_SIZE * 4) // Vanilla: 7000 - -// Flags for error messages. -#define NOT_ENOUGH_ROOM_FOR_SURFACES (1 << 0) -#define NOT_ENOUGH_ROOM_FOR_NODES (1 << 1) // Use this to convert game units to cell coordinates. #define GET_CELL_COORD(p) ((((s32)(p) + LEVEL_BOUNDARY_MAX) / CELL_SIZE) & (NUM_CELLS - 1)) diff --git a/src/engine/surface_load.c b/src/engine/surface_load.c index 786c97f0..9da3b661 100644 --- a/src/engine/surface_load.c +++ b/src/engine/surface_load.c @@ -25,35 +25,36 @@ SpatialPartitionCell gStaticSurfacePartition[NUM_CELLS][NUM_CELLS]; SpatialPartitionCell gDynamicSurfacePartition[NUM_CELLS][NUM_CELLS]; /** - * Pools of data to contain either surface nodes or surfaces. + * Pools of data that can contain either surface nodes or surfaces. + * The static surface pool is resized to be exactly the amount of memory needed for the level geometry. + * The dynamic surface pool is set at a fixed length and cleared every frame. */ -struct SurfaceNode *sSurfaceNodePool; -struct Surface *sSurfacePool; +void *gCurrStaticSurfacePool; +void *gDynamicSurfacePool; /** - * The size of the surface node pool (SURFACE_NODE_POOL_SIZE). + * The end of the data currently allocated to the surface pools. */ -s32 sSurfaceNodePoolSize = SURFACE_NODE_POOL_SIZE; +void *gCurrStaticSurfacePoolEnd; +void *gDynamicSurfacePoolEnd; /** - * The size of the surface pool (SURFACE_POOL_SIZE). + * The amount of data currently allocated to static surfaces. */ -s32 sSurfacePoolSize = SURFACE_POOL_SIZE; - -u8 gSurfacePoolError = 0x0; +u32 gTotalStaticSurfaceData; /** * Allocate the part of the surface node pool to contain a surface node. */ -static struct SurfaceNode *alloc_surface_node(void) { - struct SurfaceNode *node = &sSurfaceNodePool[gSurfaceNodesAllocated++]; +static struct SurfaceNode *alloc_surface_node(u32 dynamic) { + struct SurfaceNode **poolEnd = (struct SurfaceNode **)(dynamic ? &gDynamicSurfacePoolEnd : &gCurrStaticSurfacePoolEnd); + + struct SurfaceNode *node = *poolEnd; + (*poolEnd)++; + gSurfaceNodesAllocated++; node->next = NULL; - if (gSurfaceNodesAllocated >= sSurfaceNodePoolSize) { - gSurfacePoolError |= NOT_ENOUGH_ROOM_FOR_NODES; - } - return node; } @@ -61,13 +62,12 @@ static struct SurfaceNode *alloc_surface_node(void) { * Allocate the part of the surface pool to contain a surface and * initialize the surface. */ -static struct Surface *alloc_surface(void) { - - struct Surface *surface = &sSurfacePool[gSurfacesAllocated++]; - - if (gSurfacesAllocated >= sSurfacePoolSize) { - gSurfacePoolError |= NOT_ENOUGH_ROOM_FOR_SURFACES; - } +static struct Surface *alloc_surface(u32 dynamic) { + struct Surface **poolEnd = (struct Surface **)(dynamic ? &gDynamicSurfacePoolEnd : &gCurrStaticSurfacePoolEnd); + + struct Surface *surface = *poolEnd; + (*poolEnd)++; + gSurfacesAllocated++; surface->type = SURFACE_DEFAULT; surface->force = 0; @@ -98,6 +98,7 @@ static void clear_spatial_partition(SpatialPartitionCell *cells) { * Clears the static (level) surface partitions for new use. */ static void clear_static_surfaces(void) { + gTotalStaticSurfaceData = 0; clear_spatial_partition(&gStaticSurfacePartition[0][0]); } @@ -128,7 +129,7 @@ static void add_surface_to_cell(s32 dynamic, s32 cellX, s32 cellZ, struct Surfac s32 surfacePriority = surface->upperY * sortDir; - struct SurfaceNode *newNode = alloc_surface_node(); + struct SurfaceNode *newNode = alloc_surface_node(dynamic); newNode->surface = surface; if (dynamic) { @@ -234,8 +235,9 @@ static void add_surface(struct Surface *surface, s32 dynamic) { * Initializes a Surface struct using the given vertex data * @param vertexData The raw data containing vertex positions * @param vertexIndices Helper which tells positions in vertexData to start reading vertices + * @param dynamic If the surface belongs to an object or not */ -static struct Surface *read_surface_data(TerrainData *vertexData, TerrainData **vertexIndices) { +static struct Surface *read_surface_data(TerrainData *vertexData, TerrainData **vertexIndices, u32 dynamic) { Vec3t v[3]; Vec3f n; Vec3t offset; @@ -251,7 +253,7 @@ static struct Surface *read_surface_data(TerrainData *vertexData, TerrainData ** vec3f_normalize(n); - struct Surface *surface = alloc_surface(); + struct Surface *surface = alloc_surface(dynamic); vec3s_copy(surface->vertex1, v[0]); vec3s_copy(surface->vertex2, v[1]); @@ -338,7 +340,7 @@ static void load_static_surfaces(TerrainData **data, TerrainData *vertexData, s3 room = *(*surfaceRooms)++; } - surface = read_surface_data(vertexData, data); + surface = read_surface_data(vertexData, data, FALSE); if (surface != NULL) { surface->room = room; surface->type = surfaceType; @@ -396,11 +398,11 @@ static void load_environmental_regions(TerrainData **data) { } /** - * Allocate some of the main pool for surfaces (2300 surf) and for surface nodes (7000 nodes). + * Allocate the dynamic surface pool for object collision. */ void alloc_surface_pools(void) { - sSurfaceNodePool = main_pool_alloc(sSurfaceNodePoolSize * sizeof(struct SurfaceNode), MEMORY_POOL_LEFT); - sSurfacePool = main_pool_alloc(sSurfacePoolSize * sizeof(struct Surface), MEMORY_POOL_LEFT); + gDynamicSurfacePool = main_pool_alloc(DYNAMIC_SURFACE_POOL_SIZE, MEMORY_POOL_LEFT); + gDynamicSurfacePoolEnd = gDynamicSurfacePool; gCCMEnteredSlide = FALSE; reset_red_coins_collected(); @@ -470,6 +472,7 @@ u32 get_area_terrain_size(TerrainData *data) { void load_area_terrain(s32 index, TerrainData *data, RoomData *surfaceRooms, s16 *macroObjects) { s32 terrainLoadType; TerrainData *vertexData = NULL; + u32 surfacePoolData; // Initialize the data for this. gEnvironmentRegions = NULL; @@ -478,6 +481,10 @@ void load_area_terrain(s32 index, TerrainData *data, RoomData *surfaceRooms, s16 clear_static_surfaces(); + // Initialise a new surface pool for this block of static surface data + gCurrStaticSurfacePool = main_pool_alloc(main_pool_available() - 0x10, MEMORY_POOL_LEFT); + gCurrStaticSurfacePoolEnd = gCurrStaticSurfacePool; + // A while loop iterating through each section of the level data. Sections of data // are prefixed by a terrain "type." This type is reused for surfaces as the surface // type. @@ -514,6 +521,10 @@ void load_area_terrain(s32 index, TerrainData *data, RoomData *surfaceRooms, s16 } } + surfacePoolData = (uintptr_t)gCurrStaticSurfacePoolEnd - (uintptr_t)gCurrStaticSurfacePool; + gTotalStaticSurfaceData += surfacePoolData; + main_pool_realloc(gCurrStaticSurfacePool, surfacePoolData); + gNumStaticSurfaceNodes = gSurfaceNodesAllocated; gNumStaticSurfaces = gSurfacesAllocated; } @@ -526,6 +537,8 @@ void clear_dynamic_surfaces(void) { gSurfacesAllocated = gNumStaticSurfaces; gSurfaceNodesAllocated = gNumStaticSurfaceNodes; + gDynamicSurfacePoolEnd = gDynamicSurfacePool; + clear_spatial_partition(&gDynamicSurfacePartition[0][0]); } } @@ -566,7 +579,7 @@ void transform_object_vertices(TerrainData **data, TerrainData *vertexData) { /** * Load in the surfaces for the o. This includes setting the flags, exertion, and room. */ -void load_object_surfaces(TerrainData **data, TerrainData *vertexData) { +void load_object_surfaces(TerrainData **data, TerrainData *vertexData, u32 dynamic) { s32 i; s32 surfaceType = *(*data)++; @@ -576,14 +589,14 @@ void load_object_surfaces(TerrainData **data, TerrainData *vertexData) { TerrainData hasForce = surface_has_force(surfaceType); #endif - s32 flags = surf_has_no_cam_collision(surfaceType) | SURFACE_FLAG_DYNAMIC; + s32 flags = surf_has_no_cam_collision(surfaceType) | (dynamic ? SURFACE_FLAG_DYNAMIC : 0); // The DDD warp is initially loaded at the origin and moved to the proper // position in paintings.c and doesn't update its room, so set it here. RoomData room = (o->behavior == segmented_to_virtual(bhvDddWarp)) ? 5 : 0; for (i = 0; i < numSurfaces; i++) { - struct Surface *surface = read_surface_data(vertexData, data); + struct Surface *surface = read_surface_data(vertexData, data, dynamic); if (surface != NULL) { surface->object = o; @@ -601,7 +614,7 @@ void load_object_surfaces(TerrainData **data, TerrainData *vertexData) { surface->flags |= flags; surface->room = room; - add_surface(surface, TRUE); + add_surface(surface, dynamic); } #ifdef ALL_SURFACES_HAVE_FORCE @@ -673,8 +686,38 @@ void load_object_collision_model(void) { // TERRAIN_LOAD_CONTINUE acts as an "end" to the terrain data. while (*collisionData != TERRAIN_LOAD_CONTINUE) { - load_object_surfaces(&collisionData, vertexData); + load_object_surfaces(&collisionData, vertexData, TRUE); } } COND_BIT((marioDist < o->oDrawingDistance), o->header.gfx.node.flags, GRAPH_RENDER_ACTIVE); } + +/** + * Transform an object's vertices and add them to the static surface pool. + */ +void load_object_static_model(void) { + TerrainData vertexData[600]; + TerrainData *collisionData = o->collisionData; + u32 surfacePoolData; + + // Initialise a new surface pool for this block of surface data + gCurrStaticSurfacePool = main_pool_alloc(main_pool_available() - 0x10, MEMORY_POOL_LEFT); + gCurrStaticSurfacePoolEnd = gCurrStaticSurfacePool; + gSurfaceNodesAllocated = gNumStaticSurfaceNodes; + gSurfacesAllocated = gNumStaticSurfaces; + + collisionData++; + transform_object_vertices(&collisionData, vertexData); + + // TERRAIN_LOAD_CONTINUE acts as an "end" to the terrain data. + while (*collisionData != TERRAIN_LOAD_CONTINUE) { + load_object_surfaces(&collisionData, vertexData, FALSE); + } + + surfacePoolData = (uintptr_t)gCurrStaticSurfacePoolEnd - (uintptr_t)gCurrStaticSurfacePool; + gTotalStaticSurfaceData += surfacePoolData; + main_pool_realloc(gCurrStaticSurfacePool, surfacePoolData); + + gNumStaticSurfaceNodes = gSurfaceNodesAllocated; + gNumStaticSurfaces = gSurfacesAllocated; +} diff --git a/src/engine/surface_load.h b/src/engine/surface_load.h index adbd56e6..fcfc3c7f 100644 --- a/src/engine/surface_load.h +++ b/src/engine/surface_load.h @@ -11,7 +11,10 @@ #define NORMAL_FLOOR_THRESHOLD 0.01f #define NORMAL_CEIL_THRESHOLD -NORMAL_FLOOR_THRESHOLD -extern u8 gSurfacePoolError; +/** + * The size of the dynamic surface pool, in bytes. + */ +#define DYNAMIC_SURFACE_POOL_SIZE 0x8000 struct SurfaceNode { struct SurfaceNode *next; @@ -30,10 +33,11 @@ typedef struct SurfaceNode SpatialPartitionCell[NUM_SPATIAL_PARTITIONS]; extern SpatialPartitionCell gStaticSurfacePartition[NUM_CELLS][NUM_CELLS]; extern SpatialPartitionCell gDynamicSurfacePartition[NUM_CELLS][NUM_CELLS]; -extern struct SurfaceNode *sSurfaceNodePool; -extern struct Surface *sSurfacePool; -extern s32 sSurfaceNodePoolSize; -extern s32 sSurfacePoolSize; +extern void *gCurrStaticSurfacePool; +extern void *gDynamicSurfacePool; +extern void *gCurrStaticSurfacePoolEnd; +extern void *gDynamicSurfacePoolEnd; +extern u32 gTotalStaticSurfaceData; void alloc_surface_pools(void); #ifdef NO_SEGMENTED_MEMORY @@ -42,5 +46,6 @@ u32 get_area_terrain_size(TerrainData *data); void load_area_terrain(s32 index, TerrainData *data, RoomData *surfaceRooms, MacroObject *macroObjects); void clear_dynamic_surfaces(void); void load_object_collision_model(void); +void load_object_static_model(void); #endif // SURFACE_LOAD_H diff --git a/src/game/behavior_actions.h b/src/game/behavior_actions.h index 02a9d446..0487d542 100644 --- a/src/game/behavior_actions.h +++ b/src/game/behavior_actions.h @@ -204,7 +204,7 @@ void bhv_bub_loop(void); void bhv_exclamation_box_loop(void); void bhv_rotating_exclamation_mark_loop(void); void bhv_sound_spawner_init(void); -void bhv_bowsers_sub_loop(void); +void bhv_bowsers_sub_init(void); void bhv_sushi_shark_loop(void); void bhv_jrb_sliding_box_loop(void); void bhv_ship_part_3_loop(void); diff --git a/src/game/behaviors/ddd_sub.inc.c b/src/game/behaviors/ddd_sub.inc.c index 2d59a223..42350138 100644 --- a/src/game/behaviors/ddd_sub.inc.c +++ b/src/game/behaviors/ddd_sub.inc.c @@ -1,7 +1,9 @@ // ddd_sub.inc.c -void bhv_bowsers_sub_loop(void) { +void bhv_bowsers_sub_init(void) { if (save_file_get_flags() & (SAVE_FLAG_HAVE_KEY_2 | SAVE_FLAG_UNLOCKED_UPSTAIRS_DOOR)) { obj_mark_for_deletion(o); + } else { + load_object_static_model(); } } diff --git a/src/game/hud.c b/src/game/hud.c index 292ccef8..fd4a39bd 100644 --- a/src/game/hud.c +++ b/src/game/hud.c @@ -599,9 +599,6 @@ void render_hud(void) { render_hud_timer(); } - if (gSurfacePoolError & NOT_ENOUGH_ROOM_FOR_SURFACES) print_text(10, 40, "SURFACE POOL FULL"); - if (gSurfacePoolError & NOT_ENOUGH_ROOM_FOR_NODES) print_text(10, 60, "SURFACE NODE POOL FULL"); - #ifdef VANILLA_STYLE_CUSTOM_DEBUG if (gCustomDebugMode) { render_debug_mode(); diff --git a/src/game/object_list_processor.c b/src/game/object_list_processor.c index 6d20b4b7..4ee6d7d4 100644 --- a/src/game/object_list_processor.c +++ b/src/game/object_list_processor.c @@ -552,6 +552,9 @@ void update_terrain_objects(void) { gObjectCounter += update_objects_in_list(&gObjectLists[OBJ_LIST_SURFACE]); profiler_update(PROFILER_TIME_DYNAMIC); + + // If the dynamic surface pool has overflowed, throw an error. + assert((uintptr_t)gDynamicSurfacePoolEnd <= (uintptr_t)gDynamicSurfacePool + DYNAMIC_SURFACE_POOL_SIZE, "Dynamic surface pool size exceeded"); } /** diff --git a/src/game/puppyprint.c b/src/game/puppyprint.c index d30d13e9..141d2ed8 100644 --- a/src/game/puppyprint.c +++ b/src/game/puppyprint.c @@ -126,8 +126,7 @@ void puppyprint_calculate_ram_usage(void) { // gEffectsMemoryPool is 0x4000, gObjectMemoryPool is 0x800. Epic C limitations mean I can't just sizeof their values :) ramsizeSegment[5] = (EFFECTS_MEMORY_POOL + OBJECT_MEMORY_POOL + EFFECTS_MEMORY_POOL + OBJECT_MEMORY_POOL); - ramsizeSegment[6] = ((SURFACE_NODE_POOL_SIZE * sizeof(struct SurfaceNode)) - + ( SURFACE_POOL_SIZE * sizeof(struct Surface ))); + ramsizeSegment[6] = gTotalStaticSurfaceData + DYNAMIC_SURFACE_POOL_SIZE; ramsizeSegment[7] = gAudioHeapSize; } @@ -454,8 +453,8 @@ extern s16 gVisualSurfaceCount; void puppyprint_render_collision(void) { char textBytes[200]; - sprintf(textBytes, "Pool Size: %X#Node Size: %X#Surfaces Allocated: %d#Nodes Allocated: %d#Current Cell: %d", (SURFACE_NODE_POOL_SIZE * sizeof(struct SurfaceNode)), (SURFACE_POOL_SIZE * sizeof(struct Surface)), - gSurfacesAllocated, gSurfaceNodesAllocated, gVisualSurfaceCount); + sprintf(textBytes, "Static Pool Size: 0x%X#Dynamic Pool Size: 0x%X#Dynamic Pool Used: 0x%X#Surfaces Allocated: %d#Nodes Allocated: %d", gTotalStaticSurfaceData, DYNAMIC_SURFACE_POOL_SIZE,(uintptr_t)gDynamicSurfacePoolEnd - (uintptr_t)gDynamicSurfacePool, + gSurfacesAllocated, gSurfaceNodesAllocated); print_small_text(304, 60, textBytes, PRINT_TEXT_ALIGN_RIGHT, PRINT_ALL, 1); From 0eb42f2f1885002be8c1bf1944f3f3ca1312fcb3 Mon Sep 17 00:00:00 2001 From: Denis Kopyrin Date: Wed, 6 Jul 2022 10:54:07 +0800 Subject: [PATCH 017/180] Fixed function addresses being incorrect in crash screen stacktrace (#333) --- sm64.ld | 2 -- 1 file changed, 2 deletions(-) diff --git a/sm64.ld b/sm64.ld index 94841950..ad668c81 100755 --- a/sm64.ld +++ b/sm64.ld @@ -147,8 +147,6 @@ SECTIONS /* hardcoded symbols to satisfy preliminary link for map parser */ #ifndef DEBUG_MAP_STACKTRACE - parse_map = MAP_PARSER_ADDRESS; - find_function_in_stack = MAP_PARSER_ADDRESS; _mapDataSegmentRomStart = 0; gMapEntries = 0; gMapEntrySize = 0; From f6bb8b5aabf6bbc956540b30135e1c033337bb78 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Tue, 19 Jul 2022 03:22:22 +0100 Subject: [PATCH 018/180] Clear only used dynamic cells (#451) Clear only used dynamic cells --- src/engine/surface_load.c | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/engine/surface_load.c b/src/engine/surface_load.c index 9da3b661..b1201c14 100644 --- a/src/engine/surface_load.c +++ b/src/engine/surface_load.c @@ -23,6 +23,14 @@ */ SpatialPartitionCell gStaticSurfacePartition[NUM_CELLS][NUM_CELLS]; SpatialPartitionCell gDynamicSurfacePartition[NUM_CELLS][NUM_CELLS]; +struct CellCoords { + u8 z; + u8 x; + u8 partition; +}; +struct CellCoords sCellsUsed[NUM_CELLS]; +u16 sNumCellsUsed; +u8 sClearAllCells; /** * Pools of data that can contain either surface nodes or surfaces. @@ -134,6 +142,16 @@ static void add_surface_to_cell(s32 dynamic, s32 cellX, s32 cellZ, struct Surfac if (dynamic) { list = &gDynamicSurfacePartition[cellZ][cellX][listIndex]; + if (sNumCellsUsed >= sizeof(sCellsUsed) / sizeof(struct CellCoords)) { + sClearAllCells = TRUE; + } else { + if (list->next == NULL) { + sCellsUsed[sNumCellsUsed].z = cellZ; + sCellsUsed[sNumCellsUsed].x = cellX; + sCellsUsed[sNumCellsUsed].partition = listIndex; + sNumCellsUsed++; + } + } } else { list = &gStaticSurfacePartition[cellZ][cellX][listIndex]; } @@ -478,6 +496,9 @@ void load_area_terrain(s32 index, TerrainData *data, RoomData *surfaceRooms, s16 gEnvironmentRegions = NULL; gSurfaceNodesAllocated = 0; gSurfacesAllocated = 0; + bzero(&sCellsUsed, sizeof(sCellsUsed)); + sNumCellsUsed = 0; + sClearAllCells = TRUE; clear_static_surfaces(); @@ -536,10 +557,16 @@ void clear_dynamic_surfaces(void) { if (!(gTimeStopState & TIME_STOP_ACTIVE)) { gSurfacesAllocated = gNumStaticSurfaces; gSurfaceNodesAllocated = gNumStaticSurfaceNodes; - gDynamicSurfacePoolEnd = gDynamicSurfacePool; - - clear_spatial_partition(&gDynamicSurfacePartition[0][0]); + if (sClearAllCells) { + clear_spatial_partition(&gDynamicSurfacePartition[0][0]); + } else { + for (u32 i = 0; i < sNumCellsUsed; i++) { + gDynamicSurfacePartition[sCellsUsed[i].z][sCellsUsed[i].x][sCellsUsed[i].partition].next = NULL; + } + } + sNumCellsUsed = 0; + sClearAllCells = FALSE; } } From 1820b146c01ec9ab664a5fe28b4e5694e51e7c17 Mon Sep 17 00:00:00 2001 From: arthurtilly <32559225+arthurtilly@users.noreply.github.com> Date: Tue, 19 Jul 2022 23:24:16 +1200 Subject: [PATCH 019/180] Fixed memory leak between areas from automatic surface pool size (#452) * fixed mem leak * Add comment to second pop --- src/engine/level_script.c | 3 +++ src/game/area.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/engine/level_script.c b/src/engine/level_script.c index 7e3fa0b9..8256235f 100644 --- a/src/engine/level_script.c +++ b/src/engine/level_script.c @@ -360,6 +360,8 @@ static void level_cmd_clear_level(void) { clear_area_graph_nodes(); clear_areas(); main_pool_pop_state(); + // the game does a push on level load and a pop on level unload, we need to add another push to store state after the level has been loaded, so one more pop is needed + main_pool_pop_state(); unmap_tlbs(); sCurrentCmd = CMD_NEXT; @@ -386,6 +388,7 @@ static void level_cmd_free_level_pool(void) { break; } } + main_pool_push_state(); sCurrentCmd = CMD_NEXT; } diff --git a/src/game/area.c b/src/game/area.c index de8fbce7..ea53b1ca 100644 --- a/src/game/area.c +++ b/src/game/area.c @@ -232,6 +232,8 @@ void load_area(s32 index) { if (gCurrentArea == NULL && gAreaData[index].graphNode != NULL) { gCurrentArea = &gAreaData[index]; gCurrAreaIndex = gCurrentArea->index; + main_pool_pop_state(); + main_pool_push_state(); if (gCurrentArea->terrainData != NULL) { load_area_terrain(index, gCurrentArea->terrainData, gCurrentArea->surfaceRooms, From 5a9b5a9751e86871d9a461eb7b8b78622f307f36 Mon Sep 17 00:00:00 2001 From: Reonu Date: Tue, 19 Jul 2022 14:04:54 +0100 Subject: [PATCH 020/180] 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 Co-authored-by: Arceveti Co-authored-by: thecozies --- Makefile | 22 +- actors/bird/model.inc.c | 44 +- actors/blargg/model.inc.c | 40 +- actors/blue_coin_switch/model.inc.c | 8 +- actors/blue_fish/model.inc.c | 12 +- actors/bobomb/model.inc.c | 24 +- actors/bomb/model.inc.c | 8 +- actors/boo/model.inc.c | 8 +- actors/boo_castle/model.inc.c | 8 +- actors/book/model.inc.c | 8 +- actors/bookend/model.inc.c | 64 +-- actors/bowser/model.inc.c | 68 ++-- actors/bowser_key/model.inc.c | 8 +- actors/breakable_box/model.inc.c | 8 +- actors/bub/model.inc.c | 32 +- actors/bubba/model.inc.c | 64 +-- actors/bullet_bill/model.inc.c | 8 +- actors/bully/model.inc.c | 28 +- actors/cannon_barrel/model.inc.c | 16 +- actors/cannon_base/model.inc.c | 16 +- actors/cannon_lid/model.inc.c | 8 +- actors/capswitch/model.inc.c | 48 +-- actors/chain_chomp/model.inc.c | 20 +- actors/chair/model.inc.c | 36 +- actors/checkerboard_platform/model.inc.c | 8 +- actors/chillychief/model.inc.c | 28 +- actors/chuckya/model.inc.c | 60 +-- actors/clam_shell/model.inc.c | 24 +- actors/cyan_fish/model.inc.c | 24 +- actors/dirt/model.inc.c | 48 +-- actors/door/model.inc.c | 88 ++-- actors/dorrie/model.inc.c | 88 +--- actors/exclamation_box/model.inc.c | 12 +- actors/exclamation_box_outline/model.inc.c | 40 +- actors/eyerok/model.inc.c | 68 +--- actors/flyguy/model.inc.c | 76 +--- actors/goomba/model.inc.c | 48 +-- actors/haunted_cage/model.inc.c | 32 +- actors/heave_ho/model.inc.c | 120 ++---- actors/hoot/model.inc.c | 168 ++------ actors/king_bobomb/model.inc.c | 60 +-- actors/klepto/model.inc.c | 144 ++----- actors/koopa/model.inc.c | 173 +++----- actors/koopa_flag/model.inc.c | 28 +- actors/koopa_shell/model.inc.c | 60 +-- actors/lakitu_cameraman/model.inc.c | 116 ++---- actors/lakitu_enemy/model.inc.c | 64 +-- actors/mad_piano/model.inc.c | 60 +-- actors/manta/model.inc.c | 36 +- actors/mario/model.inc.c | 380 ++++++++---------- actors/mario_cap/model.inc.c | 32 +- actors/metal_box/model.inc.c | 8 +- actors/mips/model.inc.c | 180 +++------ actors/moneybag/model.inc.c | 48 +-- actors/monty_mole/model.inc.c | 96 +---- actors/peach/model.inc.c | 148 ++----- actors/penguin/model.inc.c | 80 ++-- actors/piranha_plant/model.inc.c | 68 ++-- actors/poundable_pole/model.inc.c | 8 +- actors/purple_switch/model.inc.c | 8 +- actors/scuttlebug/model.inc.c | 24 +- actors/seaweed/model.inc.c | 20 +- actors/skeeter/model.inc.c | 32 +- actors/small_key/model.inc.c | 28 +- actors/snowman/model.inc.c | 32 +- actors/snufit/model.inc.c | 40 +- actors/spindrift/model.inc.c | 56 +-- actors/spiny/model.inc.c | 72 ++-- actors/spiny_egg/model.inc.c | 44 +- actors/springboard/model.inc.c | 16 +- actors/star/model.inc.c | 12 +- actors/swoop/model.inc.c | 24 +- actors/test_platform/model.inc.c | 7 +- actors/thwomp/model.inc.c | 8 +- actors/toad/model.inc.c | 64 +-- actors/tornado/model.inc.c | 8 +- actors/transparent_star/model.inc.c | 8 +- actors/treasure_chest/model.inc.c | 12 +- actors/tree/model.inc.c | 16 +- actors/ukiki/model.inc.c | 140 ++----- actors/unagi/model.inc.c | 32 -- actors/warp_pipe/model.inc.c | 24 +- actors/water_bubble/model.inc.c | 8 +- actors/water_mine/model.inc.c | 8 +- actors/water_ring/model.inc.c | 8 +- actors/whomp/model.inc.c | 40 +- actors/wiggler_body/model.inc.c | 36 +- actors/wiggler_head/model.inc.c | 40 +- actors/wooden_signpost/model.inc.c | 16 +- actors/yoshi/model.inc.c | 140 +++---- bin/debug_level_select.c | 70 +--- bin/segment2.c | 16 +- include/color_presets.h | 12 +- include/config/config_debug.h | 2 +- levels/bbh/areas/1/1/model.inc.c | 16 +- levels/bbh/areas/1/12/model.inc.c | 16 +- levels/bbh/areas/1/14/model.inc.c | 8 +- levels/bbh/areas/1/16/model.inc.c | 24 +- levels/bbh/areas/1/18/model.inc.c | 48 +-- levels/bbh/areas/1/19/model.inc.c | 8 +- levels/bbh/areas/1/20/model.inc.c | 8 +- levels/bbh/areas/1/22/model.inc.c | 16 +- levels/bbh/areas/1/24/model.inc.c | 24 +- levels/bbh/areas/1/28/model.inc.c | 8 +- levels/bbh/areas/1/29/model.inc.c | 8 +- levels/bbh/areas/1/3/model.inc.c | 16 +- levels/bbh/areas/1/31/model.inc.c | 16 +- levels/bbh/areas/1/33/model.inc.c | 16 +- levels/bbh/areas/1/34/model.inc.c | 24 +- levels/bbh/areas/1/35/model.inc.c | 80 ++-- levels/bbh/areas/1/36/model.inc.c | 8 +- levels/bbh/areas/1/37/model.inc.c | 16 +- levels/bbh/areas/1/7/model.inc.c | 24 +- levels/bbh/areas/1/8/model.inc.c | 8 +- levels/bbh/coffin/model.inc.c | 8 +- levels/bbh/merry_go_round/model.inc.c | 8 +- levels/bbh/moving_bookshelf/model.inc.c | 8 +- levels/bbh/staircase_step/model.inc.c | 8 +- levels/bbh/tilting_trap_platform/model.inc.c | 8 +- levels/bbh/tumbling_platform_far/model.inc.c | 8 +- levels/bbh/tumbling_platform_near/model.inc.c | 8 +- levels/bitdw/ferris_wheel_axle/model.inc.c | 8 +- levels/bitfs/areas/1/18/model.inc.c | 48 +-- levels/bits/areas/1/22/model.inc.c | 24 +- levels/bits/areas/1/24/model.inc.c | 8 +- levels/bob/areas/1/1/model.inc.c | 8 +- levels/bob/areas/1/2/model.inc.c | 8 +- levels/bob/areas/1/5/model.inc.c | 20 +- levels/bob/areas/1/6/model.inc.c | 8 +- levels/bob/seesaw_platform/model.inc.c | 8 +- levels/bowser_1/areas/1/1/model.inc.c | 8 +- levels/bowser_3/areas/1/1/model.inc.c | 16 +- .../bowser_3/areas/1/bomb_stand/model.inc.c | 8 +- .../bowser_3/falling_platform_1/model.inc.c | 16 +- .../bowser_3/falling_platform_10/model.inc.c | 16 +- .../bowser_3/falling_platform_2/model.inc.c | 16 +- .../bowser_3/falling_platform_3/model.inc.c | 16 +- .../bowser_3/falling_platform_4/model.inc.c | 16 +- .../bowser_3/falling_platform_5/model.inc.c | 16 +- .../bowser_3/falling_platform_6/model.inc.c | 16 +- .../bowser_3/falling_platform_7/model.inc.c | 16 +- .../bowser_3/falling_platform_8/model.inc.c | 16 +- .../bowser_3/falling_platform_9/model.inc.c | 16 +- levels/castle_grounds/areas/1/11/model.inc.c | 32 +- levels/castle_grounds/areas/1/2/model.inc.c | 104 ++--- levels/castle_grounds/areas/1/9/model.inc.c | 44 +- levels/castle_inside/areas/1/10/model.inc.c | 8 +- levels/castle_inside/areas/1/12/model.inc.c | 8 +- levels/castle_inside/areas/1/13/model.inc.c | 16 +- levels/castle_inside/areas/1/14/model.inc.c | 8 +- levels/castle_inside/areas/1/15/model.inc.c | 16 +- levels/castle_inside/areas/1/17/model.inc.c | 8 +- levels/castle_inside/areas/1/18/model.inc.c | 44 +- levels/castle_inside/areas/1/19/model.inc.c | 8 +- levels/castle_inside/areas/1/2/model.inc.c | 36 +- levels/castle_inside/areas/1/20/model.inc.c | 8 +- levels/castle_inside/areas/1/21/model.inc.c | 8 +- levels/castle_inside/areas/1/23/model.inc.c | 8 +- levels/castle_inside/areas/1/24/model.inc.c | 24 +- levels/castle_inside/areas/1/25/model.inc.c | 8 +- levels/castle_inside/areas/1/26/model.inc.c | 16 +- levels/castle_inside/areas/1/4/model.inc.c | 60 +-- levels/castle_inside/areas/1/6/model.inc.c | 8 +- levels/castle_inside/areas/1/7/model.inc.c | 8 +- levels/castle_inside/areas/1/8/model.inc.c | 16 +- levels/castle_inside/areas/1/9/model.inc.c | 40 +- levels/castle_inside/areas/2/1/model.inc.c | 16 +- levels/castle_inside/areas/2/12/model.inc.c | 8 +- levels/castle_inside/areas/2/13/model.inc.c | 28 +- levels/castle_inside/areas/2/14/model.inc.c | 44 +- levels/castle_inside/areas/2/15/model.inc.c | 20 +- levels/castle_inside/areas/2/2/model.inc.c | 8 +- levels/castle_inside/areas/2/3/model.inc.c | 20 +- levels/castle_inside/areas/2/4/model.inc.c | 8 +- levels/castle_inside/areas/2/6/model.inc.c | 8 +- levels/castle_inside/areas/2/8/model.inc.c | 28 +- levels/castle_inside/areas/2/9/model.inc.c | 96 ++--- .../areas/2/pendulum/model.inc.c | 16 +- levels/castle_inside/areas/3/1/model.inc.c | 72 +--- levels/castle_inside/areas/3/10/model.inc.c | 8 +- levels/castle_inside/areas/3/11/model.inc.c | 36 +- levels/castle_inside/areas/3/3/model.inc.c | 8 +- levels/castle_inside/areas/3/4/model.inc.c | 52 +-- levels/castle_inside/areas/3/6/model.inc.c | 28 +- levels/castle_inside/areas/3/8/model.inc.c | 8 +- .../castle_inside/clock_hour_hand/model.inc.c | 16 +- .../clock_minute_hand/model.inc.c | 16 +- levels/castle_inside/painting.inc.c | 25 +- levels/castle_inside/star_door/model.inc.c | 8 +- levels/castle_inside/trap_door/model.inc.c | 8 +- .../water_level_pillar/model.inc.c | 8 +- levels/ccm/areas/1/1/model.inc.c | 76 ++-- levels/ccm/areas/1/10/1.inc.c | 40 +- levels/ccm/areas/1/10/3.inc.c | 8 +- levels/ccm/areas/1/2/model.inc.c | 8 +- levels/ccm/areas/1/3/model.inc.c | 36 +- levels/ccm/areas/1/6/1.inc.c | 36 +- levels/ccm/areas/1/7/1.inc.c | 28 +- levels/ccm/areas/1/7/3.inc.c | 8 +- levels/ccm/areas/1/8/model.inc.c | 8 +- levels/ccm/areas/1/9/model.inc.c | 8 +- levels/ccm/areas/2/1/model.inc.c | 8 +- levels/ccm/areas/2/2/model.inc.c | 40 +- levels/ccm/areas/2/3/model.inc.c | 8 +- levels/ccm/areas/2/4/model.inc.c | 8 +- levels/ccm/areas/2/5/model.inc.c | 8 +- levels/ccm/areas/2/7/model.inc.c | 16 +- levels/ccm/ropeway_lift/2.inc.c | 8 +- levels/ccm/snowman_base/model.inc.c | 8 +- levels/ccm/snowman_head/1.inc.c | 8 +- levels/cotmc/areas/1/1/model.inc.c | 108 ++--- levels/cotmc/areas/1/2/model.inc.c | 8 +- levels/ddd/areas/1/1/model.inc.c | 32 +- levels/ddd/areas/1/2/model.inc.c | 8 +- levels/ddd/areas/1/3/model.inc.c | 8 +- levels/ddd/areas/2/1/model.inc.c | 68 ++-- levels/ddd/areas/2/2/model.inc.c | 8 +- levels/ddd/areas/2/3/model.inc.c | 8 +- levels/ddd/areas/2/5/model.inc.c | 8 +- levels/ddd/areas/2/6/model.inc.c | 8 +- levels/ddd/pole/model.inc.c | 8 +- levels/ddd/sub_door/2.inc.c | 8 +- levels/ddd/submarine/1.inc.c | 40 +- levels/ddd/submarine/2.inc.c | 8 +- levels/hmc/areas/1/1/model.inc.c | 24 +- levels/hmc/areas/1/10/model.inc.c | 8 +- levels/hmc/areas/1/11/model.inc.c | 20 +- levels/hmc/areas/1/16/model.inc.c | 8 +- levels/hmc/areas/1/17/model.inc.c | 20 +- levels/hmc/areas/1/22/model.inc.c | 8 +- levels/hmc/areas/1/24/model.inc.c | 48 +-- levels/hmc/areas/1/29/model.inc.c | 8 +- levels/hmc/areas/1/30/model.inc.c | 8 +- levels/hmc/areas/1/5/model.inc.c | 28 +- levels/hmc/areas/1/painting.inc.c | 17 +- levels/hmc/arrow_platform/model.inc.c | 8 +- levels/hmc/arrow_platform_button/model.inc.c | 16 +- levels/hmc/elevator_platform/model.inc.c | 8 +- levels/hmc/rolling_rock/model.inc.c | 8 +- .../hmc/rolling_rock_fragment_1/model.inc.c | 8 +- .../hmc/rolling_rock_fragment_2/model.inc.c | 8 +- levels/intro/geo.c | 22 +- levels/jrb/areas/1/2/model.inc.c | 28 +- levels/jrb/areas/1/3/model.inc.c | 16 +- levels/jrb/areas/1/4/model.inc.c | 16 +- levels/jrb/areas/1/5/model.inc.c | 28 +- levels/jrb/areas/1/6/model.inc.c | 8 +- levels/jrb/areas/2/1/model.inc.c | 52 +-- levels/jrb/areas/2/2/model.inc.c | 8 +- levels/jrb/areas/2/3/model.inc.c | 8 +- levels/jrb/falling_pillar/model.inc.c | 8 +- levels/jrb/falling_pillar_base/model.inc.c | 8 +- levels/jrb/floating_platform/model.inc.c | 8 +- levels/jrb/rock/model.inc.c | 8 +- levels/jrb/sliding_box/model.inc.c | 8 +- levels/jrb/wooden_ship/model.inc.c | 84 +--- levels/lll/areas/1/1/model.inc.c | 4 +- levels/lll/areas/1/10/model.inc.c | 4 +- levels/lll/areas/1/11/model.inc.c | 8 +- levels/lll/areas/1/12/model.inc.c | 4 +- levels/lll/areas/1/13/model.inc.c | 8 +- levels/lll/areas/1/14/model.inc.c | 4 +- levels/lll/areas/1/2/model.inc.c | 8 +- levels/lll/areas/1/4/model.inc.c | 4 +- levels/lll/areas/1/5/model.inc.c | 4 +- levels/lll/areas/1/6/model.inc.c | 4 +- levels/lll/areas/1/7/model.inc.c | 4 +- levels/lll/areas/1/8/model.inc.c | 8 +- levels/lll/areas/1/9/model.inc.c | 4 +- levels/lll/areas/1/light.inc.c | 24 -- levels/lll/areas/2/2/model.inc.c | 8 +- .../collapsing_wooden_platform/model.inc.c | 4 +- levels/lll/drawbridge_part/model.inc.c | 4 +- levels/lll/long_wooden_bridge/model.inc.c | 4 +- .../model.inc.c | 4 +- levels/lll/puzzle_piece/model.inc.c | 4 +- levels/lll/rolling_log/model.inc.c | 8 +- .../lll/rotating_block_fire_bars/model.inc.c | 4 +- .../lll/rotating_hexagonal_ring/model.inc.c | 4 +- .../sinking_rectangular_platform/model.inc.c | 4 +- levels/lll/sinking_rock_block/model.inc.c | 8 +- .../lll/sinking_square_platform/model.inc.c | 12 +- .../lll/tilting_square_platform/model.inc.c | 4 +- levels/lll/wooden_float_large/model.inc.c | 4 +- levels/lll/wooden_float_small/model.inc.c | 4 +- levels/menu/leveldata.c | 24 +- levels/pss/areas/1/1/model.inc.c | 16 +- levels/pss/areas/1/7/model.inc.c | 8 +- levels/rr/flying_carpet/model.inc.c | 8 +- levels/rr/octagonal_platform/model.inc.c | 8 +- .../rr/rotating_bridge_platform/model.inc.c | 40 +- levels/sa/areas/1/1/model.inc.c | 8 +- levels/sl/areas/1/1/model.inc.c | 20 +- levels/sl/areas/1/2/model.inc.c | 8 +- levels/sl/areas/1/3/model.inc.c | 20 +- levels/sl/areas/1/5/model.inc.c | 8 +- levels/sl/areas/1/6/model.inc.c | 16 +- levels/sl/areas/1/7/model.inc.c | 8 +- levels/sl/areas/2/1/model.inc.c | 20 +- levels/sl/areas/2/2/model.inc.c | 8 +- levels/sl/areas/2/3/model.inc.c | 8 +- levels/sl/areas/2/4/model.inc.c | 8 +- levels/sl/snow_mound/model.inc.c | 8 +- levels/sl/unused_cracked_ice/model.inc.c | 8 +- levels/sl/unused_ice_shard/model.inc.c | 8 +- levels/ssl/areas/1/1/model.inc.c | 44 +- levels/ssl/areas/1/2/model.inc.c | 8 +- levels/ssl/areas/1/3/model.inc.c | 8 +- levels/ssl/areas/2/1/model.inc.c | 60 +-- levels/ssl/areas/2/4/model.inc.c | 16 +- levels/ssl/areas/3/1/model.inc.c | 32 +- levels/ssl/areas/3/2/model.inc.c | 8 +- levels/ssl/grindel/model.inc.c | 8 +- levels/ssl/moving_pyramid_wall/model.inc.c | 8 +- levels/ssl/pyramid_elevator/model.inc.c | 8 +- levels/ssl/pyramid_top/model.inc.c | 8 +- levels/ssl/spindel/model.inc.c | 8 +- levels/ssl/tox_box/model.inc.c | 8 +- levels/thi/areas/1/1/model.inc.c | 72 ++-- levels/thi/areas/1/2/model.inc.c | 40 +- levels/thi/areas/1/4/model.inc.c | 8 +- levels/thi/areas/1/6/model.inc.c | 8 +- levels/thi/areas/1/7/model.inc.c | 16 +- levels/thi/areas/3/2/model.inc.c | 52 +-- levels/ttc/areas/1/1/model.inc.c | 48 +-- levels/ttc/areas/1/2/model.inc.c | 8 +- levels/ttc/areas/1/movtext.inc.c | 8 +- levels/ttc/clock_hand/model.inc.c | 32 +- levels/ttc/elevator_platform/model.inc.c | 8 +- levels/ttc/large_treadmill/model.inc.c | 16 +- levels/ttc/pendulum/model.inc.c | 8 +- levels/ttc/pit_block/model.inc.c | 8 +- levels/ttc/pit_block_2/model.inc.c | 8 +- levels/ttc/push_block/model.inc.c | 8 +- levels/ttc/rotating_cube/model.inc.c | 16 +- levels/ttc/rotating_hexagon/model.inc.c | 8 +- levels/ttc/rotating_prism/model.inc.c | 8 +- levels/ttc/rotating_triangle/model.inc.c | 8 +- levels/ttc/small_treadmill/model.inc.c | 16 +- levels/ttc/spinner/model.inc.c | 16 +- levels/ttm/areas/1/1/model.inc.c | 48 +-- levels/ttm/areas/1/10/model.inc.c | 36 +- levels/ttm/areas/1/11/model.inc.c | 20 +- levels/ttm/areas/1/12/model.inc.c | 28 +- levels/ttm/areas/1/13/model.inc.c | 28 +- levels/ttm/areas/1/14/model.inc.c | 28 +- levels/ttm/areas/1/15/model.inc.c | 8 +- levels/ttm/areas/1/16/1.inc.c | 28 +- levels/ttm/areas/1/17/2.inc.c | 8 +- levels/ttm/areas/1/18/1.inc.c | 36 +- levels/ttm/areas/1/19/model.inc.c | 32 +- levels/ttm/areas/1/2/model.inc.c | 8 +- levels/ttm/areas/1/20/model.inc.c | 28 +- levels/ttm/areas/1/21/1.inc.c | 24 +- levels/ttm/areas/1/3/1.inc.c | 16 +- levels/ttm/areas/1/3/2.inc.c | 8 +- levels/ttm/areas/1/4/1.inc.c | 8 +- levels/ttm/areas/1/4/2.inc.c | 8 +- levels/ttm/areas/1/5/1.inc.c | 8 +- levels/ttm/areas/1/5/2.inc.c | 8 +- levels/ttm/areas/1/6/1.inc.c | 8 +- levels/ttm/areas/1/6/2.inc.c | 8 +- levels/ttm/areas/1/7/model.inc.c | 16 +- levels/ttm/areas/1/8/model.inc.c | 16 +- levels/ttm/areas/1/9/model.inc.c | 24 +- levels/ttm/areas/1/painting.inc.c | 8 +- levels/ttm/areas/2/1/model.inc.c | 144 +++---- levels/ttm/areas/2/2/model.inc.c | 8 +- levels/ttm/areas/3/1/model.inc.c | 176 +++----- levels/ttm/areas/3/3/model.inc.c | 8 +- levels/ttm/areas/4/1/model.inc.c | 148 +++---- levels/ttm/areas/4/2/model.inc.c | 8 +- levels/ttm/rolling_log/model.inc.c | 8 +- levels/ttm/slide_exit_podium/model.inc.c | 24 +- levels/ttm/star_cage/1.inc.c | 16 +- levels/vcutm/areas/1/1/model.inc.c | 44 +- levels/vcutm/areas/1/2/model.inc.c | 8 +- levels/vcutm/seesaw/model.inc.c | 16 +- levels/wdw/areas/1/1/model.inc.c | 40 +- levels/wdw/areas/1/2/model.inc.c | 8 +- levels/wdw/areas/2/1/model.inc.c | 44 +- levels/wdw/areas/2/2/model.inc.c | 24 +- levels/wdw/arrow_lift/model.inc.c | 8 +- levels/wdw/express_elevator/model.inc.c | 8 +- levels/wdw/hidden_platform/model.inc.c | 8 +- .../rectangular_floating_platform/model.inc.c | 8 +- levels/wdw/rotating_platform/model.inc.c | 8 +- .../wdw/square_floating_platform/model.inc.c | 8 +- levels/wdw/water_level_diamond/model.inc.c | 32 +- levels/wf/areas/1/1/model.inc.c | 8 +- levels/wf/areas/1/10/1.inc.c | 8 +- levels/wf/areas/1/10/2.inc.c | 8 +- levels/wf/areas/1/11/model.inc.c | 8 +- levels/wf/areas/1/12/1.inc.c | 8 +- levels/wf/areas/1/12/2.inc.c | 8 +- levels/wf/areas/1/13/model.inc.c | 8 +- levels/wf/areas/1/14/model.inc.c | 8 +- levels/wf/areas/1/15/1.inc.c | 8 +- levels/wf/areas/1/15/2.inc.c | 8 +- levels/wf/areas/1/16/model.inc.c | 8 +- levels/wf/areas/1/17/model.inc.c | 8 +- levels/wf/areas/1/18/model.inc.c | 8 +- levels/wf/areas/1/19/model.inc.c | 8 +- levels/wf/areas/1/2/model.inc.c | 8 +- levels/wf/areas/1/5/1.inc.c | 8 +- levels/wf/areas/1/5/2.inc.c | 8 +- levels/wf/areas/1/6/1.inc.c | 8 +- levels/wf/areas/1/6/2.inc.c | 8 +- levels/wf/areas/1/7/model.inc.c | 8 +- levels/wf/areas/1/9/model.inc.c | 8 +- levels/wf/beta_extending_platform/model.inc.c | 8 +- levels/wf/breakable_wall_left/model.inc.c | 8 +- levels/wf/breakable_wall_right/model.inc.c | 8 +- levels/wf/extending_platform/model.inc.c | 8 +- levels/wf/kickable_board/1.inc.c | 8 +- levels/wf/large_bomp/model.inc.c | 8 +- levels/wf/rotating_wooden_platform/1.inc.c | 8 +- levels/wf/rotating_wooden_platform/2.inc.c | 8 +- levels/wf/sliding_platform/model.inc.c | 8 +- levels/wf/small_bomp/1.inc.c | 8 +- levels/wf/small_bomp/2.inc.c | 8 +- levels/wf/tower_door/model.inc.c | 8 +- levels/wf/tumbling_bridge_far/model.inc.c | 8 +- levels/wf/tumbling_bridge_near/model.inc.c | 8 +- levels/wmotr/areas/1/model.inc.c | 28 +- src/engine/graph_node.h | 1 + src/engine/math_util.c | 115 ++---- src/engine/math_util.h | 3 +- src/game/area.c | 3 +- src/game/behavior_actions.c | 4 +- src/game/behaviors/bowser.inc.c | 4 +- src/game/behaviors/king_bobomb.inc.c | 4 +- src/game/behaviors/ukiki.inc.c | 4 +- src/game/debug_box.c | 67 ++- src/game/game_init.c | 1 - src/game/mario_misc.c | 3 +- src/game/object_helpers.c | 4 +- src/game/puppycam2.c | 4 +- src/game/puppylights.c | 2 +- src/game/rendering_graph_node.c | 148 +++++-- tools/fixlights.py | 110 +++++ 441 files changed, 3271 insertions(+), 7508 deletions(-) create mode 100755 tools/fixlights.py diff --git a/Makefile b/Makefile index 65345527..c3f63f92 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,9 @@ else ifeq ($(VERSION),sh) DEFINES += VERSION_SH=1 endif +# FIXLIGHTS - converts light objects to light color commands for assets, needed for vanilla-style lighting +FIXLIGHTS ?= 1 + DEBUG_MAP_STACKTRACE_FLAG := -D DEBUG_MAP_STACKTRACE TARGET := sm64 @@ -222,7 +225,7 @@ TARGET_STRING := sm64 # UNF - whether to use UNFLoader flashcart library # 1 - includes code in ROM -# 0 - does not +# 0 - does not UNF ?= 0 $(eval $(call validate-option,UNF,0 1)) ifeq ($(UNF),1) @@ -234,7 +237,7 @@ endif # ISVPRINT - whether to fake IS-Viewer presence, # allowing for usage of CEN64 (and possibly Project64) to print messages to terminal. # 1 - includes code in ROM -# 0 - does not +# 0 - does not ISVPRINT ?= 0 $(eval $(call validate-option,ISVPRINT,0 1)) ifeq ($(ISVPRINT),1) @@ -252,7 +255,7 @@ endif # HVQM - whether to use HVQM fmv library # 1 - includes code in ROM -# 0 - does not +# 0 - does not HVQM ?= 0 $(eval $(call validate-option,HVQM,0 1)) ifeq ($(HVQM),1) @@ -287,7 +290,7 @@ $(eval $(call validate-option,GZIPVER,std libdef)) # GODDARD - whether to use libgoddard (Mario Head) # 1 - includes code in ROM -# 0 - does not +# 0 - does not GODDARD ?= 0 $(eval $(call validate-option,GODDARD,0 1)) ifeq ($(GODDARD),1) @@ -423,8 +426,6 @@ DEP_FILES := $(O_FILES:.o=.d) $(LIBZ_O_FILES:.o=.d) $(GODDARD_O_FILES:.o=.d) $(B # detect prefix for MIPS toolchain ifneq ($(call find-command,mips64-elf-ld),) CROSS := mips64-elf- -else ifneq ($(call find-command,mips-n64-ld),) - CROSS := mips-n64- else ifneq ($(call find-command,mips64-ld),) CROSS := mips64- else ifneq ($(call find-command,mips-linux-gnu-ld),) @@ -513,6 +514,7 @@ AIFF_EXTRACT_CODEBOOK := $(TOOLS_DIR)/aiff_extract_codebook VADPCM_ENC := $(TOOLS_DIR)/vadpcm_enc EXTRACT_DATA_FOR_MIO := $(TOOLS_DIR)/extract_data_for_mio SKYCONV := $(TOOLS_DIR)/skyconv +FIXLIGHTS_PY := $(TOOLS_DIR)/fixlights.py ifeq ($(GZIPVER),std) GZIP := gzip else @@ -814,6 +816,14 @@ $(BUILD_DIR)/src/game/version_data.h: tools/make_version.sh #==============================================================================# # Compile C code +ifeq ($(FIXLIGHTS),1) +# This must not be run multiple times at once, so we run it ahead of time rather than in a rule +DUMMY != $(FIXLIGHTS_PY) actors +# Modify the leveldata build rule to fix lights for any files in that level's folder +$(BUILD_DIR)/levels/%/leveldata.o: levels/%/leveldata.c + $(V)$(FIXLIGHTS_PY) $(dir $<) + $(V)$(CC) -c $(CFLAGS) -MMD -MF $(BUILD_DIR)/$*.d -o $@ $< +endif $(BUILD_DIR)/%.o: %.c $(call print,Compiling:,$<,$@) $(V)$(CC) -c $(CFLAGS) -MMD -MF $(BUILD_DIR)/$*.d -o $@ $< diff --git a/actors/bird/model.inc.c b/actors/bird/model.inc.c index d7e2ca82..abedf2d8 100644 --- a/actors/bird/model.inc.c +++ b/actors/bird/model.inc.c @@ -1,22 +1,10 @@ // Birds // 0x05000000 -static const Lights1 birds_seg5_lights_05000000 = gdSPDefLights1( - 0x07, 0x24, 0x2c, - 0x1d, 0x91, 0xb0, 0x28, 0x28, 0x28 -); // 0x05000018 -static const Lights1 birds_seg5_lights_05000018 = gdSPDefLights1( - 0x33, 0x27, 0x0d, - 0xce, 0x9d, 0x34, 0x28, 0x28, 0x28 -); // 0x05000030 -static const Lights1 birds_seg5_lights_05000030 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05000048 static const Vtx birds_seg5_vertex_05000048[] = { @@ -138,8 +126,8 @@ static const Vtx birds_seg5_vertex_050004C8[] = { // 0x05000528 - 0x05000598 const Gfx birds_seg5_dl_05000528[] = { - gsSPLight(&birds_seg5_lights_05000000.l, 1), - gsSPLight(&birds_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0x1d91b0ff), + gsSPLightColor(LIGHT_2, 0x7242cff), gsSPVertex(birds_seg5_vertex_05000048, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 3, 2, 0x0, 5, 3, 6, 0x0), @@ -151,16 +139,16 @@ const Gfx birds_seg5_dl_05000528[] = { // 0x05000598 - 0x05000600 const Gfx birds_seg5_dl_05000598[] = { - gsSPLight(&birds_seg5_lights_05000000.l, 1), - gsSPLight(&birds_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0x1d91b0ff), + gsSPLightColor(LIGHT_2, 0x7242cff), gsSPVertex(birds_seg5_vertex_050000D8, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&birds_seg5_lights_05000000.l, 1), - gsSPLight(&birds_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0x1d91b0ff), + gsSPLightColor(LIGHT_2, 0x7242cff), gsSPVertex(birds_seg5_vertex_05000108, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&birds_seg5_lights_05000000.l, 1), - gsSPLight(&birds_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0x1d91b0ff), + gsSPLightColor(LIGHT_2, 0x7242cff), gsSPVertex(birds_seg5_vertex_05000138, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), @@ -168,8 +156,8 @@ const Gfx birds_seg5_dl_05000598[] = { // 0x05000600 - 0x05000670 const Gfx birds_seg5_dl_05000600[] = { - gsSPLight(&birds_seg5_lights_05000000.l, 1), - gsSPLight(&birds_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0x1d91b0ff), + gsSPLightColor(LIGHT_2, 0x7242cff), gsSPVertex(birds_seg5_vertex_05000168, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 5, 3, 6, 0x0), @@ -181,8 +169,8 @@ const Gfx birds_seg5_dl_05000600[] = { // 0x05000670 - 0x050007E0 const Gfx birds_seg5_dl_05000670[] = { - gsSPLight(&birds_seg5_lights_05000000.l, 1), - gsSPLight(&birds_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0x1d91b0ff), + gsSPLightColor(LIGHT_2, 0x7242cff), gsSPVertex(birds_seg5_vertex_050001F8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 1, 9, 10, 0x0), @@ -198,16 +186,16 @@ const Gfx birds_seg5_dl_05000670[] = { gsSP1Triangle( 7, 6, 15, 0x0), gsSPVertex(birds_seg5_vertex_050003F8, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&birds_seg5_lights_05000030.l, 1), - gsSPLight(&birds_seg5_lights_05000030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(birds_seg5_vertex_05000428, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 0, 7, 0x0, 7, 8, 6, 0x0), gsSP2Triangles( 9, 7, 2, 0x0, 2, 7, 0, 0x0), gsSP2Triangles( 2, 3, 9, 0x0, 7, 9, 8, 0x0), gsSP1Triangle( 5, 4, 1, 0x0), - gsSPLight(&birds_seg5_lights_05000018.l, 1), - gsSPLight(&birds_seg5_lights_05000018.a, 2), + gsSPLightColor(LIGHT_1, 0xce9d34ff), + gsSPLightColor(LIGHT_2, 0x33270dff), gsSPVertex(birds_seg5_vertex_050004C8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP1Triangle( 1, 3, 5, 0x0), diff --git a/actors/blargg/model.inc.c b/actors/blargg/model.inc.c index 75904563..399ad6c6 100644 --- a/actors/blargg/model.inc.c +++ b/actors/blargg/model.inc.c @@ -1,34 +1,14 @@ // Blargg (Unused) // Unreferenced light group -UNUSED static const Lights1 blargg_lights_unused = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004740 -static const Lights1 blargg_seg5_lights_05004740 = gdSPDefLights1( - 0x3f, 0x0d, 0x05, - 0xff, 0x36, 0x16, 0x28, 0x28, 0x28 -); // 0x05004758 -static const Lights1 blargg_seg5_lights_05004758 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x05004770 -static const Lights1 blargg_seg5_lights_05004770 = gdSPDefLights1( - 0x3f, 0x0a, 0x06, - 0xff, 0x2a, 0x1a, 0x28, 0x28, 0x28 -); // 0x05004788 -static const Lights1 blargg_seg5_lights_05004788 = gdSPDefLights1( - 0x3f, 0x0b, 0x07, - 0xff, 0x2e, 0x1f, 0x28, 0x28, 0x28 -); // 0x050047A0 static const Vtx blargg_seg5_vertex_050047A0[] = { @@ -383,8 +363,8 @@ static const Vtx blargg_seg5_vertex_050057E0[] = { // 0x050058D0 - 0x05005A60 const Gfx blargg_seg5_dl_050058D0[] = { - gsSPLight(&blargg_seg5_lights_05004758.l, 1), - gsSPLight(&blargg_seg5_lights_05004758.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x2c2c2cff), gsSPVertex(blargg_seg5_vertex_050047A0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -398,8 +378,8 @@ const Gfx blargg_seg5_dl_050058D0[] = { gsSPVertex(blargg_seg5_vertex_050049A0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&blargg_seg5_lights_05004740.l, 1), - gsSPLight(&blargg_seg5_lights_05004740.a, 2), + gsSPLightColor(LIGHT_1, 0xff3616ff), + gsSPLightColor(LIGHT_2, 0x3f0d05ff), gsSPVertex(blargg_seg5_vertex_05004A20, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -418,8 +398,8 @@ const Gfx blargg_seg5_dl_050058D0[] = { // 0x05005A60 - 0x05005D00 const Gfx blargg_seg5_dl_05005A60[] = { - gsSPLight(&blargg_seg5_lights_05004758.l, 1), - gsSPLight(&blargg_seg5_lights_05004758.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x2c2c2cff), gsSPVertex(blargg_seg5_vertex_05004BE0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -433,8 +413,8 @@ const Gfx blargg_seg5_dl_05005A60[] = { gsSPVertex(blargg_seg5_vertex_05004DE0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&blargg_seg5_lights_05004770.l, 1), - gsSPLight(&blargg_seg5_lights_05004770.a, 2), + gsSPLightColor(LIGHT_1, 0xff2a1aff), + gsSPLightColor(LIGHT_2, 0x3f0a06ff), gsSPVertex(blargg_seg5_vertex_05004E60, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 2, 6, 7, 0x0, 2, 7, 8, 0x0), @@ -472,8 +452,8 @@ const Gfx blargg_seg5_dl_05005A60[] = { // 0x05005D00 - 0x05005EB8 const Gfx blargg_seg5_dl_05005D00[] = { - gsSPLight(&blargg_seg5_lights_05004788.l, 1), - gsSPLight(&blargg_seg5_lights_05004788.a, 2), + gsSPLightColor(LIGHT_1, 0xff2e1fff), + gsSPLightColor(LIGHT_2, 0x3f0b07ff), gsSPVertex(blargg_seg5_vertex_050053E0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/blue_coin_switch/model.inc.c b/actors/blue_coin_switch/model.inc.c index bb5c89fd..ccdbb73f 100644 --- a/actors/blue_coin_switch/model.inc.c +++ b/actors/blue_coin_switch/model.inc.c @@ -1,10 +1,6 @@ // Blue Coin Switch // 0x08000000 -static const Lights1 blue_coin_switch_seg8_lights_08000000 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08000018 ALIGNED8 static const Texture blue_coin_switch_seg8_texture_08000018[] = { @@ -49,8 +45,8 @@ const Gfx blue_coin_switch_seg8_dl_08000D58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, blue_coin_switch_seg8_texture_08000018), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&blue_coin_switch_seg8_lights_08000000.l, 1), - gsSPLight(&blue_coin_switch_seg8_lights_08000000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(blue_coin_switch_seg8_vertex_08000C18, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/actors/blue_fish/model.inc.c b/actors/blue_fish/model.inc.c index 3545358a..9355e0f0 100644 --- a/actors/blue_fish/model.inc.c +++ b/actors/blue_fish/model.inc.c @@ -1,10 +1,6 @@ // Blue Fish // 0x0301B5C8 -static const Lights1 blue_fish_seg3_lights_0301B5C8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0301B5E0 ALIGNED8 static const Texture blue_fish_seg3_texture_0301B5E0[] = { @@ -34,8 +30,8 @@ const Gfx blue_fish_seg3_dl_0301BEC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, blue_fish_seg3_texture_0301B5E0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&blue_fish_seg3_lights_0301B5C8.l, 1), - gsSPLight(&blue_fish_seg3_lights_0301B5C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(blue_fish_seg3_vertex_0301BDE0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 5, 0, 3, 0x0, 2, 6, 0, 0x0), @@ -86,8 +82,8 @@ const Gfx blue_fish_seg3_dl_0301C0A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, blue_fish_seg3_texture_0301B5E0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&blue_fish_seg3_lights_0301B5C8.l, 1), - gsSPLight(&blue_fish_seg3_lights_0301B5C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(blue_fish_seg3_vertex_0301C018, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 4, 5, 2, 0x0, 2, 5, 6, 0x0), diff --git a/actors/bobomb/model.inc.c b/actors/bobomb/model.inc.c index 6e4296c2..f9a48ac1 100644 --- a/actors/bobomb/model.inc.c +++ b/actors/bobomb/model.inc.c @@ -168,22 +168,10 @@ const Gfx bobomb_seg8_dl_08022D78[] = { }; // 0x08022DE8 -static const Lights1 bobomb_seg8_lights_08022DE8 = gdSPDefLights1( - 0x3f, 0x26, 0x04, - 0xff, 0x99, 0x12, 0x28, 0x28, 0x28 -); // 0x08022E00 -static const Lights1 bobomb_seg8_lights_08022E00 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 bobomb_lights_unused = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x08022E30 static const Vtx bobomb_seg8_vertex_08022E30[] = { @@ -279,8 +267,8 @@ static const Vtx bobomb_seg8_vertex_08023190[] = { // 0x08023270 - 0x08023378 const Gfx bobomb_seg8_dl_08023270[] = { - gsSPLight(&bobomb_seg8_lights_08022DE8.l, 1), - gsSPLight(&bobomb_seg8_lights_08022DE8.a, 2), + gsSPLightColor(LIGHT_1, 0xff9912ff), + gsSPLightColor(LIGHT_2, 0x3f2604ff), gsSPVertex(bobomb_seg8_vertex_08022E30, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -302,8 +290,8 @@ const Gfx bobomb_seg8_dl_08023270[] = { // 0x08023378 - 0x08023480 const Gfx bobomb_seg8_dl_08023378[] = { - gsSPLight(&bobomb_seg8_lights_08022DE8.l, 1), - gsSPLight(&bobomb_seg8_lights_08022DE8.a, 2), + gsSPLightColor(LIGHT_1, 0xff9912ff), + gsSPLightColor(LIGHT_2, 0x3f2604ff), gsSPVertex(bobomb_seg8_vertex_08022F70, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -325,8 +313,8 @@ const Gfx bobomb_seg8_dl_08023378[] = { // 0x08023480 - 0x08023528 const Gfx bobomb_seg8_dl_08023480[] = { - gsSPLight(&bobomb_seg8_lights_08022E00.l, 1), - gsSPLight(&bobomb_seg8_lights_08022E00.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x2c2c2cff), gsSPVertex(bobomb_seg8_vertex_080230B0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 4, 3, 5, 0x0), diff --git a/actors/bomb/model.inc.c b/actors/bomb/model.inc.c index 9ccb342a..acd09554 100644 --- a/actors/bomb/model.inc.c +++ b/actors/bomb/model.inc.c @@ -1,10 +1,6 @@ // Bomb // 0x06057AA8 -static const Lights1 bomb_seg6_lights_06057AA8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06057AC0 ALIGNED8 static const Texture bomb_seg6_texture_06057AC0[] = { @@ -173,8 +169,8 @@ const Gfx bomb_seg6_dl_0605A8A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bomb_seg6_texture_06059AC0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bomb_seg6_lights_06057AA8.l, 1), - gsSPLight(&bomb_seg6_lights_06057AA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bomb_seg6_vertex_0605A340, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/boo/model.inc.c b/actors/boo/model.inc.c index 8d77221e..a73739c8 100644 --- a/actors/boo/model.inc.c +++ b/actors/boo/model.inc.c @@ -1,10 +1,6 @@ // Boo // 0x05009B28 -static const Lights1 boo_seg5_lights_05009B28 = gdSPDefLights1( - 0x97, 0x9a, 0xff, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05009B40 ALIGNED8 static const Texture boo_seg5_texture_05009B40[] = { @@ -261,8 +257,8 @@ const Gfx boo_seg5_dl_0500BEE0[] = { 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), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&boo_seg5_lights_05009B28.l, 1), - gsSPLight(&boo_seg5_lights_05009B28.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x979affff), gsSPVertex(boo_seg5_vertex_0500B340, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/boo_castle/model.inc.c b/actors/boo_castle/model.inc.c index 24506c4b..44debb4f 100644 --- a/actors/boo_castle/model.inc.c +++ b/actors/boo_castle/model.inc.c @@ -1,10 +1,6 @@ // Boo (Castle) // 0x06015658 -static const Lights1 boo_castle_seg6_lights_06015658 = gdSPDefLights1( - 0x97, 0x9a, 0xff, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06015670 ALIGNED8 static const Texture boo_castle_seg6_texture_06015670[] = { @@ -261,8 +257,8 @@ const Gfx boo_castle_seg6_dl_06017A10[] = { 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), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&boo_castle_seg6_lights_06015658.l, 1), - gsSPLight(&boo_castle_seg6_lights_06015658.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x979affff), gsSPVertex(boo_castle_seg6_vertex_06016E70, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/book/model.inc.c b/actors/book/model.inc.c index 309d7f7e..0232b25e 100644 --- a/actors/book/model.inc.c +++ b/actors/book/model.inc.c @@ -3,10 +3,6 @@ // This actor file requires including actor bookend because of bookend_seg5_texture_05000C60 // 0x05002558 -static const Lights1 book_seg5_lights_05002558 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05002570 ALIGNED8 static const Texture book_seg5_texture_05002570[] = { @@ -50,8 +46,8 @@ const Gfx book_seg5_dl_05002EF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000C60), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&book_seg5_lights_05002558.l, 1), - gsSPLight(&book_seg5_lights_05002558.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(book_seg5_vertex_05002D70, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/bookend/model.inc.c b/actors/bookend/model.inc.c index 02d862e8..24ae981b 100644 --- a/actors/bookend/model.inc.c +++ b/actors/bookend/model.inc.c @@ -1,28 +1,12 @@ // Bookend // Unreferenced light group -UNUSED static const Lights1 bookend_lights_unused1 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 bookend_lights_unused2 = gdSPDefLights1( - 0x03, 0x19, 0x09, - 0x0c, 0x66, 0x26, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 bookend_lights_unused3 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 bookend_lights_unused4 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05000060 ALIGNED8 static const Texture bookend_seg5_texture_05000060[] = { @@ -50,10 +34,6 @@ ALIGNED8 static const Texture bookend_seg5_texture_05001060[] = { }; // 0x05001860 -static const Lights1 bookend_seg5_lights_05001860 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001878 static const Vtx bookend_seg5_vertex_05001878[] = { @@ -76,8 +56,8 @@ const Gfx bookend_seg5_dl_050018F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000060), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bookend_seg5_lights_05001860.l, 1), - gsSPLight(&bookend_seg5_lights_05001860.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bookend_seg5_vertex_05001878, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -116,10 +96,6 @@ const Gfx bookend_seg5_dl_05001978[] = { }; // 0x05001A08 -static const Lights1 bookend_seg5_lights_05001A08 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001A20 static const Vtx bookend_seg5_vertex_05001A20[] = { @@ -142,8 +118,8 @@ const Gfx bookend_seg5_dl_05001AA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000060), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bookend_seg5_lights_05001A08.l, 1), - gsSPLight(&bookend_seg5_lights_05001A08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bookend_seg5_vertex_05001A20, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -182,10 +158,6 @@ const Gfx bookend_seg5_dl_05001B20[] = { }; // 0x05001BB0 -static const Lights1 bookend_seg5_lights_05001BB0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001BC8 static const Vtx bookend_seg5_vertex_05001BC8[] = { @@ -216,8 +188,8 @@ const Gfx bookend_seg5_dl_05001CC8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000860), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bookend_seg5_lights_05001BB0.l, 1), - gsSPLight(&bookend_seg5_lights_05001BB0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bookend_seg5_vertex_05001BC8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -255,10 +227,6 @@ const Gfx bookend_seg5_dl_05001D68[] = { }; // 0x05001DE0 -static const Lights1 bookend_seg5_lights_05001DE0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001DF8 static const Vtx bookend_seg5_vertex_05001DF8[] = { @@ -289,8 +257,8 @@ const Gfx bookend_seg5_dl_05001EF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000860), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bookend_seg5_lights_05001DE0.l, 1), - gsSPLight(&bookend_seg5_lights_05001DE0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bookend_seg5_vertex_05001DF8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -328,10 +296,6 @@ const Gfx bookend_seg5_dl_05001F98[] = { }; // 0x05002010 -static const Lights1 bookend_seg5_lights_05002010 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05002028 static const Vtx bookend_seg5_vertex_05002028[] = { @@ -354,8 +318,8 @@ const Gfx bookend_seg5_dl_050020E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000460), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bookend_seg5_lights_05002010.l, 1), - gsSPLight(&bookend_seg5_lights_05002010.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bookend_seg5_vertex_05002028, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -381,10 +345,6 @@ const Gfx bookend_seg5_dl_05002140[] = { }; // 0x050021B0 -static const Lights1 bookend_seg5_lights_050021B0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050021C8 static const Vtx bookend_seg5_vertex_050021C8[] = { @@ -407,8 +367,8 @@ const Gfx bookend_seg5_dl_05002288[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000460), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bookend_seg5_lights_050021B0.l, 1), - gsSPLight(&bookend_seg5_lights_050021B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bookend_seg5_vertex_050021C8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/bowser/model.inc.c b/actors/bowser/model.inc.c index 1d7899bd..bfab8d8b 100644 --- a/actors/bowser/model.inc.c +++ b/actors/bowser/model.inc.c @@ -148,22 +148,10 @@ ALIGNED8 static const Texture bowser_seg6_texture_06037C38[] = { }; // 0x06038C38 -static const Lights1 bowser_seg6_lights_06038C38 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 bowser_lights_unused1 = gdSPDefLights1( - 0x33, 0x31, 0x00, - 0xce, 0xc7, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 bowser_lights_unused2 = gdSPDefLights1( - 0x34, 0x34, 0x00, - 0xd2, 0xd2, 0x00, 0x28, 0x28, 0x28 -); // 0x06038C80 static const Vtx bowser_seg6_vertex_06038C80[] = { @@ -267,8 +255,8 @@ const Gfx bowser_seg6_dl_06039110[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_06038C80, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -439,8 +427,8 @@ const Gfx bowser_seg6_dl_06039808[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_06039368, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -671,8 +659,8 @@ const Gfx bowser_seg6_dl_0603A210[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_06039A60, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 4, 0, 2, 0x0, 2, 1, 5, 0x0), @@ -947,8 +935,8 @@ const Gfx bowser_seg6_dl_0603AED8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603A568, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 5, 8, 0x0), @@ -1132,8 +1120,8 @@ const Gfx bowser_seg6_dl_0603B718[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603B288, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 5, 3, 4, 0x0), @@ -1308,8 +1296,8 @@ const Gfx bowser_seg6_dl_0603BDF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603B948, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 6, 5, 0x0), @@ -1481,8 +1469,8 @@ const Gfx bowser_seg6_dl_0603C500[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603C050, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 7, 0x0, 3, 7, 4, 0x0), @@ -1716,8 +1704,8 @@ const Gfx bowser_seg6_dl_0603CF28[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603C758, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 5, 0, 4, 0x0, 0, 2, 6, 0x0), @@ -2007,8 +1995,8 @@ const Gfx bowser_seg6_dl_0603DC70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603D280, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 8, 0x0), @@ -2197,8 +2185,8 @@ const Gfx bowser_seg6_dl_0603E500[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603E030, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -2676,8 +2664,8 @@ const Gfx bowser_seg6_dl_0603FBA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06023C38), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_0603E718, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -3388,8 +3376,8 @@ const Gfx bowser_seg6_dl_06041A28[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06028438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_060402D8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -3945,8 +3933,8 @@ const Gfx bowser_seg6_dl_06042EE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06020C38), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_06042660, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 6, 7, 3, 0x0), @@ -4103,8 +4091,8 @@ const Gfx bowser_seg6_dl_06043548[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_seg6_texture_06022438), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_seg6_lights_06038C38.l, 1), - gsSPLight(&bowser_seg6_lights_06038C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_seg6_vertex_06043278, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 0, 5, 1, 0x0), diff --git a/actors/bowser_key/model.inc.c b/actors/bowser_key/model.inc.c index 7cee5952..a51365cb 100644 --- a/actors/bowser_key/model.inc.c +++ b/actors/bowser_key/model.inc.c @@ -1,10 +1,6 @@ // Bowser Key // 0x030156E0, ambient color brown - light color orange -static const Lights1 bowser_key_lights = gdSPDefLights1( - 0x3f, 0x2c, 0x00, - 0xff, 0xb2, 0x00, 0x28, 0x28, 0x28 -); // 0x030156F8 static const Vtx bowser_key_dl_vertex_group1[] = { @@ -232,8 +228,8 @@ static const Vtx bowser_key_dl_vertex_group12[] = { // 0x030161F8 - 0x03016530 const Gfx bowser_key_dl[] = { - gsSPLight(&bowser_key_lights.l, 1), - gsSPLight(&bowser_key_lights.a, 2), + gsSPLightColor(LIGHT_1, 0xffb200ff), + gsSPLightColor(LIGHT_2, 0x3f2c00ff), gsSPVertex(bowser_key_dl_vertex_group1, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/breakable_box/model.inc.c b/actors/breakable_box/model.inc.c index a155b436..6cb74ca7 100644 --- a/actors/breakable_box/model.inc.c +++ b/actors/breakable_box/model.inc.c @@ -1,10 +1,6 @@ // Breakable Box // 0x08011A78 -static const Lights1 breakable_box_seg8_lights_default = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08011A90 ALIGNED8 static const Texture breakable_box_seg8_texture_08011A90[] = { @@ -48,8 +44,8 @@ static const Vtx breakable_box_seg8_vertex[] = { // 0x08012C30 - 0x08012CD8 const Gfx breakable_box_seg8_sub_dl_end[] = { - gsSPLight(&breakable_box_seg8_lights_default.l, 1), - gsSPLight(&breakable_box_seg8_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(breakable_box_seg8_vertex, 26, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/actors/bub/model.inc.c b/actors/bub/model.inc.c index 97d570f3..449dc70a 100644 --- a/actors/bub/model.inc.c +++ b/actors/bub/model.inc.c @@ -1,16 +1,8 @@ // Bub // 0x0600E278 -static const Lights1 bub_seg6_lights_0600E280 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600E290 -static const Lights1 bub_seg6_lights_0600E290 = gdSPDefLights1( - 0x3f, 0x1d, 0x25, - 0xff, 0x75, 0x94, 0x28, 0x28, 0x28 -); // 0x0600E2A8 ALIGNED8 static const Texture bub_seg6_texture_0600E2A8[] = { @@ -163,8 +155,8 @@ const Gfx bub_seg6_dl_06011848[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600E2A8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bub_seg6_lights_0600E280.l, 1), - gsSPLight(&bub_seg6_lights_0600E280.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bub_seg6_vertex_060112A8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), @@ -222,8 +214,8 @@ const Gfx bub_seg6_dl_06011968[] = { // 0x06011A50 - 0x06011B28 const Gfx bub_seg6_dl_06011A50[] = { - gsSPLight(&bub_seg6_lights_0600E290.l, 1), - gsSPLight(&bub_seg6_lights_0600E290.a, 2), + gsSPLightColor(LIGHT_1, 0xff7594ff), + gsSPLightColor(LIGHT_2, 0x3f1d25ff), gsSPVertex(bub_seg6_vertex_06011718, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 1, 3, 4, 0x0), @@ -232,8 +224,8 @@ const Gfx bub_seg6_dl_06011A50[] = { gsSP2Triangles( 8, 9, 10, 0x0, 8, 5, 0, 0x0), gsSP2Triangles( 0, 11, 8, 0x0, 8, 10, 5, 0x0), gsSP2Triangles( 5, 10, 6, 0x0, 10, 9, 6, 0x0), - gsSPLight(&bub_seg6_lights_0600E280.l, 1), - gsSPLight(&bub_seg6_lights_0600E280.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bub_seg6_vertex_060117D8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 1, 5, 0x0, 2, 5, 6, 0x0), @@ -284,8 +276,8 @@ const Gfx bub_seg6_dl_06011C58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600EAA8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bub_seg6_lights_0600E280.l, 1), - gsSPLight(&bub_seg6_lights_0600E280.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bub_seg6_vertex_06011BD8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 0, 0x0, 0, 5, 6, 0x0), @@ -328,8 +320,8 @@ const Gfx bub_seg6_dl_06011DC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600EAA8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bub_seg6_lights_0600E280.l, 1), - gsSPLight(&bub_seg6_lights_0600E280.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bub_seg6_vertex_06011D50, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0), gsSP2Triangles( 2, 4, 0, 0x0, 3, 2, 1, 0x0), @@ -371,8 +363,8 @@ const Gfx bub_seg6_dl_06011F18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bub_seg6_texture_0600EAA8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bub_seg6_lights_0600E280.l, 1), - gsSPLight(&bub_seg6_lights_0600E280.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bub_seg6_vertex_06011EA8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 3, 0, 0x0, 0, 5, 6, 0x0), diff --git a/actors/bubba/model.inc.c b/actors/bubba/model.inc.c index 8e32bbbb..a64ca18b 100644 --- a/actors/bubba/model.inc.c +++ b/actors/bubba/model.inc.c @@ -34,22 +34,10 @@ ALIGNED8 static const Texture bubba_seg5_texture_05002408[] = { }; // 0x05004408 -static const Lights1 bubba_seg5_lights_05004408 = gdSPDefLights1( - 0x48, 0x31, 0x2a, - 0xf1, 0xa6, 0x8c, 0x28, 0x28, 0x28 -); // 0x05004420 -static const Lights1 bubba_seg5_lights_05004420 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004438 -static const Lights1 bubba_seg5_lights_05004438 = gdSPDefLights1( - 0x10, 0x07, 0x08, - 0x36, 0x1a, 0x1c, 0x28, 0x28, 0x28 -); // 0x05004450 static const Vtx bubba_seg5_vertex_05004450[] = { @@ -187,8 +175,8 @@ const Gfx bubba_seg5_dl_05004A40[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05000008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bubba_seg5_lights_05004408.l, 1), - gsSPLight(&bubba_seg5_lights_05004408.a, 2), + gsSPLightColor(LIGHT_1, 0xf1a68cff), + gsSPLightColor(LIGHT_2, 0x48312aff), gsSPVertex(bubba_seg5_vertex_05004450, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 1, 3, 0x0, 5, 1, 4, 0x0), @@ -201,8 +189,8 @@ const Gfx bubba_seg5_dl_05004AA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05001408), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bubba_seg5_lights_05004420.l, 1), - gsSPLight(&bubba_seg5_lights_05004420.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(bubba_seg5_vertex_050044C0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 5, 0, 4, 0x0), @@ -262,8 +250,8 @@ const Gfx bubba_seg5_dl_05004C40[] = { // 0x05004D48 - 0x05004E80 const Gfx bubba_seg5_dl_05004D48[] = { - gsSPLight(&bubba_seg5_lights_05004408.l, 1), - gsSPLight(&bubba_seg5_lights_05004408.a, 2), + gsSPLightColor(LIGHT_1, 0xf1a68cff), + gsSPLightColor(LIGHT_2, 0x48312aff), gsSPVertex(bubba_seg5_vertex_05004870, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 4, 6, 5, 0x0), @@ -272,16 +260,16 @@ const Gfx bubba_seg5_dl_05004D48[] = { gsSP2Triangles(10, 11, 7, 0x0, 3, 7, 0, 0x0), gsSP2Triangles( 0, 11, 1, 0x0, 6, 10, 9, 0x0), gsSP2Triangles(12, 10, 6, 0x0, 12, 11, 10, 0x0), - gsSPLight(&bubba_seg5_lights_05004438.l, 1), - gsSPLight(&bubba_seg5_lights_05004438.a, 2), + gsSPLightColor(LIGHT_1, 0x361a1cff), + gsSPLightColor(LIGHT_2, 0x100708ff), gsSPVertex(bubba_seg5_vertex_05004940, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 7, 0x0, 5, 6, 3, 0x0), gsSP2Triangles( 3, 8, 4, 0x0, 7, 6, 5, 0x0), gsSP2Triangles( 8, 2, 1, 0x0, 8, 1, 0, 0x0), gsSP1Triangle( 4, 8, 0, 0x0), - gsSPLight(&bubba_seg5_lights_05004420.l, 1), - gsSPLight(&bubba_seg5_lights_05004420.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(bubba_seg5_vertex_050049D0, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 0, 0x0, 0, 5, 3, 0x0), @@ -316,22 +304,10 @@ const Gfx bubba_seg5_dl_05004E80[] = { }; // 0x05004F30 -static const Lights1 bubba_seg5_lights_05004F30 = gdSPDefLights1( - 0x48, 0x31, 0x2a, - 0xf1, 0xa6, 0x8c, 0x28, 0x28, 0x28 -); // 0x05004F48 -static const Lights1 bubba_seg5_lights_05004F50 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004F60 -static const Lights1 bubba_seg5_lights_05004F60 = gdSPDefLights1( - 0x0a, 0x07, 0x08, - 0x22, 0x1a, 0x1c, 0x28, 0x28, 0x28 -); // 0x05004F78 static const Vtx bubba_seg5_vertex_05004F78[] = { @@ -466,8 +442,8 @@ const Gfx bubba_seg5_dl_05005538[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05000008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bubba_seg5_lights_05004F30.l, 1), - gsSPLight(&bubba_seg5_lights_05004F30.a, 2), + gsSPLightColor(LIGHT_1, 0xf1a68cff), + gsSPLightColor(LIGHT_2, 0x48312aff), gsSPVertex(bubba_seg5_vertex_05004F78, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 4, 0, 5, 0x0, 5, 0, 2, 0x0), @@ -480,8 +456,8 @@ const Gfx bubba_seg5_dl_050055A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bubba_seg5_texture_05001408), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bubba_seg5_lights_05004F50.l, 1), - gsSPLight(&bubba_seg5_lights_05004F50.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(bubba_seg5_vertex_05004FE8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 6, 5, 0, 0x0), @@ -541,8 +517,8 @@ const Gfx bubba_seg5_dl_05005738[] = { // 0x05005840 - 0x05005978 const Gfx bubba_seg5_dl_05005840[] = { - gsSPLight(&bubba_seg5_lights_05004F30.l, 1), - gsSPLight(&bubba_seg5_lights_05004F30.a, 2), + gsSPLightColor(LIGHT_1, 0xf1a68cff), + gsSPLightColor(LIGHT_2, 0x48312aff), gsSPVertex(bubba_seg5_vertex_05005368, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 5, 2, 1, 0x0, 1, 6, 5, 0x0), @@ -551,16 +527,16 @@ const Gfx bubba_seg5_dl_05005840[] = { gsSP2Triangles(11, 6, 1, 0x0, 9, 10, 8, 0x0), gsSP2Triangles(12, 5, 9, 0x0, 7, 5, 12, 0x0), gsSP2Triangles( 9, 8, 12, 0x0, 0, 11, 1, 0x0), - gsSPLight(&bubba_seg5_lights_05004F60.l, 1), - gsSPLight(&bubba_seg5_lights_05004F60.a, 2), + gsSPLightColor(LIGHT_1, 0x221a1cff), + gsSPLightColor(LIGHT_2, 0xa0708ff), gsSPVertex(bubba_seg5_vertex_05005438, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 6, 4, 3, 0x0), gsSP2Triangles( 3, 7, 6, 0x0, 3, 8, 7, 0x0), gsSP2Triangles( 7, 8, 0, 0x0, 8, 1, 0, 0x0), gsSP1Triangle( 8, 2, 1, 0x0), - gsSPLight(&bubba_seg5_lights_05004F50.l, 1), - gsSPLight(&bubba_seg5_lights_05004F50.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(bubba_seg5_vertex_050054C8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 5, 6, 0, 0x0), diff --git a/actors/bullet_bill/model.inc.c b/actors/bullet_bill/model.inc.c index e54a9de9..9bd581cf 100644 --- a/actors/bullet_bill/model.inc.c +++ b/actors/bullet_bill/model.inc.c @@ -1,10 +1,6 @@ // Bullet Bill // 0x0500BA90 -static const Lights1 bullet_bill_seg5_lights_0500BA90 = gdSPDefLights1( - 0x06, 0x07, 0x14, - 0x19, 0x1c, 0x52, 0x28, 0x28, 0x28 -); // 0x0500BAA8 ALIGNED8 static const Texture bullet_bill_seg5_texture_0500BAA8[] = { @@ -255,8 +251,8 @@ const Gfx bullet_bill_seg5_dl_0500E5E8[] = { 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), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bullet_bill_seg5_lights_0500BA90.l, 1), - gsSPLight(&bullet_bill_seg5_lights_0500BA90.a, 2), + gsSPLightColor(LIGHT_1, 0x191c52ff), + gsSPLightColor(LIGHT_2, 0x60714ff), gsSPVertex(bullet_bill_seg5_vertex_0500DAA8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/bully/model.inc.c b/actors/bully/model.inc.c index b1593e59..9b1a4adf 100644 --- a/actors/bully/model.inc.c +++ b/actors/bully/model.inc.c @@ -60,28 +60,12 @@ const Gfx bully_seg5_dl_05000398[] = { }; // 0x05000408 -static const Lights1 bully_seg5_lights_05000408 = gdSPDefLights1( - 0x00, 0x38, 0x00, - 0x00, 0xe3, 0x00, 0x28, 0x28, 0x28 -); // 0x05000420 -static const Lights1 bully_seg5_lights_05000420 = gdSPDefLights1( - 0x00, 0x3f, 0x00, - 0x00, 0xff, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 bully_lights_unused = gdSPDefLights1( - 0x3f, 0x29, 0x00, - 0xff, 0xa5, 0x00, 0x28, 0x28, 0x28 -); // 0x05000450 -static const Lights1 bully_seg5_lights_05000450 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05000468 ALIGNED8 static const Texture bully_seg5_texture_05000468[] = { @@ -312,8 +296,8 @@ static const Vtx bully_seg5_vertex_05003608[] = { // 0x05003708 - 0x050037A0 const Gfx bully_seg5_dl_05003708[] = { - gsSPLight(&bully_seg5_lights_05000408.l, 1), - gsSPLight(&bully_seg5_lights_05000408.a, 2), + gsSPLightColor(LIGHT_1, 0xe300ff), + gsSPLightColor(LIGHT_2, 0x3800ff), gsSPVertex(bully_seg5_vertex_05002C68, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 1, 5, 6, 0x0), @@ -328,8 +312,8 @@ const Gfx bully_seg5_dl_05003708[] = { // 0x050037A0 - 0x05003838 const Gfx bully_seg5_dl_050037A0[] = { - gsSPLight(&bully_seg5_lights_05000420.l, 1), - gsSPLight(&bully_seg5_lights_05000420.a, 2), + gsSPLightColor(LIGHT_1, 0xff00ff), + gsSPLightColor(LIGHT_2, 0x3f00ff), gsSPVertex(bully_seg5_vertex_05002D88, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 3, 1, 0, 0x0, 5, 6, 7, 0x0), @@ -344,8 +328,8 @@ const Gfx bully_seg5_dl_050037A0[] = { // 0x05003878 - 0x05003C50 const Gfx bully_seg5_dl_05003878[] = { - gsSPLight(&bully_seg5_lights_05000450.l, 1), - gsSPLight(&bully_seg5_lights_05000450.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(bully_seg5_vertex_05002F08, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 4, 3, 5, 0x0), diff --git a/actors/cannon_barrel/model.inc.c b/actors/cannon_barrel/model.inc.c index de69ffff..af935f8d 100644 --- a/actors/cannon_barrel/model.inc.c +++ b/actors/cannon_barrel/model.inc.c @@ -1,16 +1,8 @@ // Cannon Barrel // 0x08005878 -static const Lights1 cannon_barrel_seg8_lights_08005878 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08005890 -static const Lights1 cannon_barrel_seg8_lights_08005890 = gdSPDefLights1( - 0x00, 0x00, 0x0f, - 0x00, 0x00, 0x32, 0x28, 0x28, 0x28 -); // 0x080058A8 ALIGNED8 static const Texture cannon_barrel_seg8_texture_080058A8[] = { @@ -92,8 +84,8 @@ const Gfx cannon_barrel_seg8_dl_08006408[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cannon_barrel_seg8_texture_080058A8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cannon_barrel_seg8_lights_08005878.l, 1), - gsSPLight(&cannon_barrel_seg8_lights_08005878.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(cannon_barrel_seg8_vertex_080060A8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 1, 4, 0x0), @@ -108,8 +100,8 @@ const Gfx cannon_barrel_seg8_dl_08006408[] = { // 0x080064C0 - 0x08006660 const Gfx cannon_barrel_seg8_dl_080064C0[] = { - gsSPLight(&cannon_barrel_seg8_lights_08005890.l, 1), - gsSPLight(&cannon_barrel_seg8_lights_08005890.a, 2), + gsSPLightColor(LIGHT_1, 0x32ff), + gsSPLightColor(LIGHT_2, 0xfff), gsSPVertex(cannon_barrel_seg8_vertex_080061A8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 4, 0x0, 6, 4, 3, 0x0), diff --git a/actors/cannon_base/model.inc.c b/actors/cannon_base/model.inc.c index 61816de6..06587989 100644 --- a/actors/cannon_base/model.inc.c +++ b/actors/cannon_base/model.inc.c @@ -1,16 +1,8 @@ // Cannon Base // 0x08004988 -static const Lights1 cannon_base_seg8_lights_08004988 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x080049A0 -static const Lights1 cannon_base_seg8_lights_080049A0 = gdSPDefLights1( - 0x0e, 0x10, 0x4c, - 0x30, 0x37, 0xff, 0x28, 0x28, 0x28 -); // 0x080049B8 ALIGNED8 static const Texture cannon_base_seg8_texture_080049B8[] = { @@ -116,8 +108,8 @@ const Gfx cannon_base_seg8_dl_08005658[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cannon_base_seg8_texture_080049B8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cannon_base_seg8_lights_08004988.l, 1), - gsSPLight(&cannon_base_seg8_lights_08004988.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(cannon_base_seg8_vertex_080051B8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 2, 5, 0x0, 0, 5, 3, 0x0), @@ -128,8 +120,8 @@ const Gfx cannon_base_seg8_dl_08005658[] = { // 0x080056D0 - 0x080057F8 const Gfx cannon_base_seg8_dl_080056D0[] = { - gsSPLight(&cannon_base_seg8_lights_080049A0.l, 1), - gsSPLight(&cannon_base_seg8_lights_080049A0.a, 2), + gsSPLightColor(LIGHT_1, 0x3037ffff), + gsSPLightColor(LIGHT_2, 0xe104cff), gsSPVertex(cannon_base_seg8_vertex_08005278, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/actors/cannon_lid/model.inc.c b/actors/cannon_lid/model.inc.c index 96e4ecc9..93a04fb0 100644 --- a/actors/cannon_lid/model.inc.c +++ b/actors/cannon_lid/model.inc.c @@ -1,10 +1,6 @@ // Cannon Lid // 0x08004040 -static const Lights1 cannon_lid_seg8_lights_08004040 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08004058 ALIGNED8 static const Texture cannon_lid_seg8_texture_08004058[] = { @@ -24,8 +20,8 @@ const Gfx cannon_lid_seg8_dl_08004898[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cannon_lid_seg8_texture_08004058), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cannon_lid_seg8_lights_08004040.l, 1), - gsSPLight(&cannon_lid_seg8_lights_08004040.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(cannon_lid_seg8_vertex_08004858, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/actors/capswitch/model.inc.c b/actors/capswitch/model.inc.c index 2f3f0cd5..53e3764c 100644 --- a/actors/capswitch/model.inc.c +++ b/actors/capswitch/model.inc.c @@ -1,40 +1,16 @@ // Capswitch // 0x05001BB8 -static const Lights1 capswitch_seg5_lights_05001BB8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001BD0 -static const Lights1 capswitch_seg5_lights_05001BD0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001BE8 -static const Lights1 capswitch_seg5_lights_05001BE8 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05001C00 -static const Lights1 capswitch_seg5_lights_05001C00 = gdSPDefLights1( - 0x01, 0x2a, 0x09, - 0x07, 0xa9, 0x25, 0x28, 0x28, 0x28 -); // 0x05001C18 -static const Lights1 capswitch_seg5_lights_05001C18 = gdSPDefLights1( - 0x00, 0x00, 0x3f, - 0x00, 0x00, 0xff, 0x28, 0x28, 0x28 -); // 0x05001C30 -static const Lights1 capswitch_seg5_lights_05001C30 = gdSPDefLights1( - 0x3f, 0x25, 0x02, - 0xff, 0x96, 0x08, 0x28, 0x28, 0x28 -); // 0x05001C48 ALIGNED8 static const Texture capswitch_seg5_texture_05001C48[] = { @@ -67,8 +43,8 @@ const Gfx capswitch_seg5_dl_05002D88[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, capswitch_seg5_texture_05001C48), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&capswitch_seg5_lights_05001BB8.l, 1), - gsSPLight(&capswitch_seg5_lights_05001BB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(capswitch_seg5_vertex_05002CC8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 4, 3, 0, 0x0, 5, 4, 0, 0x0), @@ -134,8 +110,8 @@ const Gfx capswitch_seg5_dl_05003020[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, capswitch_seg5_texture_05002C48), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 4 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&capswitch_seg5_lights_05001BD0.l, 1), - gsSPLight(&capswitch_seg5_lights_05001BD0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(capswitch_seg5_vertex_05002E60, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 4, 7, 6, 0x0), @@ -210,32 +186,32 @@ const Gfx capswitch_seg5_dl_05003280[] = { // 0x05003350 - 0x05003370 const Gfx capswitch_seg5_dl_05003350[] = { - gsSPLight(&capswitch_seg5_lights_05001BE8.l, 1), - gsSPLight(&capswitch_seg5_lights_05001BE8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x3f0000ff), gsSPDisplayList(capswitch_seg5_dl_05003280), gsSPEndDisplayList(), }; // 0x05003370 - 0x05003390 const Gfx capswitch_seg5_dl_05003370[] = { - gsSPLight(&capswitch_seg5_lights_05001C00.l, 1), - gsSPLight(&capswitch_seg5_lights_05001C00.a, 2), + gsSPLightColor(LIGHT_1, 0x7a925ff), + gsSPLightColor(LIGHT_2, 0x12a09ff), gsSPDisplayList(capswitch_seg5_dl_05003280), gsSPEndDisplayList(), }; // 0x05003390 - 0x050033B0 const Gfx capswitch_seg5_dl_05003390[] = { - gsSPLight(&capswitch_seg5_lights_05001C18.l, 1), - gsSPLight(&capswitch_seg5_lights_05001C18.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x3fff), gsSPDisplayList(capswitch_seg5_dl_05003280), gsSPEndDisplayList(), }; // 0x050033B0 - 0x050033D0 const Gfx capswitch_seg5_dl_050033B0[] = { - gsSPLight(&capswitch_seg5_lights_05001C30.l, 1), - gsSPLight(&capswitch_seg5_lights_05001C30.a, 2), + gsSPLightColor(LIGHT_1, 0xff9608ff), + gsSPLightColor(LIGHT_2, 0x3f2502ff), gsSPDisplayList(capswitch_seg5_dl_05003280), gsSPEndDisplayList(), }; diff --git a/actors/chain_chomp/model.inc.c b/actors/chain_chomp/model.inc.c index 1f8bab63..a02952e6 100644 --- a/actors/chain_chomp/model.inc.c +++ b/actors/chain_chomp/model.inc.c @@ -1,22 +1,10 @@ // Chain Chomp // 0x06021388 -UNUSED static const Lights1 chain_chomp_lights_unused1 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060213A0 -UNUSED static const Lights1 chain_chomp_lights_unused2 = gdSPDefLights1( - 0x03, 0x03, 0x05, - 0x0d, 0x0f, 0x16, 0x28, 0x28, 0x28 -); // 0x060213B8 -UNUSED static const Lights1 chain_chomp_lights_unused3 = gdSPDefLights1( - 0x25, 0x00, 0x00, - 0x96, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x060213D0 ALIGNED8 static const Texture chain_chomp_seg6_texture_060213D0[] = { @@ -366,10 +354,6 @@ const Gfx chain_chomp_seg6_dl_06024940[] = { }; // 0x060249D0 -static const Lights1 chain_chomp_seg6_lights_060249D0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060249E8 static const Vtx chain_chomp_seg6_vertex_060249E8[] = { @@ -392,8 +376,8 @@ const Gfx chain_chomp_seg6_dl_06024AA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, chain_chomp_seg6_texture_060233D0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&chain_chomp_seg6_lights_060249D0.l, 1), - gsSPLight(&chain_chomp_seg6_lights_060249D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(chain_chomp_seg6_vertex_060249E8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/chair/model.inc.c b/actors/chair/model.inc.c index 86c65dad..6944dce3 100644 --- a/actors/chair/model.inc.c +++ b/actors/chair/model.inc.c @@ -1,10 +1,6 @@ // Chair // Unreferenced light group -UNUSED static const Lights1 chair_lights_unused = gdSPDefLights1( - 0x19, 0x0d, 0x06, - 0x64, 0x36, 0x1a, 0x28, 0x28, 0x28 -); // 0x05003060 ALIGNED8 static const Texture chair_seg5_texture_05003060[] = { @@ -28,10 +24,6 @@ UNUSED ALIGNED8 static const Texture chair_seg5_texture_05004460[] = { }; // 0x05004C60 -static const Lights1 chair_seg5_lights_05004C60 = gdSPDefLights1( - 0x47, 0x47, 0x47, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x05004C78 static const Vtx chair_seg5_vertex_05004C78[] = { @@ -74,8 +66,8 @@ const Gfx chair_seg5_dl_05004E38[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, chair_seg5_texture_05003060), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&chair_seg5_lights_05004C60.l, 1), - gsSPLight(&chair_seg5_lights_05004C60.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x474747ff), gsSPVertex(chair_seg5_vertex_05004C78, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -107,10 +99,6 @@ const Gfx chair_seg5_dl_05004EE8[] = { }; // 0x05004F58 -static const Lights1 chair_seg5_lights_05004F58 = gdSPDefLights1( - 0x47, 0x47, 0x47, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x05004F70 static const Vtx chair_seg5_vertex_05004F70[] = { @@ -149,8 +137,8 @@ const Gfx chair_seg5_dl_050050F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, chair_seg5_texture_05004060), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&chair_seg5_lights_05004F58.l, 1), - gsSPLight(&chair_seg5_lights_05004F58.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x474747ff), gsSPVertex(chair_seg5_vertex_05004F70, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -181,10 +169,6 @@ const Gfx chair_seg5_dl_05005190[] = { }; // 0x05005200 -static const Lights1 chair_seg5_lights_05005200 = gdSPDefLights1( - 0x47, 0x47, 0x47, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x05005218 static const Vtx chair_seg5_vertex_05005218[] = { @@ -221,8 +205,8 @@ const Gfx chair_seg5_dl_05005378[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, chair_seg5_texture_05003860), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&chair_seg5_lights_05005200.l, 1), - gsSPLight(&chair_seg5_lights_05005200.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x474747ff), gsSPVertex(chair_seg5_vertex_05005218, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -253,10 +237,6 @@ const Gfx chair_seg5_dl_05005408[] = { }; // 0x05005478 -static const Lights1 chair_seg5_lights_05005478 = gdSPDefLights1( - 0x47, 0x47, 0x47, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x05005490 static const Vtx chair_seg5_vertex_05005490[] = { @@ -293,8 +273,8 @@ const Gfx chair_seg5_dl_050055F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, chair_seg5_texture_05003860), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&chair_seg5_lights_05005478.l, 1), - gsSPLight(&chair_seg5_lights_05005478.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x474747ff), gsSPVertex(chair_seg5_vertex_05005490, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/actors/checkerboard_platform/model.inc.c b/actors/checkerboard_platform/model.inc.c index 3ce6ef3e..218f7191 100644 --- a/actors/checkerboard_platform/model.inc.c +++ b/actors/checkerboard_platform/model.inc.c @@ -1,10 +1,6 @@ // Checkerboard Platform // 0x0800C828 -static const Lights1 checkerboard_platform_seg8_lights_0800C828 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0800C840 ALIGNED8 static const Texture checkerboard_platform_seg8_texture_0800C840[] = { @@ -53,8 +49,8 @@ const Gfx checkerboard_platform_seg8_dl_0800D5C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, checkerboard_platform_seg8_texture_0800C840), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&checkerboard_platform_seg8_lights_0800C828.l, 1), - gsSPLight(&checkerboard_platform_seg8_lights_0800C828.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(checkerboard_platform_seg8_vertex_0800D440, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/actors/chillychief/model.inc.c b/actors/chillychief/model.inc.c index 415329e2..d5ec2393 100644 --- a/actors/chillychief/model.inc.c +++ b/actors/chillychief/model.inc.c @@ -1,28 +1,12 @@ // Chilly Chief (Chill Bully) // 0x06000000 -static const Lights1 chilly_chief_seg6_lights_06000000 = gdSPDefLights1( - 0x00, 0x38, 0x00, - 0x00, 0xe3, 0x00, 0x28, 0x28, 0x28 -); // 0x06000018 -static const Lights1 chilly_chief_seg6_lights_06000018 = gdSPDefLights1( - 0x00, 0x3f, 0x00, - 0x00, 0xff, 0x00, 0x28, 0x28, 0x28 -); // 0x06000030 -static const Lights1 chilly_chief_seg6_lights_06000030 = gdSPDefLights1( - 0x3f, 0x29, 0x00, - 0xff, 0xa5, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 chillychief_lights_unused = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x06000060 ALIGNED8 static const Texture chilly_chief_seg6_texture_06000060[] = { @@ -106,8 +90,8 @@ static const Vtx chilly_chief_seg6_vertex_06002AA0[] = { // 0x06002B30 - 0x06002BC8 const Gfx chilly_chief_seg6_dl_06002B30[] = { - gsSPLight(&chilly_chief_seg6_lights_06000000.l, 1), - gsSPLight(&chilly_chief_seg6_lights_06000000.a, 2), + gsSPLightColor(LIGHT_1, 0xe300ff), + gsSPLightColor(LIGHT_2, 0x3800ff), gsSPVertex(chilly_chief_seg6_vertex_06002860, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 1, 5, 6, 0x0), @@ -122,8 +106,8 @@ const Gfx chilly_chief_seg6_dl_06002B30[] = { // 0x06002BC8 - 0x06002C60 const Gfx chilly_chief_seg6_dl_06002BC8[] = { - gsSPLight(&chilly_chief_seg6_lights_06000018.l, 1), - gsSPLight(&chilly_chief_seg6_lights_06000018.a, 2), + gsSPLightColor(LIGHT_1, 0xff00ff), + gsSPLightColor(LIGHT_2, 0x3f00ff), gsSPVertex(chilly_chief_seg6_vertex_06002980, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 3, 1, 0, 0x0, 5, 6, 7, 0x0), @@ -138,8 +122,8 @@ const Gfx chilly_chief_seg6_dl_06002BC8[] = { // 0x06002C60 - 0x06002C98 const Gfx chilly_chief_seg6_dl_06002C60[] = { - gsSPLight(&chilly_chief_seg6_lights_06000030.l, 1), - gsSPLight(&chilly_chief_seg6_lights_06000030.a, 2), + gsSPLightColor(LIGHT_1, 0xffa500ff), + gsSPLightColor(LIGHT_2, 0x3f2900ff), gsSPVertex(chilly_chief_seg6_vertex_06002AA0, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), diff --git a/actors/chuckya/model.inc.c b/actors/chuckya/model.inc.c index f083ce70..b81cf31b 100644 --- a/actors/chuckya/model.inc.c +++ b/actors/chuckya/model.inc.c @@ -1,46 +1,18 @@ // Chuckya // Unreferenced light group -UNUSED static const Lights1 chuckya_lights_unused1 = gdSPDefLights1( - 0x26, 0x00, 0x27, - 0x9a, 0x00, 0x9c, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 chuckya_lights_unused2 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 chuckya_lights_unused3 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 chuckya_lights_unused4 = gdSPDefLights1( - 0x0e, 0x0e, 0x0e, - 0x39, 0x39, 0x39, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 chuckya_lights_unused5 = gdSPDefLights1( - 0x39, 0x20, 0x00, - 0xe4, 0x83, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 chuckya_lights_unused6 = gdSPDefLights1( - 0x3f, 0x27, 0x00, - 0xff, 0x9e, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 chuckya_lights_unused7 = gdSPDefLights1( - 0x15, 0x14, 0x16, - 0x57, 0x53, 0x58, 0x28, 0x28, 0x28 -); // 0x08006778 ALIGNED8 static const Texture chuckya_seg8_texture_08006778[] = { @@ -336,10 +308,6 @@ const Gfx chuckya_seg8_dl_0800A5F8[] = { }; // 0x0800A668 -static const Lights1 chuckya_seg8_lights_0800A668 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0800A680 static const Vtx chuckya_seg8_vertex_0800A680[] = { @@ -358,8 +326,8 @@ const Gfx chuckya_seg8_dl_0800A700[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, chuckya_seg8_texture_08006778), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&chuckya_seg8_lights_0800A668.l, 1), - gsSPLight(&chuckya_seg8_lights_0800A668.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(chuckya_seg8_vertex_0800A680, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -385,10 +353,6 @@ const Gfx chuckya_seg8_dl_0800A758[] = { }; // 0x0800A7C8 -static const Lights1 chuckya_seg8_lights_0800A7C8 = gdSPDefLights1( - 0x29, 0x29, 0x29, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x0800A7E0 static const Vtx chuckya_seg8_vertex_0800A7E0[] = { @@ -405,8 +369,8 @@ static const Vtx chuckya_seg8_vertex_0800A7E0[] = { // 0x0800A870 - 0x0800A8D0 const Gfx chuckya_seg8_dl_0800A870[] = { - gsSPLight(&chuckya_seg8_lights_0800A7C8.l, 1), - gsSPLight(&chuckya_seg8_lights_0800A7C8.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x292929ff), gsSPVertex(chuckya_seg8_vertex_0800A7E0, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 5, 6, 2, 0x0), @@ -424,10 +388,6 @@ const Gfx chuckya_seg8_dl_0800A8D0[] = { }; // 0x0800A8F0 -static const Lights1 chuckya_seg8_lights_0800A8F0 = gdSPDefLights1( - 0x4c, 0x4c, 0x00, - 0xff, 0xff, 0x00, 0x28, 0x28, 0x28 -); // 0x0800A908 static const Vtx chuckya_seg8_vertex_0800A908[] = { @@ -440,8 +400,8 @@ static const Vtx chuckya_seg8_vertex_0800A908[] = { // 0x0800A958 - 0x0800A998 const Gfx chuckya_seg8_dl_0800A958[] = { - gsSPLight(&chuckya_seg8_lights_0800A8F0.l, 1), - gsSPLight(&chuckya_seg8_lights_0800A8F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x4c4c00ff), gsSPVertex(chuckya_seg8_vertex_0800A908, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 0, 4, 1, 0x0), @@ -457,10 +417,6 @@ const Gfx chuckya_seg8_dl_0800A998[] = { }; // 0x0800A9B8 -static const Lights1 chuckya_seg8_lights_0800A9B8 = gdSPDefLights1( - 0x0c, 0x0c, 0x0c, - 0x32, 0x32, 0x32, 0x28, 0x28, 0x28 -); // 0x0800A9D0 static const Vtx chuckya_seg8_vertex_0800A9D0[] = { @@ -498,8 +454,8 @@ static const Vtx chuckya_seg8_vertex_0800AAC0[] = { // 0x0800AB70 - 0x0800ABE8 const Gfx chuckya_seg8_dl_0800AB70[] = { - gsSPLight(&chuckya_seg8_lights_0800A9B8.l, 1), - gsSPLight(&chuckya_seg8_lights_0800A9B8.a, 2), + gsSPLightColor(LIGHT_1, 0x323232ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(chuckya_seg8_vertex_0800A9D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/clam_shell/model.inc.c b/actors/clam_shell/model.inc.c index 40ebc6b3..b464073e 100644 --- a/actors/clam_shell/model.inc.c +++ b/actors/clam_shell/model.inc.c @@ -1,16 +1,8 @@ // Clam Shell // Unreferenced light group -UNUSED static const Lights1 clam_shell_lights_unused1 = gdSPDefLights1( - 0x1b, 0x23, 0x30, - 0x6d, 0x8f, 0xc3, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 clam_shell_lights_unused2 = gdSPDefLights1( - 0x18, 0x28, 0x38, - 0x60, 0xa2, 0xe2, 0x28, 0x28, 0x28 -); // 0x05000030 ALIGNED8 static const Texture clam_shell_seg5_texture_05000030[] = { @@ -23,10 +15,6 @@ ALIGNED8 static const Texture clam_shell_seg5_texture_05000830[] = { }; // 0x05001030 -static const Lights1 clam_shell_seg5_lights_05001030 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001048 static const Vtx clam_shell_seg5_vertex_05001048[] = { @@ -63,8 +51,8 @@ const Gfx clam_shell_seg5_dl_050011A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, clam_shell_seg5_texture_05000030), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&clam_shell_seg5_lights_05001030.l, 1), - gsSPLight(&clam_shell_seg5_lights_05001030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(clam_shell_seg5_vertex_05001048, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 4, 5, 3, 0x0, 4, 0, 6, 0x0), @@ -108,10 +96,6 @@ const Gfx clam_shell_seg5_dl_050012B8[] = { }; // 0x05001320 -static const Lights1 clam_shell_seg5_lights_05001320 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001338 static const Vtx clam_shell_seg5_vertex_05001338[] = { @@ -146,8 +130,8 @@ const Gfx clam_shell_seg5_dl_05001478[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, clam_shell_seg5_texture_05000030), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&clam_shell_seg5_lights_05001320.l, 1), - gsSPLight(&clam_shell_seg5_lights_05001320.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(clam_shell_seg5_vertex_05001338, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 4, 5, 0, 0x0, 0, 5, 6, 0x0), diff --git a/actors/cyan_fish/model.inc.c b/actors/cyan_fish/model.inc.c index 9dff09c9..f7ef9e59 100644 --- a/actors/cyan_fish/model.inc.c +++ b/actors/cyan_fish/model.inc.c @@ -8,10 +8,6 @@ ALIGNED8 static const Texture cyan_fish_seg6_texture_0600D468[] = { #include "actors/cyan_fish/cyan_fish.rgba16.inc.c" }; -static const Lights1 cyan_fish_seg6_lights_0600DC68 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600DC80 static const Vtx cyan_fish_seg6_vertex_0600DC80[] = { @@ -32,8 +28,8 @@ const Gfx cyan_fish_seg6_dl_0600DD20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cyan_fish_seg6_texture_0600D468), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cyan_fish_seg6_lights_0600DC68.l, 1), - gsSPLight(&cyan_fish_seg6_lights_0600DC68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cyan_fish_seg6_vertex_0600DC80, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 4, 0, 3, 0x0), @@ -63,10 +59,6 @@ const Gfx cyan_fish_seg6_dl_0600DDD8[] = { }; // 0x0600DE38 -static const Lights1 cyan_fish_seg6_lights_0600DE38 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600DE50 static const Vtx cyan_fish_seg6_vertex_0600DE50[] = { @@ -81,8 +73,8 @@ const Gfx cyan_fish_seg6_dl_0600DE90[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cyan_fish_seg6_texture_0600D468), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cyan_fish_seg6_lights_0600DE38.l, 1), - gsSPLight(&cyan_fish_seg6_lights_0600DE38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cyan_fish_seg6_vertex_0600DE50, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSPEndDisplayList(), @@ -107,10 +99,6 @@ const Gfx cyan_fish_seg6_dl_0600DED8[] = { }; // 0x0600DF48 -static const Lights1 cyan_fish_seg6_lights_0600DF48 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600DF60 static const Vtx cyan_fish_seg6_vertex_0600DF60[] = { @@ -127,8 +115,8 @@ const Gfx cyan_fish_seg6_dl_0600DFC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cyan_fish_seg6_texture_0600D468), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cyan_fish_seg6_lights_0600DF48.l, 1), - gsSPLight(&cyan_fish_seg6_lights_0600DF48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cyan_fish_seg6_vertex_0600DF60, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 0, 3, 1, 0x0), diff --git a/actors/dirt/model.inc.c b/actors/dirt/model.inc.c index 529c17b6..d6411a66 100644 --- a/actors/dirt/model.inc.c +++ b/actors/dirt/model.inc.c @@ -1,28 +1,12 @@ // Dirt // 0x0302BD68 -static const Lights1 dirt_seg3_lights_red = gdSPDefLights1( - 0x3f, 0x19, 0x19, - 0xff, 0x64, 0x64, 0x28, 0x28, 0x28 -); // 0x0302BD80 -static const Lights1 dirt_seg3_lights_green = gdSPDefLights1( - 0x19, 0x3f, 0x19, - 0x64, 0xff, 0x64, 0x28, 0x28, 0x28 -); // 0x0302BD98 -static const Lights1 dirt_seg3_lights_blue = gdSPDefLights1( - 0x19, 0x19, 0x3f, - 0x64, 0x64, 0xff, 0x28, 0x28, 0x28 -); // 0x0302BDB0 -static const Lights1 dirt_seg3_lights_yellow = gdSPDefLights1( - 0x3f, 0x3f, 0x19, - 0xff, 0xff, 0x64, 0x28, 0x28, 0x28 -); // 0x0302BDC8 static const Vtx dirt_seg3_vertex_0302BDC8[] = { @@ -120,32 +104,32 @@ const Gfx dirt_seg3_sub_dl_cartoon_star[] = { // 0x0302C298 - 0x0302C2B8 const Gfx dirt_seg3_dl_cartoon_star_red[] = { - gsSPLight(&dirt_seg3_lights_red.l, 1), - gsSPLight(&dirt_seg3_lights_red.a, 2), + gsSPLightColor(LIGHT_1, 0xff6464ff), + gsSPLightColor(LIGHT_2, 0x3f1919ff), gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star), gsSPEndDisplayList(), }; // 0x0302C2B8 - 0x0302C2D8 const Gfx dirt_seg3_dl_cartoon_star_green[] = { - gsSPLight(&dirt_seg3_lights_green.l, 1), - gsSPLight(&dirt_seg3_lights_green.a, 2), + gsSPLightColor(LIGHT_1, 0x64ff64ff), + gsSPLightColor(LIGHT_2, 0x193f19ff), gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star), gsSPEndDisplayList(), }; // 0x0302C2D8 - 0x0302C2F8 const Gfx dirt_seg3_dl_cartoon_star_blue[] = { - gsSPLight(&dirt_seg3_lights_blue.l, 1), - gsSPLight(&dirt_seg3_lights_blue.a, 2), + gsSPLightColor(LIGHT_1, 0x6464ffff), + gsSPLightColor(LIGHT_2, 0x19193fff), gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star), gsSPEndDisplayList(), }; // 0x0302C2F8 - 0x0302C318 const Gfx dirt_seg3_dl_cartoon_star_yellow[] = { - gsSPLight(&dirt_seg3_lights_yellow.l, 1), - gsSPLight(&dirt_seg3_lights_yellow.a, 2), + gsSPLightColor(LIGHT_1, 0xffff64ff), + gsSPLightColor(LIGHT_2, 0x3f3f19ff), gsSPDisplayList(dirt_seg3_sub_dl_cartoon_star), gsSPEndDisplayList(), }; @@ -164,8 +148,8 @@ const Gfx dirt_seg3_dl_cartoon_star_billboard[] = { // 0x0302C378 - 0x0302C3B0 const Gfx dirt_seg3_dl_tiny_particle_red[] = { - gsSPLight(&dirt_seg3_lights_red.l, 1), - gsSPLight(&dirt_seg3_lights_red.a, 2), + gsSPLightColor(LIGHT_1, 0xff6464ff), + gsSPLightColor(LIGHT_2, 0x3f1919ff), gsSPClearGeometryMode(G_CULL_BACK), gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), @@ -175,8 +159,8 @@ const Gfx dirt_seg3_dl_tiny_particle_red[] = { // 0x0302C3B0 - 0x0302C3E8 const Gfx dirt_seg3_dl_tiny_particle_green[] = { - gsSPLight(&dirt_seg3_lights_green.l, 1), - gsSPLight(&dirt_seg3_lights_green.a, 2), + gsSPLightColor(LIGHT_1, 0x64ff64ff), + gsSPLightColor(LIGHT_2, 0x193f19ff), gsSPClearGeometryMode(G_CULL_BACK), gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), @@ -186,8 +170,8 @@ const Gfx dirt_seg3_dl_tiny_particle_green[] = { // 0x0302C3E8 - 0x0302C420 const Gfx dirt_seg3_dl_tiny_particle_blue[] = { - gsSPLight(&dirt_seg3_lights_blue.l, 1), - gsSPLight(&dirt_seg3_lights_blue.a, 2), + gsSPLightColor(LIGHT_1, 0x6464ffff), + gsSPLightColor(LIGHT_2, 0x19193fff), gsSPClearGeometryMode(G_CULL_BACK), gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), @@ -197,8 +181,8 @@ const Gfx dirt_seg3_dl_tiny_particle_blue[] = { // 0x0302C420 - 0x0302C458 const Gfx dirt_seg3_dl_tiny_particle_yellow[] = { - gsSPLight(&dirt_seg3_lights_yellow.l, 1), - gsSPLight(&dirt_seg3_lights_yellow.a, 2), + gsSPLightColor(LIGHT_1, 0xffff64ff), + gsSPLightColor(LIGHT_2, 0x3f3f19ff), gsSPClearGeometryMode(G_CULL_BACK), gsSPVertex(dirt_seg3_vertex_tiny_particle, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), diff --git a/actors/door/model.inc.c b/actors/door/model.inc.c index 5cb0d8dc..d6910a06 100644 --- a/actors/door/model.inc.c +++ b/actors/door/model.inc.c @@ -1,16 +1,8 @@ // Door // 0x03009CE0 -static const Lights1 door_seg3_lights_default = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x03009CF8 -static const Lights1 door_seg3_lights_yellow_handle = gdSPDefLights1( - 0x3f, 0x3f, 0x00, - 0xff, 0xff, 0x00, 0x28, 0x28, 0x28 -); // 0x03009D10 ALIGNED8 static const Texture door_seg3_texture_polished_wooden_door[] = { @@ -151,8 +143,8 @@ const Gfx door_seg3_sub_dl_polished_wooden_door_near[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, door_seg3_texture_polished_wooden_door_sides), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&door_seg3_lights_default.l, 1), - gsSPLight(&door_seg3_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(door_seg3_vertex_polished_wooden_door_near_sides, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -169,8 +161,8 @@ const Gfx door_seg3_sub_dl_polished_wooden_door_near[] = { // 0x03013CC8 - 0x03013D78 const Gfx door_seg3_sub_dl_polished_wooden_door_handle_1[] = { - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(door_seg3_vertex_polished_wooden_door_handle_1, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 1, 3, 0x0, 5, 2, 4, 0x0), @@ -186,8 +178,8 @@ const Gfx door_seg3_sub_dl_polished_wooden_door_handle_1[] = { // 0x03013D78 - 0x03013E28 const Gfx door_seg3_sub_dl_polished_wooden_door_handle_2[] = { - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(door_seg3_vertex_polished_wooden_door_handle_2, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 0, 5, 1, 0x0), @@ -277,16 +269,16 @@ const Gfx door_seg3_sub_dl_polished_wooden_door_far[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, door_seg3_texture_polished_wooden_door), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&door_seg3_lights_default.l, 1), - gsSPLight(&door_seg3_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(door_seg3_vertex_polished_wooden_door_far, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(door_seg3_vertex_polished_wooden_door_far_handle, 8, 0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSPSetGeometryMode(G_SHADING_SMOOTH), @@ -334,8 +326,8 @@ const Gfx door_seg3_vertex_star_sign_begin[] = { gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&door_seg3_lights_default.l, 1), - gsSPLight(&door_seg3_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPEndDisplayList(), }; @@ -435,8 +427,8 @@ const Gfx door_seg3_sub_dl_key_door_sides[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, door_seg3_texture_polished_wooden_door_sides), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&door_seg3_lights_default.l, 1), - gsSPLight(&door_seg3_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(door_seg3_vertex_key_door_sides, 16, 0), gsSP2Triangles( 0, 1, 3, 0x0, 1, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -510,8 +502,8 @@ const Gfx door_seg3_sub_dl_lock[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, door_seg3_texture_lock), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&door_seg3_lights_default.l, 1), - gsSPLight(&door_seg3_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(door_seg3_vertex_lock, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -639,8 +631,8 @@ const Gfx door_seg3_sub_dl_themed_handle_near[] = { // TODO: Combine vertices // 0x030149C0 - 0x03014A20 const Gfx door_seg3_sub_dl_themed_door_sides[] = { - gsSPLight(&door_seg3_lights_default.l, 1), - gsSPLight(&door_seg3_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(door_seg3_vertex_themed_door_sides, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -688,8 +680,8 @@ const Gfx door_seg3_dl_rough_wooden_door_near[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_SHADING_SMOOTH), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_near), }; @@ -714,8 +706,8 @@ const Gfx door_seg3_dl_rough_wooden_door2_near[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_SHADING_SMOOTH), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_near), }; @@ -740,8 +732,8 @@ const Gfx door_seg3_dl_metal_door_near[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_SHADING_SMOOTH), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_near), }; @@ -766,8 +758,8 @@ const Gfx door_seg3_dl_cave_door_near[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_SHADING_SMOOTH), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_near), }; @@ -792,8 +784,8 @@ const Gfx door_seg3_dl_haunted_door_near[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_SHADING_SMOOTH), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_near), }; @@ -823,8 +815,8 @@ static const Vtx door_seg3_vertex_themed_handle_far[] = { // 0x03014EF0 - 0x03014F30 const Gfx door_seg3_sub_dl_themed_door_far[] = { - gsSPLight(&door_seg3_lights_default.l, 1), - gsSPLight(&door_seg3_lights_default.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(door_seg3_vertex_themed_door_far, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -863,8 +855,8 @@ const Gfx door_seg3_dl_rough_wooden_door_far[] = { gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_far), }; @@ -881,8 +873,8 @@ const Gfx door_seg3_dl_rough_wooden_door2_far[] = { gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_far), }; @@ -899,8 +891,8 @@ const Gfx door_seg3_dl_metal_door_far[] = { gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_far), }; @@ -917,8 +909,8 @@ const Gfx door_seg3_dl_cave_door_far[] = { gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_far), }; @@ -935,7 +927,7 @@ const Gfx door_seg3_dl_haunted_door_far[] = { gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), - gsSPLight(&door_seg3_lights_yellow_handle.l, 1), - gsSPLight(&door_seg3_lights_yellow_handle.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPBranchList(door_seg3_sub_dl_themed_handle_far), }; diff --git a/actors/dorrie/model.inc.c b/actors/dorrie/model.inc.c index b2097a5d..b47a2017 100644 --- a/actors/dorrie/model.inc.c +++ b/actors/dorrie/model.inc.c @@ -16,10 +16,6 @@ ALIGNED8 static const Texture dorrie_seg6_texture_0600ADA0[] = { }; // 0x0600B5A0 -static const Lights1 dorrie_seg6_lights_0600B5A0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600B5B8 static const Vtx dorrie_seg6_vertex_0600B5B8[] = { @@ -93,8 +89,8 @@ const Gfx dorrie_seg6_dl_0600B8E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_0600ADA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600B5A0.l, 1), - gsSPLight(&dorrie_seg6_lights_0600B5A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600B5B8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 3, 4, 0x0), @@ -167,10 +163,6 @@ const Gfx dorrie_seg6_dl_0600BAF8[] = { }; // 0x0600BBC0 -static const Lights1 dorrie_seg6_lights_0600BBC0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600BBD8 static const Vtx dorrie_seg6_vertex_0600BBD8[] = { @@ -230,8 +222,8 @@ const Gfx dorrie_seg6_dl_0600BE68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_0600ADA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600BBC0.l, 1), - gsSPLight(&dorrie_seg6_lights_0600BBC0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600BBD8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 0, 5, 1, 0x0), @@ -298,10 +290,6 @@ const Gfx dorrie_seg6_dl_0600C030[] = { }; // 0x0600C0F8 -static const Lights1 dorrie_seg6_lights_0600C0F8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600C110 static const Vtx dorrie_seg6_vertex_0600C110[] = { @@ -348,8 +336,8 @@ const Gfx dorrie_seg6_dl_0600C310[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600C0F8.l, 1), - gsSPLight(&dorrie_seg6_lights_0600C0F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600C110, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 7, 0x0, 4, 8, 7, 0x0), @@ -399,10 +387,6 @@ const Gfx dorrie_seg6_dl_0600C468[] = { }; // 0x0600C510 -static const Lights1 dorrie_seg6_lights_0600C510 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600C528 static const Vtx dorrie_seg6_vertex_0600C528[] = { @@ -456,8 +440,8 @@ const Gfx dorrie_seg6_dl_0600C758[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600C510.l, 1), - gsSPLight(&dorrie_seg6_lights_0600C510.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600C528, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 4, 6, 0x0), @@ -508,10 +492,6 @@ const Gfx dorrie_seg6_dl_0600C8B8[] = { }; // 0x0600C960 -static const Lights1 dorrie_seg6_lights_0600C960 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600C978 static const Vtx dorrie_seg6_vertex_0600C978[] = { @@ -609,8 +589,8 @@ const Gfx dorrie_seg6_dl_0600CDE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600C960.l, 1), - gsSPLight(&dorrie_seg6_lights_0600C960.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600C978, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 0, 0x0), @@ -671,10 +651,6 @@ const Gfx dorrie_seg6_dl_0600CFD0[] = { }; // 0x0600D078 -static const Lights1 dorrie_seg6_lights_0600D078 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600D090 static const Vtx dorrie_seg6_vertex_0600D090[] = { @@ -732,8 +708,8 @@ const Gfx dorrie_seg6_dl_0600D300[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600D078.l, 1), - gsSPLight(&dorrie_seg6_lights_0600D078.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600D090, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 0, 0x0), @@ -782,10 +758,6 @@ const Gfx dorrie_seg6_dl_0600D440[] = { }; // 0x0600D4E8 -static const Lights1 dorrie_seg6_lights_0600D4E8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600D500 static const Vtx dorrie_seg6_vertex_0600D500[] = { @@ -818,8 +790,8 @@ const Gfx dorrie_seg6_dl_0600D620[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600D4E8.l, 1), - gsSPLight(&dorrie_seg6_lights_0600D4E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600D500, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 3, 4, 1, 0x0), @@ -859,10 +831,6 @@ const Gfx dorrie_seg6_dl_0600D6D8[] = { }; // 0x0600D780 -static const Lights1 dorrie_seg6_lights_0600D780 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600D798 static const Vtx dorrie_seg6_vertex_0600D798[] = { @@ -881,8 +849,8 @@ const Gfx dorrie_seg6_dl_0600D818[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600D780.l, 1), - gsSPLight(&dorrie_seg6_lights_0600D780.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600D798, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0), gsSP2Triangles( 2, 1, 5, 0x0, 2, 6, 3, 0x0), @@ -919,10 +887,6 @@ const Gfx dorrie_seg6_dl_0600D8B0[] = { }; // 0x0600D958 -static const Lights1 dorrie_seg6_lights_0600D958 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600D970 static const Vtx dorrie_seg6_vertex_0600D970[] = { @@ -941,8 +905,8 @@ const Gfx dorrie_seg6_dl_0600D9F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600D958.l, 1), - gsSPLight(&dorrie_seg6_lights_0600D958.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600D970, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 1, 5, 3, 0x0, 2, 1, 4, 0x0), @@ -979,10 +943,6 @@ const Gfx dorrie_seg6_dl_0600DA88[] = { }; // 0x0600DB30 -static const Lights1 dorrie_seg6_lights_0600DB30 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600DB48 static const Vtx dorrie_seg6_vertex_0600DB48[] = { @@ -1001,8 +961,8 @@ const Gfx dorrie_seg6_dl_0600DBC8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600DB30.l, 1), - gsSPLight(&dorrie_seg6_lights_0600DB30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600DB48, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 2, 1, 0x0, 1, 3, 4, 0x0), @@ -1039,10 +999,6 @@ const Gfx dorrie_seg6_dl_0600DC60[] = { }; // 0x0600DD08 -static const Lights1 dorrie_seg6_lights_0600DD08 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600DD20 static const Vtx dorrie_seg6_vertex_0600DD20[] = { @@ -1061,8 +1017,8 @@ const Gfx dorrie_seg6_dl_0600DDA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, dorrie_seg6_texture_06009DA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&dorrie_seg6_lights_0600DD08.l, 1), - gsSPLight(&dorrie_seg6_lights_0600DD08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(dorrie_seg6_vertex_0600DD20, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 0, 4, 5, 0x0, 0, 6, 3, 0x0), diff --git a/actors/exclamation_box/model.inc.c b/actors/exclamation_box/model.inc.c index a59b2280..4cd4f734 100644 --- a/actors/exclamation_box/model.inc.c +++ b/actors/exclamation_box/model.inc.c @@ -1,10 +1,6 @@ // Exclamation Box // 0x08012E10 -static const Lights1 exclamation_box_seg8_lights_08012E10 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08012E28 ALIGNED8 static const Texture exclamation_box_seg8_texture_08012E28[] = { @@ -80,8 +76,8 @@ static const Vtx exclamation_box_seg8_vertex_08018F28[] = { // 0x08018FA8 - 0x08019008 const Gfx exclamation_box_seg8_dl_08018FA8[] = { - gsSPLight(&exclamation_box_seg8_lights_08012E10.l, 1), - gsSPLight(&exclamation_box_seg8_lights_08012E10.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(exclamation_box_seg8_vertex_08018E28, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -149,8 +145,8 @@ static const Vtx exclamation_box_seg8_vertex_080191A0[] = { // 0x08019220 - 0x08019280 const Gfx exclamation_box_seg8_dl_08019220[] = { - gsSPLight(&exclamation_box_seg8_lights_08012E10.l, 1), - gsSPLight(&exclamation_box_seg8_lights_08012E10.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(exclamation_box_seg8_vertex_080190A0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/actors/exclamation_box_outline/model.inc.c b/actors/exclamation_box_outline/model.inc.c index b60496d4..f7599270 100644 --- a/actors/exclamation_box_outline/model.inc.c +++ b/actors/exclamation_box_outline/model.inc.c @@ -1,28 +1,12 @@ // Exclamation Box Outline // 0x08024CB8 -static const Lights1 exclamation_box_outline_seg8_lights_08024CB8 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x08024CD0 -static const Lights1 exclamation_box_outline_seg8_lights_08024CD0 = gdSPDefLights1( - 0x00, 0x7f, 0x00, - 0x00, 0xff, 0x00, 0x28, 0x28, 0x28 -); // 0x08024CE8 -static const Lights1 exclamation_box_outline_seg8_lights_08024CE8 = gdSPDefLights1( - 0x00, 0x00, 0x7f, - 0x00, 0x00, 0xff, 0x28, 0x28, 0x28 -); // 0x08024D00 -static const Lights1 exclamation_box_outline_seg8_lights_08024D00 = gdSPDefLights1( - 0x7f, 0x6a, 0x00, - 0xff, 0xd4, 0x00, 0x28, 0x28, 0x28 -); // 0x08024D18 static const Vtx exclamation_box_outline_seg8_vertex_08024D18[] = { @@ -94,32 +78,32 @@ const Gfx exclamation_box_outline_seg8_dl_08024F58[] = { // 0x08024F88 - 0x08024FA8 const Gfx exclamation_box_outline_seg8_dl_08024F88[] = { gsSPDisplayList(exclamation_box_outline_seg8_dl_08024F30), - gsSPLight(&exclamation_box_outline_seg8_lights_08024CB8.l, 1), - gsSPLight(&exclamation_box_outline_seg8_lights_08024CB8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPBranchList(exclamation_box_outline_seg8_dl_08024F58), }; // 0x08024FA8 - 0x08024FC8 const Gfx exclamation_box_outline_seg8_dl_08024FA8[] = { gsSPDisplayList(exclamation_box_outline_seg8_dl_08024F30), - gsSPLight(&exclamation_box_outline_seg8_lights_08024CD0.l, 1), - gsSPLight(&exclamation_box_outline_seg8_lights_08024CD0.a, 2), + gsSPLightColor(LIGHT_1, 0xff00ff), + gsSPLightColor(LIGHT_2, 0x7f00ff), gsSPBranchList(exclamation_box_outline_seg8_dl_08024F58), }; // 0x08024FC8 - 0x08024FE8 const Gfx exclamation_box_outline_seg8_dl_08024FC8[] = { gsSPDisplayList(exclamation_box_outline_seg8_dl_08024F30), - gsSPLight(&exclamation_box_outline_seg8_lights_08024CE8.l, 1), - gsSPLight(&exclamation_box_outline_seg8_lights_08024CE8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPBranchList(exclamation_box_outline_seg8_dl_08024F58), }; // 0x08024FE8 - 0x08025008 const Gfx exclamation_box_outline_seg8_dl_08024FE8[] = { gsSPDisplayList(exclamation_box_outline_seg8_dl_08024F30), - gsSPLight(&exclamation_box_outline_seg8_lights_08024D00.l, 1), - gsSPLight(&exclamation_box_outline_seg8_lights_08024D00.a, 2), + gsSPLightColor(LIGHT_1, 0xffd400ff), + gsSPLightColor(LIGHT_2, 0x7f6a00ff), gsSPBranchList(exclamation_box_outline_seg8_dl_08024F58), }; @@ -193,10 +177,6 @@ const Gfx exclamation_box_outline_seg8_dl_080259F8[] = { }; // 0x08025A68 -static const Lights1 exclamation_box_outline_seg8_lights_08025A68 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08025A80 ALIGNED8 static const Texture exclamation_box_outline_seg8_texture_08025A80[] = { @@ -216,8 +196,8 @@ const Gfx exclamation_box_outline_seg8_dl_08025EC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, exclamation_box_outline_seg8_texture_08025A80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&exclamation_box_outline_seg8_lights_08025A68.l, 1), - gsSPLight(&exclamation_box_outline_seg8_lights_08025A68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(exclamation_box_outline_seg8_vertex_08025E80, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/actors/eyerok/model.inc.c b/actors/eyerok/model.inc.c index 629b3cda..a27ffa97 100644 --- a/actors/eyerok/model.inc.c +++ b/actors/eyerok/model.inc.c @@ -1,10 +1,6 @@ // Eyerok // Unreferenced light group -UNUSED static const Lights1 eyerok_lights_unused = gdSPDefLights1( - 0x3f, 0x2a, 0x16, - 0xff, 0xa9, 0x5b, 0x28, 0x28, 0x28 -); // 0x05008D40 ALIGNED8 static const Texture eyerok_seg5_texture_05008D40[] = { @@ -32,10 +28,6 @@ ALIGNED8 static const Texture eyerok_seg5_texture_0500AD40[] = { }; // 0x0500B540 -static const Lights1 eyerok_seg5_lights_0500B540 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500B558 static const Vtx eyerok_seg5_vertex_0500B558[] = { @@ -72,8 +64,8 @@ const Gfx eyerok_seg5_dl_0500B6B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500B540.l, 1), - gsSPLight(&eyerok_seg5_lights_0500B540.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500B558, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), @@ -104,10 +96,6 @@ const Gfx eyerok_seg5_dl_0500B748[] = { }; // 0x0500B7B8 -static const Lights1 eyerok_seg5_lights_0500B7B8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500B7D0 static const Vtx eyerok_seg5_vertex_0500B7D0[] = { @@ -144,8 +132,8 @@ const Gfx eyerok_seg5_dl_0500B930[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500B7B8.l, 1), - gsSPLight(&eyerok_seg5_lights_0500B7B8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500B7D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -176,10 +164,6 @@ const Gfx eyerok_seg5_dl_0500B9C0[] = { }; // 0x0500BA30 -static const Lights1 eyerok_seg5_lights_0500BA30 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500BA48 static const Vtx eyerok_seg5_vertex_0500BA48[] = { @@ -220,8 +204,8 @@ const Gfx eyerok_seg5_dl_0500BBE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500BA30.l, 1), - gsSPLight(&eyerok_seg5_lights_0500BA30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500BA48, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -253,10 +237,6 @@ const Gfx eyerok_seg5_dl_0500BC88[] = { }; // 0x0500BCF8 -static const Lights1 eyerok_seg5_lights_0500BCF8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500BD10 static const Vtx eyerok_seg5_vertex_0500BD10[] = { @@ -293,8 +273,8 @@ const Gfx eyerok_seg5_dl_0500BE70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500BCF8.l, 1), - gsSPLight(&eyerok_seg5_lights_0500BCF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500BD10, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -325,10 +305,6 @@ const Gfx eyerok_seg5_dl_0500BF00[] = { }; // 0x0500BF70 -static const Lights1 eyerok_seg5_lights_0500BF70 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500BF88 static const Vtx eyerok_seg5_vertex_0500BF88[] = { @@ -355,8 +331,8 @@ const Gfx eyerok_seg5_dl_0500C088[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500BF70.l, 1), - gsSPLight(&eyerok_seg5_lights_0500BF70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500BF88, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -384,10 +360,6 @@ const Gfx eyerok_seg5_dl_0500C100[] = { }; // 0x0500C170 -static const Lights1 eyerok_seg5_lights_0500C170 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C188 static const Vtx eyerok_seg5_vertex_0500C188[] = { @@ -424,8 +396,8 @@ const Gfx eyerok_seg5_dl_0500C2E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500C170.l, 1), - gsSPLight(&eyerok_seg5_lights_0500C170.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500C188, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -456,10 +428,6 @@ const Gfx eyerok_seg5_dl_0500C378[] = { }; // 0x0500C3E8 -static const Lights1 eyerok_seg5_lights_0500C3E8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C400 static const Vtx eyerok_seg5_vertex_0500C400[] = { @@ -500,8 +468,8 @@ const Gfx eyerok_seg5_dl_0500C5A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500C3E8.l, 1), - gsSPLight(&eyerok_seg5_lights_0500C3E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500C400, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -533,10 +501,6 @@ const Gfx eyerok_seg5_dl_0500C640[] = { }; // 0x0500C6B0 -static const Lights1 eyerok_seg5_lights_0500C6B0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C6C8 static const Vtx eyerok_seg5_vertex_0500C6C8[] = { @@ -577,8 +541,8 @@ const Gfx eyerok_seg5_dl_0500C868[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, eyerok_seg5_texture_05008D40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&eyerok_seg5_lights_0500C6B0.l, 1), - gsSPLight(&eyerok_seg5_lights_0500C6B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(eyerok_seg5_vertex_0500C6C8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/actors/flyguy/model.inc.c b/actors/flyguy/model.inc.c index a651ce1b..89eb6026 100644 --- a/actors/flyguy/model.inc.c +++ b/actors/flyguy/model.inc.c @@ -19,46 +19,18 @@ ALIGNED8 static const Texture flyguy_seg8_texture_0800F888[] = { }; // Unreferenced light group -UNUSED static const Lights1 flyguy_lights_unused1 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x080100A0 -static const Lights1 flyguy_seg8_lights_080100A0 = gdSPDefLights1( - 0x00, 0x1f, 0x33, - 0x02, 0x7f, 0xcc, 0x28, 0x28, 0x28 -); // 0x080100B8 -static const Lights1 flyguy_seg8_lights_080100B8 = gdSPDefLights1( - 0x3f, 0x32, 0x08, - 0xff, 0xc8, 0x23, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 flyguy_lights_unused2 = gdSPDefLights1( - 0x3a, 0x2f, 0x04, - 0xe8, 0xbd, 0x13, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 flyguy_lights_unused3 = gdSPDefLights1( - 0x2c, 0x00, 0x00, - 0xb2, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 flyguy_lights_unused4 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 flyguy_lights_unused5 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x08010130 static const Vtx flyguy_seg8_vertex_08010130[] = { @@ -211,8 +183,8 @@ static const Vtx flyguy_seg8_vertex_08010770[] = { // 0x08010840 - 0x08010968 const Gfx flyguy_seg8_dl_08010840[] = { - gsSPLight(&flyguy_seg8_lights_080100A0.l, 1), - gsSPLight(&flyguy_seg8_lights_080100A0.a, 2), + gsSPLightColor(LIGHT_1, 0x27fccff), + gsSPLightColor(LIGHT_2, 0x1f33ff), gsSPVertex(flyguy_seg8_vertex_08010130, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), @@ -238,8 +210,8 @@ const Gfx flyguy_seg8_dl_08010840[] = { // 0x08010968 - 0x08010A90 const Gfx flyguy_seg8_dl_08010968[] = { - gsSPLight(&flyguy_seg8_lights_080100A0.l, 1), - gsSPLight(&flyguy_seg8_lights_080100A0.a, 2), + gsSPLightColor(LIGHT_1, 0x27fccff), + gsSPLightColor(LIGHT_2, 0x1f33ff), gsSPVertex(flyguy_seg8_vertex_08010460, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -265,8 +237,8 @@ const Gfx flyguy_seg8_dl_08010968[] = { // 0x08010A90 - 0x08010AE0 const Gfx flyguy_seg8_dl_08010A90[] = { - gsSPLight(&flyguy_seg8_lights_080100B8.l, 1), - gsSPLight(&flyguy_seg8_lights_080100B8.a, 2), + gsSPLightColor(LIGHT_1, 0xffc823ff), + gsSPLightColor(LIGHT_2, 0x3f3208ff), gsSPVertex(flyguy_seg8_vertex_08010770, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 0, 2, 0x0, 7, 8, 9, 0x0), @@ -275,10 +247,6 @@ const Gfx flyguy_seg8_dl_08010A90[] = { }; // 0x08010AE0 -static const Lights1 flyguy_seg8_lights_08010AE0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08010AF8 static const Vtx flyguy_seg8_vertex_08010AF8[] = { @@ -293,8 +261,8 @@ const Gfx flyguy_seg8_dl_08010B38[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, flyguy_seg8_texture_0800F888), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&flyguy_seg8_lights_08010AE0.l, 1), - gsSPLight(&flyguy_seg8_lights_08010AE0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(flyguy_seg8_vertex_08010AF8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -319,22 +287,10 @@ const Gfx flyguy_seg8_dl_08010B80[] = { }; // 0x08010BF0 -static const Lights1 flyguy_seg8_lights_08010BF0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08010C08 -static const Lights1 flyguy_seg8_lights_08010C08 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x08010C20 -static const Lights1 flyguy_seg8_lights_08010C20 = gdSPDefLights1( - 0x62, 0x00, 0x13, - 0xc4, 0x00, 0x26, 0x28, 0x28, 0x28 -); // 0x08010C38 static const Vtx flyguy_seg8_vertex_08010C38[] = { @@ -500,8 +456,8 @@ const Gfx flyguy_seg8_dl_080113A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, flyguy_seg8_texture_0800F088), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&flyguy_seg8_lights_08010BF0.l, 1), - gsSPLight(&flyguy_seg8_lights_08010BF0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(flyguy_seg8_vertex_08010C38, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 1, 0, 0x0, 2, 5, 0, 0x0), @@ -515,12 +471,12 @@ const Gfx flyguy_seg8_dl_08011420[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, flyguy_seg8_texture_0800E088), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&flyguy_seg8_lights_08010C08.l, 1), - gsSPLight(&flyguy_seg8_lights_08010C08.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(flyguy_seg8_vertex_08010CC8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&flyguy_seg8_lights_08010C20.l, 1), - gsSPLight(&flyguy_seg8_lights_08010C20.a, 2), + gsSPLightColor(LIGHT_1, 0xc40026ff), + gsSPLightColor(LIGHT_2, 0x620013ff), gsSPVertex(flyguy_seg8_vertex_08010D28, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 1, 5, 3, 0x0, 1, 4, 2, 0x0), @@ -569,8 +525,8 @@ const Gfx flyguy_seg8_dl_08011420[] = { // 0x080116D0 - 0x08011710 const Gfx flyguy_seg8_dl_080116D0[] = { - gsSPLight(&flyguy_seg8_lights_08010C08.l, 1), - gsSPLight(&flyguy_seg8_lights_08010C08.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(flyguy_seg8_vertex_08011348, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 1, 5, 4, 0x0), diff --git a/actors/goomba/model.inc.c b/actors/goomba/model.inc.c index 2ddba464..47c7d40b 100644 --- a/actors/goomba/model.inc.c +++ b/actors/goomba/model.inc.c @@ -1,40 +1,16 @@ // Goomba // Unreferenced light group -UNUSED static const Lights1 goomba_lights_unused1 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 goomba_lights_unused2 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x080194D0 -static const Lights1 goomba_seg8_lights_080194D0 = gdSPDefLights1( - 0x15, 0x0b, 0x04, - 0x54, 0x2e, 0x10, 0x28, 0x28, 0x28 -); // 0x080194E8 -static const Lights1 goomba_seg8_lights_080194E8 = gdSPDefLights1( - 0x18, 0x0d, 0x04, - 0x61, 0x34, 0x13, 0x28, 0x28, 0x28 -); // 0x08019500 -static const Lights1 goomba_seg8_lights_08019500 = gdSPDefLights1( - 0x1d, 0x10, 0x08, - 0x77, 0x42, 0x20, 0x28, 0x28, 0x28 -); // 0x08019518 -static const Lights1 goomba_seg8_lights_08019518 = gdSPDefLights1( - 0x37, 0x2d, 0x13, - 0xde, 0xb4, 0x4e, 0x28, 0x28, 0x28 -); // 0x08019530 ALIGNED8 static const Texture goomba_seg8_texture_08019530[] = { @@ -62,10 +38,6 @@ ALIGNED8 static const Texture floomba_seg8_texture_blink[] = { #endif // 0x0801AD30 -static const Lights1 goomba_seg8_lights_0801AD30 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0801AD48 static const Vtx goomba_seg8_vertex_0801AD48[] = { @@ -183,8 +155,8 @@ static const Vtx goomba_seg8_vertex_0801B238[] = { // 0x0801B2E8 - 0x0801B560 const Gfx goomba_seg8_dl_0801B2E8[] = { - gsSPLight(&goomba_seg8_lights_0801AD30.l, 1), - gsSPLight(&goomba_seg8_lights_0801AD30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(goomba_seg8_vertex_0801AD48, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 5, 4, 0x0, 5, 7, 3, 0x0), @@ -800,8 +772,8 @@ static const Vtx goomba_seg8_vertex_0801CDF0[] = { // 0x0801CE20 - 0x0801CF78 const Gfx goomba_seg8_dl_0801CE20[] = { - gsSPLight(&goomba_seg8_lights_080194D0.l, 1), - gsSPLight(&goomba_seg8_lights_080194D0.a, 2), + gsSPLightColor(LIGHT_1, 0x542e10ff), + gsSPLightColor(LIGHT_2, 0x150b04ff), gsSPVertex(goomba_seg8_vertex_0801B700, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -829,8 +801,8 @@ const Gfx goomba_seg8_dl_0801CE20[] = { // 0x0801CF78 - 0x0801D0D0 const Gfx goomba_seg8_dl_0801CF78[] = { - gsSPLight(&goomba_seg8_lights_080194E8.l, 1), - gsSPLight(&goomba_seg8_lights_080194E8.a, 2), + gsSPLightColor(LIGHT_1, 0x613413ff), + gsSPLightColor(LIGHT_2, 0x180d04ff), gsSPVertex(goomba_seg8_vertex_0801BA50, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 2, 0x0), @@ -858,8 +830,8 @@ const Gfx goomba_seg8_dl_0801CF78[] = { // 0x0801D0D0 - 0x0801D360 const Gfx goomba_seg8_dl_0801D0D0[] = { - gsSPLight(&goomba_seg8_lights_08019500.l, 1), - gsSPLight(&goomba_seg8_lights_08019500.a, 2), + gsSPLightColor(LIGHT_1, 0x774220ff), + gsSPLightColor(LIGHT_2, 0x1d1008ff), gsSPVertex(goomba_seg8_vertex_0801BDC0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -910,8 +882,8 @@ const Gfx goomba_seg8_dl_0801D0D0[] = { // 0x0801D360 - 0x0801D760 const Gfx goomba_seg8_dl_0801D360[] = { - gsSPLight(&goomba_seg8_lights_08019518.l, 1), - gsSPLight(&goomba_seg8_lights_08019518.a, 2), + gsSPLightColor(LIGHT_1, 0xdeb44eff), + gsSPLightColor(LIGHT_2, 0x372d13ff), gsSPVertex(goomba_seg8_vertex_0801C620, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 1, 0x0, 4, 1, 0, 0x0), diff --git a/actors/haunted_cage/model.inc.c b/actors/haunted_cage/model.inc.c index e38e0b5a..b1ec0f05 100644 --- a/actors/haunted_cage/model.inc.c +++ b/actors/haunted_cage/model.inc.c @@ -1,16 +1,8 @@ // Haunted Cage // 0x0500C258 -static const Lights1 haunted_cage_seg5_lights_0500C258 = gdSPDefLights1( - 0x39, 0x0c, 0x0e, - 0x90, 0x1e, 0x25, 0x28, 0x28, 0x28 -); // 0x0500C270 -static const Lights1 haunted_cage_seg5_lights_0500C270 = gdSPDefLights1( - 0x47, 0x47, 0x47, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x0500C288 ALIGNED8 static const Texture haunted_cage_seg5_texture_0500C288[] = { @@ -254,8 +246,8 @@ const Gfx haunted_cage_seg5_dl_0500F4C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, haunted_cage_seg5_texture_0500D288), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&haunted_cage_seg5_lights_0500C258.l, 1), - gsSPLight(&haunted_cage_seg5_lights_0500C258.a, 2), + gsSPLightColor(LIGHT_1, 0x901e25ff), + gsSPLightColor(LIGHT_2, 0x390c0eff), gsSPVertex(haunted_cage_seg5_vertex_0500EA88, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -266,8 +258,8 @@ const Gfx haunted_cage_seg5_dl_0500F4C8[] = { gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(haunted_cage_seg5_vertex_0500EC68, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&haunted_cage_seg5_lights_0500C270.l, 1), - gsSPLight(&haunted_cage_seg5_lights_0500C270.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x474747ff), gsSPVertex(haunted_cage_seg5_vertex_0500ECC8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 3, 9, 4, 0x0), @@ -353,10 +345,6 @@ const Gfx haunted_cage_seg5_dl_0500F7D8[] = { }; // 0x0500F888 -static const Lights1 haunted_cage_seg5_lights_0500F888 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500F8A0 static const Vtx haunted_cage_seg5_vertex_0500F8A0[] = { @@ -417,8 +405,8 @@ const Gfx haunted_cage_seg5_dl_0500FB40[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, haunted_cage_seg5_texture_0500D688), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&haunted_cage_seg5_lights_0500F888.l, 1), - gsSPLight(&haunted_cage_seg5_lights_0500F888.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(haunted_cage_seg5_vertex_0500F8A0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -455,10 +443,6 @@ const Gfx haunted_cage_seg5_dl_0500FC28[] = { }; // 0x0500FC98 -static const Lights1 haunted_cage_seg5_lights_0500FC98 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x0500FCB0 static const Vtx haunted_cage_seg5_vertex_0500FCB0[] = { @@ -533,8 +517,8 @@ const Gfx haunted_cage_seg5_dl_0500FFF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, haunted_cage_seg5_texture_0500DA88), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&haunted_cage_seg5_lights_0500FC98.l, 1), - gsSPLight(&haunted_cage_seg5_lights_0500FC98.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x2c2c2cff), gsSPVertex(haunted_cage_seg5_vertex_0500FCB0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/actors/heave_ho/model.inc.c b/actors/heave_ho/model.inc.c index 36f97f23..a7e37153 100644 --- a/actors/heave_ho/model.inc.c +++ b/actors/heave_ho/model.inc.c @@ -1,46 +1,18 @@ // Heave Ho // Unreferenced light group -UNUSED static const Lights1 heave_ho_lights_unused1 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 heave_ho_lights_unused2 = gdSPDefLights1( - 0x3f, 0x38, 0x00, - 0xff, 0xe3, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 heave_ho_lights_unused3 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0500E968 -static const Lights1 heave_ho_seg5_lights_0500E968 = gdSPDefLights1( - 0x14, 0x14, 0x15, - 0x50, 0x50, 0x54, 0x28, 0x28, 0x28 -); // 0x0500E980 -static const Lights1 heave_ho_seg5_lights_0500E980 = gdSPDefLights1( - 0x73, 0x3f, 0x32, - 0xff, 0xe0, 0x85, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 heave_ho_lights_unused4 = gdSPDefLights1( - 0x3b, 0x38, 0x21, - 0xec, 0xe3, 0x84, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 heave_ho_lights_unused5 = gdSPDefLights1( - 0x32, 0x32, 0x32, - 0xc8, 0xc8, 0xc8, 0x28, 0x28, 0x28 -); // 0x0500E9C8 ALIGNED8 static const Texture heave_ho_seg5_texture_0500E9C8[] = { @@ -73,16 +45,8 @@ ALIGNED8 static const Texture heave_ho_seg5_texture_050113C8[] = { }; // 0x05011BC8 -static const Lights1 heave_ho_seg5_lights_05011BC8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05011BE0 -static const Lights1 heave_ho_seg5_lights_05011BE0 = gdSPDefLights1( - 0x40, 0x00, 0x0d, - 0x81, 0x01, 0x1a, 0x28, 0x28, 0x28 -); // 0x05011BF8 static const Vtx heave_ho_seg5_vertex_05011BF8[] = { @@ -131,8 +95,8 @@ const Gfx heave_ho_seg5_dl_05011D98[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, heave_ho_seg5_texture_0500E9C8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&heave_ho_seg5_lights_05011BC8.l, 1), - gsSPLight(&heave_ho_seg5_lights_05011BC8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(heave_ho_seg5_vertex_05011BF8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -163,8 +127,8 @@ const Gfx heave_ho_seg5_dl_05011E28[] = { // 0x05011E80 - 0x05011EC0 const Gfx heave_ho_seg5_dl_05011E80[] = { - gsSPLight(&heave_ho_seg5_lights_05011BE0.l, 1), - gsSPLight(&heave_ho_seg5_lights_05011BE0.a, 2), + gsSPLightColor(LIGHT_1, 0x81011aff), + gsSPLightColor(LIGHT_2, 0x40000dff), gsSPVertex(heave_ho_seg5_vertex_05011D38, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 3, 4, 5, 0x0, 3, 5, 1, 0x0), @@ -194,16 +158,8 @@ const Gfx heave_ho_seg5_dl_05011EC0[] = { }; // 0x05011F50 -static const Lights1 heave_ho_seg5_lights_05011F50 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05011F68 -static const Lights1 heave_ho_seg5_lights_05011F68 = gdSPDefLights1( - 0x4c, 0x00, 0x16, - 0x99, 0x00, 0x2d, 0x28, 0x28, 0x28 -); // 0x05011F80 static const Vtx heave_ho_seg5_vertex_05011F80[] = { @@ -236,8 +192,8 @@ const Gfx heave_ho_seg5_dl_050120A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, heave_ho_seg5_texture_050109C8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&heave_ho_seg5_lights_05011F50.l, 1), - gsSPLight(&heave_ho_seg5_lights_05011F50.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(heave_ho_seg5_vertex_05011F80, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 7, 8, 9, 0x0), @@ -247,8 +203,8 @@ const Gfx heave_ho_seg5_dl_050120A0[] = { // 0x05012100 - 0x05012148 const Gfx heave_ho_seg5_dl_05012100[] = { - gsSPLight(&heave_ho_seg5_lights_05011F68.l, 1), - gsSPLight(&heave_ho_seg5_lights_05011F68.a, 2), + gsSPLightColor(LIGHT_1, 0x99002dff), + gsSPLightColor(LIGHT_2, 0x4c0016ff), gsSPVertex(heave_ho_seg5_vertex_05012030, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 3, 5, 4, 0x0), @@ -274,16 +230,8 @@ const Gfx heave_ho_seg5_dl_05012148[] = { }; // 0x050121B0 -static const Lights1 heave_ho_seg5_lights_050121B0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050121C8 -static const Lights1 heave_ho_seg5_lights_050121C8 = gdSPDefLights1( - 0x4c, 0x00, 0x16, - 0x99, 0x00, 0x2d, 0x28, 0x28, 0x28 -); // 0x050121E0 static const Vtx heave_ho_seg5_vertex_050121E0[] = { @@ -316,8 +264,8 @@ const Gfx heave_ho_seg5_dl_05012300[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, heave_ho_seg5_texture_050109C8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&heave_ho_seg5_lights_050121B0.l, 1), - gsSPLight(&heave_ho_seg5_lights_050121B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(heave_ho_seg5_vertex_050121E0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 7, 8, 9, 0x0), @@ -327,8 +275,8 @@ const Gfx heave_ho_seg5_dl_05012300[] = { // 0x05012360 - 0x050123A8 const Gfx heave_ho_seg5_dl_05012360[] = { - gsSPLight(&heave_ho_seg5_lights_050121C8.l, 1), - gsSPLight(&heave_ho_seg5_lights_050121C8.a, 2), + gsSPLightColor(LIGHT_1, 0x99002dff), + gsSPLightColor(LIGHT_2, 0x4c0016ff), gsSPVertex(heave_ho_seg5_vertex_05012290, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 2, 4, 0x0, 4, 3, 6, 0x0), @@ -354,16 +302,8 @@ const Gfx heave_ho_seg5_dl_050123A8[] = { }; // 0x05012410 -static const Lights1 heave_ho_seg5_lights_05012410 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05012428 -static const Lights1 heave_ho_seg5_lights_05012428 = gdSPDefLights1( - 0x5d, 0x6d, 0x65, - 0xbb, 0xda, 0xcb, 0x28, 0x28, 0x28 -); // 0x05012440 static const Vtx heave_ho_seg5_vertex_05012440[] = { @@ -396,8 +336,8 @@ const Gfx heave_ho_seg5_dl_05012560[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, heave_ho_seg5_texture_0500F1C8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&heave_ho_seg5_lights_05012410.l, 1), - gsSPLight(&heave_ho_seg5_lights_05012410.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(heave_ho_seg5_vertex_05012440, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -405,8 +345,8 @@ const Gfx heave_ho_seg5_dl_05012560[] = { // 0x050125A8 - 0x050125F8 const Gfx heave_ho_seg5_dl_050125A8[] = { - gsSPLight(&heave_ho_seg5_lights_05012428.l, 1), - gsSPLight(&heave_ho_seg5_lights_05012428.a, 2), + gsSPLightColor(LIGHT_1, 0xbbdacbff), + gsSPLightColor(LIGHT_2, 0x5d6d65ff), gsSPVertex(heave_ho_seg5_vertex_05012480, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), @@ -470,10 +410,6 @@ const Gfx heave_ho_seg5_dl_050126E8[] = { }; // 0x05012758 -static const Lights1 heave_ho_seg5_lights_05012758 = gdSPDefLights1( - 0x93, 0x73, 0x7c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05012770 static const Vtx heave_ho_seg5_vertex_05012770[] = { @@ -488,8 +424,8 @@ const Gfx heave_ho_seg5_dl_050127B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, heave_ho_seg5_texture_050113C8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&heave_ho_seg5_lights_05012758.l, 1), - gsSPLight(&heave_ho_seg5_lights_05012758.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x93737cff), gsSPVertex(heave_ho_seg5_vertex_05012770, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSPEndDisplayList(), @@ -1021,8 +957,8 @@ static const Vtx heave_ho_seg5_vertex_05014128[] = { // 0x05014188 - 0x05014560 const Gfx heave_ho_seg5_dl_05014188[] = { - gsSPLight(&heave_ho_seg5_lights_0500E968.l, 1), - gsSPLight(&heave_ho_seg5_lights_0500E968.a, 2), + gsSPLightColor(LIGHT_1, 0x505054ff), + gsSPLightColor(LIGHT_2, 0x141415ff), gsSPVertex(heave_ho_seg5_vertex_05012868, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 4, 3, 5, 0x0), @@ -1092,8 +1028,8 @@ const Gfx heave_ho_seg5_dl_05014188[] = { // 0x05014560 - 0x050145D0 const Gfx heave_ho_seg5_dl_05014560[] = { - gsSPLight(&heave_ho_seg5_lights_0500E980.l, 1), - gsSPLight(&heave_ho_seg5_lights_0500E980.a, 2), + gsSPLightColor(LIGHT_1, 0xffe085ff), + gsSPLightColor(LIGHT_2, 0x733f32ff), gsSPVertex(heave_ho_seg5_vertex_05013068, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 3, 6, 0x0, 5, 7, 3, 0x0), @@ -1105,8 +1041,8 @@ const Gfx heave_ho_seg5_dl_05014560[] = { // 0x050145D0 - 0x050149A8 const Gfx heave_ho_seg5_dl_050145D0[] = { - gsSPLight(&heave_ho_seg5_lights_0500E968.l, 1), - gsSPLight(&heave_ho_seg5_lights_0500E968.a, 2), + gsSPLightColor(LIGHT_1, 0x505054ff), + gsSPLightColor(LIGHT_2, 0x141415ff), gsSPVertex(heave_ho_seg5_vertex_05013128, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 4, 3, 5, 0x0), @@ -1176,8 +1112,8 @@ const Gfx heave_ho_seg5_dl_050145D0[] = { // 0x050149A8 - 0x05014D80 const Gfx heave_ho_seg5_dl_050149A8[] = { - gsSPLight(&heave_ho_seg5_lights_0500E968.l, 1), - gsSPLight(&heave_ho_seg5_lights_0500E968.a, 2), + gsSPLightColor(LIGHT_1, 0x505054ff), + gsSPLightColor(LIGHT_2, 0x141415ff), gsSPVertex(heave_ho_seg5_vertex_05013928, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 4, 3, 5, 0x0), @@ -1247,8 +1183,8 @@ const Gfx heave_ho_seg5_dl_050149A8[] = { // 0x05014D80 - 0x05014DD0 const Gfx heave_ho_seg5_dl_05014D80[] = { - gsSPLight(&heave_ho_seg5_lights_0500E980.l, 1), - gsSPLight(&heave_ho_seg5_lights_0500E980.a, 2), + gsSPLightColor(LIGHT_1, 0xffe085ff), + gsSPLightColor(LIGHT_2, 0x733f32ff), gsSPVertex(heave_ho_seg5_vertex_05014128, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 4, 3, 5, 0x0, 0, 2, 5, 0x0), diff --git a/actors/hoot/model.inc.c b/actors/hoot/model.inc.c index 9565fd0f..ef41730b 100644 --- a/actors/hoot/model.inc.c +++ b/actors/hoot/model.inc.c @@ -1,76 +1,28 @@ // Hoot // 0x05000900 -static const Lights1 hoot_seg5_lights_05000900 = gdSPDefLights1( - 0x30, 0x1b, 0x0f, - 0xc0, 0x6e, 0x3d, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 hoot_lights_unused1 = gdSPDefLights1( - 0x37, 0x27, 0x0b, - 0xdd, 0x9d, 0x2d, 0x28, 0x28, 0x28 -); // 0x05000930 -static const Lights1 hoot_seg5_lights_05000930 = gdSPDefLights1( - 0x36, 0x26, 0x11, - 0xdb, 0x99, 0x46, 0x28, 0x28, 0x28 -); // 0x05000948 -static const Lights1 hoot_seg5_lights_05000948 = gdSPDefLights1( - 0x06, 0x06, 0x06, - 0x19, 0x19, 0x19, 0x28, 0x28, 0x28 -); // 0x05000960 -static const Lights1 hoot_seg5_lights_05000960 = gdSPDefLights1( - 0x1d, 0x0a, 0x05, - 0x77, 0x2a, 0x16, 0x28, 0x28, 0x28 -); // 0x05000978 -static const Lights1 hoot_seg5_lights_05000978 = gdSPDefLights1( - 0x06, 0x06, 0x06, - 0x19, 0x19, 0x19, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 hoot_lights_unused2 = gdSPDefLights1( - 0x39, 0x27, 0x0a, - 0xe6, 0x9d, 0x29, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 hoot_lights_unused3 = gdSPDefLights1( - 0x1d, 0x06, 0x3b, - 0x75, 0x18, 0xef, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 hoot_lights_unused4 = gdSPDefLights1( - 0x3a, 0x29, 0x09, - 0xeb, 0xa6, 0x27, 0x28, 0x28, 0x28 -); // 0x050009D8 -static const Lights1 hoot_seg5_lights_050009D8 = gdSPDefLights1( - 0x18, 0x07, 0x03, - 0x63, 0x1e, 0x0f, 0x28, 0x28, 0x28 -); // 0x050009F0 -static const Lights1 hoot_seg5_lights_050009F0 = gdSPDefLights1( - 0x3f, 0x3a, 0x09, - 0xfe, 0xea, 0x26, 0x28, 0x28, 0x28 -); // 0x05000A08 -static const Lights1 hoot_seg5_lights_05000A08 = gdSPDefLights1( - 0x13, 0x0d, 0x0b, - 0x4d, 0x35, 0x2e, 0x28, 0x28, 0x28 -); // 0x05000A20 ALIGNED8 static const Texture hoot_seg5_texture_05000A20[] = { @@ -274,8 +226,8 @@ static const Vtx hoot_seg5_vertex_05001A90[] = { // 0x05001B80 - 0x05001C00 const Gfx hoot_seg5_dl_05001B80[] = { gsDPLoadTextureBlock(hoot_seg5_texture_05000A20, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD), - gsSPLight(&hoot_seg5_lights_050009D8.l, 1), - gsSPLight(&hoot_seg5_lights_050009D8.a, 2), + gsSPLightColor(LIGHT_1, 0x631e0fff), + gsSPLightColor(LIGHT_2, 0x180703ff), gsSPVertex(hoot_seg5_vertex_05001220, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -285,17 +237,17 @@ const Gfx hoot_seg5_dl_05001B80[] = { // 0x05001C00 - 0x05001DF0 const Gfx hoot_seg5_dl_05001C00[] = { - gsSPLight(&hoot_seg5_lights_050009F0.l, 1), - gsSPLight(&hoot_seg5_lights_050009F0.a, 2), + gsSPLightColor(LIGHT_1, 0xfeea26ff), + gsSPLightColor(LIGHT_2, 0x3f3a09ff), gsSPVertex(hoot_seg5_vertex_05001310, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), - gsSPLight(&hoot_seg5_lights_05000A08.l, 1), - gsSPLight(&hoot_seg5_lights_05000A08.a, 2), + gsSPLightColor(LIGHT_1, 0x4d352eff), + gsSPLightColor(LIGHT_2, 0x130d0bff), gsSPVertex(hoot_seg5_vertex_050013D0, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&hoot_seg5_lights_050009D8.l, 1), - gsSPLight(&hoot_seg5_lights_050009D8.a, 2), + gsSPLightColor(LIGHT_1, 0x631e0fff), + gsSPLightColor(LIGHT_2, 0x180703ff), gsSPVertex(hoot_seg5_vertex_05001400, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -345,10 +297,6 @@ const Gfx hoot_seg5_dl_05001DF0[] = { }; // 0x05001E38 -static const Lights1 hoot_seg5_lights_05001E38 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05001E50 ALIGNED8 static const Texture hoot_seg5_texture_05001E50[] = { @@ -378,8 +326,8 @@ const Gfx hoot_seg5_dl_05002EB0[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_05001E38.l, 1), - gsSPLight(&hoot_seg5_lights_05001E38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_05002E50, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -400,10 +348,6 @@ const Gfx hoot_seg5_dl_05002F10[] = { }; // 0x05002F60 -static const Lights1 hoot_seg5_lights_05002F60 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05002F78 static const Vtx hoot_seg5_vertex_05002F78[] = { @@ -423,8 +367,8 @@ const Gfx hoot_seg5_dl_05002FD8[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_05002F60.l, 1), - gsSPLight(&hoot_seg5_lights_05002F60.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_05002F78, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -445,10 +389,6 @@ const Gfx hoot_seg5_dl_05003038[] = { }; // 0x05003088 -static const Lights1 hoot_seg5_lights_05003088 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050030A0 static const Vtx hoot_seg5_vertex_050030A0[] = { @@ -468,8 +408,8 @@ const Gfx hoot_seg5_dl_05003100[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_05003088.l, 1), - gsSPLight(&hoot_seg5_lights_05003088.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_050030A0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -490,10 +430,6 @@ const Gfx hoot_seg5_dl_05003160[] = { }; // 0x050031B0 -static const Lights1 hoot_seg5_lights_050031B0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050031C8 static const Vtx hoot_seg5_vertex_050031C8[] = { @@ -513,8 +449,8 @@ const Gfx hoot_seg5_dl_05003228[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_050031B0.l, 1), - gsSPLight(&hoot_seg5_lights_050031B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_050031C8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -535,10 +471,6 @@ const Gfx hoot_seg5_dl_05003288[] = { }; // 0x050032D8 -static const Lights1 hoot_seg5_lights_050032D8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050032F0 static const Vtx hoot_seg5_vertex_050032F0[] = { @@ -558,8 +490,8 @@ const Gfx hoot_seg5_dl_05003350[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_050032D8.l, 1), - gsSPLight(&hoot_seg5_lights_050032D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_050032F0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -580,10 +512,6 @@ const Gfx hoot_seg5_dl_050033B0[] = { }; // 0x05003400 -static const Lights1 hoot_seg5_lights_05003400 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003418 static const Vtx hoot_seg5_vertex_05003418[] = { @@ -603,8 +531,8 @@ const Gfx hoot_seg5_dl_05003478[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_05003400.l, 1), - gsSPLight(&hoot_seg5_lights_05003400.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_05003418, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -625,10 +553,6 @@ const Gfx hoot_seg5_dl_050034D8[] = { }; // 0x05003528 -static const Lights1 hoot_seg5_lights_05003528 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003540 static const Vtx hoot_seg5_vertex_05003540[] = { @@ -648,8 +572,8 @@ const Gfx hoot_seg5_dl_050035A0[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_05003528.l, 1), - gsSPLight(&hoot_seg5_lights_05003528.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_05003540, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -670,10 +594,6 @@ const Gfx hoot_seg5_dl_05003600[] = { }; // 0x05003650 -static const Lights1 hoot_seg5_lights_05003650 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003668 static const Vtx hoot_seg5_vertex_05003668[] = { @@ -693,8 +613,8 @@ const Gfx hoot_seg5_dl_050036C8[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 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), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&hoot_seg5_lights_05003650.l, 1), - gsSPLight(&hoot_seg5_lights_05003650.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(hoot_seg5_vertex_05003668, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -1087,8 +1007,8 @@ static const Vtx hoot_seg5_vertex_05004828[] = { // 0x05004928 - 0x05004A98 const Gfx hoot_seg5_dl_05004928[] = { - gsSPLight(&hoot_seg5_lights_05000930.l, 1), - gsSPLight(&hoot_seg5_lights_05000930.a, 2), + gsSPLightColor(LIGHT_1, 0xdb9946ff), + gsSPLightColor(LIGHT_2, 0x362611ff), gsSPVertex(hoot_seg5_vertex_05003778, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1108,8 +1028,8 @@ const Gfx hoot_seg5_dl_05004928[] = { gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(hoot_seg5_vertex_05003B48, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&hoot_seg5_lights_05000948.l, 1), - gsSPLight(&hoot_seg5_lights_05000948.a, 2), + gsSPLightColor(LIGHT_1, 0x191919ff), + gsSPLightColor(LIGHT_2, 0x60606ff), gsSPVertex(hoot_seg5_vertex_05003BA8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1122,8 +1042,8 @@ const Gfx hoot_seg5_dl_05004928[] = { // 0x05004A98 - 0x05004B38 const Gfx hoot_seg5_dl_05004A98[] = { - gsSPLight(&hoot_seg5_lights_05000960.l, 1), - gsSPLight(&hoot_seg5_lights_05000960.a, 2), + gsSPLightColor(LIGHT_1, 0x772a16ff), + gsSPLightColor(LIGHT_2, 0x1d0a05ff), gsSPVertex(hoot_seg5_vertex_05003D58, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1131,8 +1051,8 @@ const Gfx hoot_seg5_dl_05004A98[] = { gsSPVertex(hoot_seg5_vertex_05003E58, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), - gsSPLight(&hoot_seg5_lights_05000978.l, 1), - gsSPLight(&hoot_seg5_lights_05000978.a, 2), + gsSPLightColor(LIGHT_1, 0x191919ff), + gsSPLightColor(LIGHT_2, 0x60606ff), gsSPVertex(hoot_seg5_vertex_05003F18, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -1140,8 +1060,8 @@ const Gfx hoot_seg5_dl_05004A98[] = { // 0x05004B38 - 0x05004CA8 const Gfx hoot_seg5_dl_05004B38[] = { - gsSPLight(&hoot_seg5_lights_05000948.l, 1), - gsSPLight(&hoot_seg5_lights_05000948.a, 2), + gsSPLightColor(LIGHT_1, 0x191919ff), + gsSPLightColor(LIGHT_2, 0x60606ff), gsSPVertex(hoot_seg5_vertex_05003F58, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1149,8 +1069,8 @@ const Gfx hoot_seg5_dl_05004B38[] = { gsSPVertex(hoot_seg5_vertex_05004048, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), - gsSPLight(&hoot_seg5_lights_05000930.l, 1), - gsSPLight(&hoot_seg5_lights_05000930.a, 2), + gsSPLightColor(LIGHT_1, 0xdb9946ff), + gsSPLightColor(LIGHT_2, 0x362611ff), gsSPVertex(hoot_seg5_vertex_05004108, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1175,8 +1095,8 @@ const Gfx hoot_seg5_dl_05004B38[] = { // 0x05004CA8 - 0x05004D48 const Gfx hoot_seg5_dl_05004CA8[] = { - gsSPLight(&hoot_seg5_lights_05000960.l, 1), - gsSPLight(&hoot_seg5_lights_05000960.a, 2), + gsSPLightColor(LIGHT_1, 0x772a16ff), + gsSPLightColor(LIGHT_2, 0x1d0a05ff), gsSPVertex(hoot_seg5_vertex_05004548, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1184,8 +1104,8 @@ const Gfx hoot_seg5_dl_05004CA8[] = { gsSPVertex(hoot_seg5_vertex_05004648, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), - gsSPLight(&hoot_seg5_lights_05000978.l, 1), - gsSPLight(&hoot_seg5_lights_05000978.a, 2), + gsSPLightColor(LIGHT_1, 0x191919ff), + gsSPLightColor(LIGHT_2, 0x60606ff), gsSPVertex(hoot_seg5_vertex_05004708, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPEndDisplayList(), @@ -1193,8 +1113,8 @@ const Gfx hoot_seg5_dl_05004CA8[] = { // 0x05004D48 - 0x05004EC0 const Gfx hoot_seg5_dl_05004D48[] = { - gsSPLight(&hoot_seg5_lights_05000900.l, 1), - gsSPLight(&hoot_seg5_lights_05000900.a, 2), + gsSPLightColor(LIGHT_1, 0xc06e3dff), + gsSPLightColor(LIGHT_2, 0x301b0fff), gsSPVertex(hoot_seg5_vertex_05004748, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 1, 4, 0x0, 7, 8, 9, 0x0), @@ -1206,8 +1126,8 @@ const Gfx hoot_seg5_dl_05004D48[] = { gsSP2Triangles( 2, 10, 12, 0x0, 6, 9, 8, 0x0), gsSP2Triangles(11, 13, 7, 0x0, 5, 4, 1, 0x0), gsSP1Triangle( 1, 8, 2, 0x0), - gsSPLight(&hoot_seg5_lights_05000960.l, 1), - gsSPLight(&hoot_seg5_lights_05000960.a, 2), + gsSPLightColor(LIGHT_1, 0x772a16ff), + gsSPLightColor(LIGHT_2, 0x1d0a05ff), gsSPVertex(hoot_seg5_vertex_05004828, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 8, 4, 3, 0x0), diff --git a/actors/king_bobomb/model.inc.c b/actors/king_bobomb/model.inc.c index 8614a53d..c527c526 100644 --- a/actors/king_bobomb/model.inc.c +++ b/actors/king_bobomb/model.inc.c @@ -2,34 +2,14 @@ // // 0x05000078 // Unreferenced light group -// UNUSED static const Lights1 king_bobomb_lights_unused1 = gdSPDefLights1( -// 0x36, 0x1e, 0x00, -// 0xd9, 0x7a, 0x00, 0x28, 0x28, 0x28 -// ); // // Unreferenced light group -// UNUSED static const Lights1 king_bobomb_lights_unused2 = gdSPDefLights1( -// 0x00, 0x00, 0x3f, -// 0x00, 0x00, 0xff, 0x28, 0x28, 0x28 -// ); // // Unreferenced light group -// UNUSED static const Lights1 king_bobomb_lights_unused3 = gdSPDefLights1( -// 0x3c, 0x28, 0x00, -// 0xf1, 0xa2, 0x00, 0x28, 0x28, 0x28 -// ); // // Unreferenced light group -// UNUSED static const Lights1 king_bobomb_lights_unused4 = gdSPDefLights1( -// 0x2c, 0x2c, 0x2c, -// 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -// ); // // Unreferenced light group -// UNUSED static const Lights1 king_bobomb_lights_unused5 = gdSPDefLights1( -// 0x06, 0x06, 0x06, -// 0x19, 0x19, 0x19, 0x28, 0x28, 0x28 -// ); // // 0x05000078 // ALIGNED8 static const Texture king_bobomb_seg5_texture_05000078[] = { @@ -303,10 +283,6 @@ const Gfx king_bobomb_seg5_dl_0500A978[] = { }; // 0x0500A9E8 -static const Lights1 king_bobomb_seg5_lights_0500A9E8 = gdSPDefLights1( - 0x6f, 0x56, 0x11, - 0xde, 0xad, 0x23, 0x28, 0x28, 0x28 -); // 0x0500AA00 static const Vtx king_bobomb_seg5_vertex_0500AA00[] = { @@ -346,8 +322,8 @@ static const Vtx king_bobomb_seg5_vertex_0500AB00[] = { // 0x0500ABC0 - 0x0500AD08 const Gfx king_bobomb_seg5_dl_0500ABC0[] = { - gsSPLight(&king_bobomb_seg5_lights_0500A9E8.l, 1), - gsSPLight(&king_bobomb_seg5_lights_0500A9E8.a, 2), + gsSPLightColor(LIGHT_1, 0xdead23ff), + gsSPLightColor(LIGHT_2, 0x6f5611ff), gsSPVertex(king_bobomb_seg5_vertex_0500AA00, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 6, 0x0), @@ -382,10 +358,6 @@ const Gfx king_bobomb_seg5_dl_0500AD08[] = { }; // 0x0500AD38 -static const Lights1 king_bobomb_seg5_lights_0500AD38 = gdSPDefLights1( - 0x6f, 0x4f, 0x10, - 0xde, 0x9e, 0x20, 0x28, 0x28, 0x28 -); // 0x0500AD50 static const Vtx king_bobomb_seg5_vertex_0500AD50[] = { @@ -426,8 +398,8 @@ static const Vtx king_bobomb_seg5_vertex_0500AE50[] = { // 0x0500AF20 - 0x0500B068 const Gfx king_bobomb_seg5_dl_0500AF20[] = { - gsSPLight(&king_bobomb_seg5_lights_0500AD38.l, 1), - gsSPLight(&king_bobomb_seg5_lights_0500AD38.a, 2), + gsSPLightColor(LIGHT_1, 0xde9e20ff), + gsSPLightColor(LIGHT_2, 0x6f4f10ff), gsSPVertex(king_bobomb_seg5_vertex_0500AD50, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 2, 0x0), @@ -518,10 +490,6 @@ const Gfx king_bobomb_seg5_dl_body[] = { }; // 0x0500B200 -static const Lights1 king_bobomb_seg5_lights_eyes = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500B218 static const Vtx king_bobomb_seg5_vertex_eyes[] = { @@ -546,8 +514,8 @@ const Gfx king_bobomb_seg5_dl_eyes_start_dl[] = { }; const Gfx king_bobomb_seg5_dl_eyes_end_dl[] = { - gsSPLight(&king_bobomb_seg5_lights_eyes.l, 1), - gsSPLight(&king_bobomb_seg5_lights_eyes.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(king_bobomb_seg5_vertex_eyes, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0), gsSP2Triangles( 2, 3, 0, 0x0, 4, 5, 3, 0x0), @@ -577,10 +545,6 @@ const Gfx king_bobomb_seg5_dl_eyes_blink[] = { }; // 0x0500B330 -static const Lights1 king_bobomb_seg5_lights_0500B330 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500B348 static const Vtx king_bobomb_seg5_vertex_0500B348[] = { @@ -596,8 +560,8 @@ static const Vtx king_bobomb_seg5_vertex_0500B348[] = { // 0x0500B3C8 - 0x0500B418 const Gfx king_bobomb_seg5_dl_0500B3C8[] = { - gsSPLight(&king_bobomb_seg5_lights_0500B330.l, 1), - gsSPLight(&king_bobomb_seg5_lights_0500B330.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(king_bobomb_seg5_vertex_0500B348, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 0, 0x0), @@ -618,10 +582,6 @@ const Gfx king_bobomb_seg5_dl_0500B418[] = { }; // 0x0500B458 -static const Lights1 king_bobomb_seg5_lights_0500B458 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500B470 static const Vtx king_bobomb_seg5_vertex_0500B470[] = { @@ -660,8 +620,8 @@ const Gfx king_bobomb_seg5_dl_0500B5F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, king_bobomb_seg5_texture_crown_rim), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&king_bobomb_seg5_lights_0500B458.l, 1), - gsSPLight(&king_bobomb_seg5_lights_0500B458.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(king_bobomb_seg5_vertex_0500B470, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 5, 4, 3, 0x0), diff --git a/actors/klepto/model.inc.c b/actors/klepto/model.inc.c index 3b2eec96..fa4b608d 100644 --- a/actors/klepto/model.inc.c +++ b/actors/klepto/model.inc.c @@ -31,16 +31,8 @@ ALIGNED8 static const Texture klepto_seg5_texture_05003008[] = { }; // 0x05003808 -static const Lights1 klepto_seg5_lights_05003808 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003820 -static const Lights1 klepto_seg5_lights_05003820 = gdSPDefLights1( - 0x3f, 0x1d, 0x08, - 0xff, 0x75, 0x21, 0x28, 0x28, 0x28 -); // 0x05003838 static const Vtx klepto_seg5_vertex_05003838[] = { @@ -98,8 +90,8 @@ const Gfx klepto_seg5_dl_05003A68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05000808), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05003808.l, 1), - gsSPLight(&klepto_seg5_lights_05003808.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05003838, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 4, 5, 2, 0x0), @@ -124,8 +116,8 @@ const Gfx klepto_seg5_dl_05003AC0[] = { // 0x05003B40 - 0x05003BD0 const Gfx klepto_seg5_dl_05003B40[] = { - gsSPLight(&klepto_seg5_lights_05003820.l, 1), - gsSPLight(&klepto_seg5_lights_05003820.a, 2), + gsSPLightColor(LIGHT_1, 0xff7521ff), + gsSPLightColor(LIGHT_2, 0x3f1d08ff), gsSPVertex(klepto_seg5_vertex_050039B8, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 3, 0x0, 3, 6, 4, 0x0), @@ -159,10 +151,6 @@ const Gfx klepto_seg5_dl_05003BD0[] = { }; // 0x05003C58 -static const Lights1 klepto_seg5_lights_05003C58 = gdSPDefLights1( - 0x3f, 0x1d, 0x08, - 0xff, 0x75, 0x21, 0x28, 0x28, 0x28 -); // 0x05003C70 static const Vtx klepto_seg5_vertex_05003C70[] = { @@ -179,8 +167,8 @@ static const Vtx klepto_seg5_vertex_05003C70[] = { // 0x05003D00 - 0x05003D80 const Gfx klepto_seg5_dl_05003D00[] = { - gsSPLight(&klepto_seg5_lights_05003C58.l, 1), - gsSPLight(&klepto_seg5_lights_05003C58.a, 2), + gsSPLightColor(LIGHT_1, 0xff7521ff), + gsSPLightColor(LIGHT_2, 0x3f1d08ff), gsSPVertex(klepto_seg5_vertex_05003C70, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 2, 5, 0x0, 2, 4, 3, 0x0), @@ -202,10 +190,6 @@ const Gfx klepto_seg5_dl_05003D80[] = { }; // 0x05003DB0 -static const Lights1 klepto_seg5_lights_05003DB0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003DC8 static const Vtx klepto_seg5_vertex_05003DC8[] = { @@ -226,8 +210,8 @@ const Gfx klepto_seg5_dl_05003E68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05000008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05003DB0.l, 1), - gsSPLight(&klepto_seg5_lights_05003DB0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05003DC8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0), gsSP2Triangles( 5, 2, 1, 0x0, 2, 5, 3, 0x0), @@ -257,10 +241,6 @@ const Gfx klepto_seg5_dl_05003F20[] = { }; // 0x05003F80 -static const Lights1 klepto_seg5_lights_05003F80 = gdSPDefLights1( - 0x07, 0x01, 0x01, - 0x1e, 0x05, 0x04, 0x28, 0x28, 0x28 -); // 0x05003F98 static const Vtx klepto_seg5_vertex_05003F98[] = { @@ -280,8 +260,8 @@ static const Vtx klepto_seg5_vertex_05003F98[] = { // 0x05004058 - 0x05004118 const Gfx klepto_seg5_dl_05004058[] = { - gsSPLight(&klepto_seg5_lights_05003F80.l, 1), - gsSPLight(&klepto_seg5_lights_05003F80.a, 2), + gsSPLightColor(LIGHT_1, 0x1e0504ff), + gsSPLightColor(LIGHT_2, 0x70101ff), gsSPVertex(klepto_seg5_vertex_05003F98, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 0, 0x0), @@ -307,10 +287,6 @@ const Gfx klepto_seg5_dl_05004118[] = { }; // 0x05004148 -static const Lights1 klepto_seg5_lights_05004148 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004160 static const Vtx klepto_seg5_vertex_05004160[] = { @@ -325,8 +301,8 @@ const Gfx klepto_seg5_dl_050041A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05003008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05004148.l, 1), - gsSPLight(&klepto_seg5_lights_05004148.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05004160, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSPEndDisplayList(), @@ -351,10 +327,6 @@ const Gfx klepto_seg5_dl_050041E8[] = { }; // 0x05004258 -static const Lights1 klepto_seg5_lights_05004258 = gdSPDefLights1( - 0x3f, 0x1d, 0x08, - 0xff, 0x75, 0x21, 0x28, 0x28, 0x28 -); // 0x05004270 static const Vtx klepto_seg5_vertex_05004270[] = { @@ -368,8 +340,8 @@ static const Vtx klepto_seg5_vertex_05004270[] = { // 0x050042D0 - 0x05004330 const Gfx klepto_seg5_dl_050042D0[] = { - gsSPLight(&klepto_seg5_lights_05004258.l, 1), - gsSPLight(&klepto_seg5_lights_05004258.a, 2), + gsSPLightColor(LIGHT_1, 0xff7521ff), + gsSPLightColor(LIGHT_2, 0x3f1d08ff), gsSPVertex(klepto_seg5_vertex_05004270, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 4, 0, 2, 0x0, 0, 4, 3, 0x0), @@ -389,10 +361,6 @@ const Gfx klepto_seg5_dl_05004330[] = { }; // 0x05004360 -static const Lights1 klepto_seg5_lights_05004360 = gdSPDefLights1( - 0x3f, 0x1d, 0x08, - 0xff, 0x75, 0x21, 0x28, 0x28, 0x28 -); // 0x05004378 static const Vtx klepto_seg5_vertex_05004378[] = { @@ -406,8 +374,8 @@ static const Vtx klepto_seg5_vertex_05004378[] = { // 0x050043D8 - 0x05004438 const Gfx klepto_seg5_dl_050043D8[] = { - gsSPLight(&klepto_seg5_lights_05004360.l, 1), - gsSPLight(&klepto_seg5_lights_05004360.a, 2), + gsSPLightColor(LIGHT_1, 0xff7521ff), + gsSPLightColor(LIGHT_2, 0x3f1d08ff), gsSPVertex(klepto_seg5_vertex_05004378, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 4, 0, 2, 0x0, 0, 4, 3, 0x0), @@ -427,16 +395,8 @@ const Gfx klepto_seg5_dl_05004438[] = { }; // 0x05004468 -static const Lights1 klepto_seg5_lights_05004468 = gdSPDefLights1( - 0x02, 0x00, 0x00, - 0x08, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05004480 -static const Lights1 klepto_seg5_lights_05004480 = gdSPDefLights1( - 0x3f, 0x1d, 0x08, - 0xff, 0x75, 0x21, 0x28, 0x28, 0x28 -); // 0x05004498 static const Vtx klepto_seg5_vertex_05004498[] = { @@ -484,16 +444,16 @@ static const Vtx klepto_seg5_vertex_05004648[] = { // 0x05004698 - 0x050047C8 const Gfx klepto_seg5_dl_05004698[] = { - gsSPLight(&klepto_seg5_lights_05004468.l, 1), - gsSPLight(&klepto_seg5_lights_05004468.a, 2), + gsSPLightColor(LIGHT_1, 0x80000ff), + gsSPLightColor(LIGHT_2, 0x20000ff), gsSPVertex(klepto_seg5_vertex_05004498, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 3, 6, 0x0, 3, 5, 6, 0x0), gsSP2Triangles( 7, 8, 9, 0x0, 8, 7, 10, 0x0), gsSP2Triangles( 8, 10, 9, 0x0, 0, 11, 1, 0x0), gsSP1Triangle(11, 0, 2, 0x0), - gsSPLight(&klepto_seg5_lights_05004480.l, 1), - gsSPLight(&klepto_seg5_lights_05004480.a, 2), + gsSPLightColor(LIGHT_1, 0xff7521ff), + gsSPLightColor(LIGHT_2, 0x3f1d08ff), gsSPVertex(klepto_seg5_vertex_05004558, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 3, 0x0, 7, 4, 3, 0x0), @@ -521,16 +481,8 @@ const Gfx klepto_seg5_dl_050047C8[] = { }; // 0x050047F8 -static const Lights1 klepto_seg5_lights_050047F8 = gdSPDefLights1( - 0x02, 0x00, 0x00, - 0x08, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05004810 -static const Lights1 klepto_seg5_lights_05004810 = gdSPDefLights1( - 0x3f, 0x1d, 0x08, - 0xff, 0x75, 0x21, 0x28, 0x28, 0x28 -); // 0x05004828 static const Vtx klepto_seg5_vertex_05004828[] = { @@ -578,16 +530,16 @@ static const Vtx klepto_seg5_vertex_050049D8[] = { // 0x05004A28 - 0x05004B58 const Gfx klepto_seg5_dl_05004A28[] = { - gsSPLight(&klepto_seg5_lights_050047F8.l, 1), - gsSPLight(&klepto_seg5_lights_050047F8.a, 2), + gsSPLightColor(LIGHT_1, 0x80000ff), + gsSPLightColor(LIGHT_2, 0x20000ff), gsSPVertex(klepto_seg5_vertex_05004828, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 3, 6, 0x0, 3, 5, 6, 0x0), gsSP2Triangles( 7, 8, 9, 0x0, 8, 7, 10, 0x0), gsSP2Triangles( 8, 10, 9, 0x0, 0, 11, 1, 0x0), gsSP1Triangle(11, 0, 2, 0x0), - gsSPLight(&klepto_seg5_lights_05004810.l, 1), - gsSPLight(&klepto_seg5_lights_05004810.a, 2), + gsSPLightColor(LIGHT_1, 0xff7521ff), + gsSPLightColor(LIGHT_2, 0x3f1d08ff), gsSPVertex(klepto_seg5_vertex_050048E8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 3, 0x0, 7, 4, 3, 0x0), @@ -615,10 +567,6 @@ const Gfx klepto_seg5_dl_05004B58[] = { }; // 0x05004B88 -static const Lights1 klepto_seg5_lights_05004B88 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004BA0 static const Vtx klepto_seg5_vertex_05004BA0[] = { @@ -633,8 +581,8 @@ const Gfx klepto_seg5_dl_05004BE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05002008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05004B88.l, 1), - gsSPLight(&klepto_seg5_lights_05004B88.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05004BA0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -659,10 +607,6 @@ const Gfx klepto_seg5_dl_05004C28[] = { }; // 0x05004C98 -static const Lights1 klepto_seg5_lights_05004C98 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004CB0 static const Vtx klepto_seg5_vertex_05004CB0[] = { @@ -677,8 +621,8 @@ const Gfx klepto_seg5_dl_05004CF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05002008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05004C98.l, 1), - gsSPLight(&klepto_seg5_lights_05004C98.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05004CB0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPEndDisplayList(), @@ -703,10 +647,6 @@ const Gfx klepto_seg5_dl_05004D38[] = { }; // 0x05004DA8 -static const Lights1 klepto_seg5_lights_05004DA8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004DC0 static const Vtx klepto_seg5_vertex_05004DC0[] = { @@ -721,8 +661,8 @@ const Gfx klepto_seg5_dl_05004E00[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05002008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05004DA8.l, 1), - gsSPLight(&klepto_seg5_lights_05004DA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05004DC0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -747,10 +687,6 @@ const Gfx klepto_seg5_dl_05004E48[] = { }; // 0x05004EB8 -static const Lights1 klepto_seg5_lights_05004EB8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004ED0 static const Vtx klepto_seg5_vertex_05004ED0[] = { @@ -765,8 +701,8 @@ const Gfx klepto_seg5_dl_05004F10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05002008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05004EB8.l, 1), - gsSPLight(&klepto_seg5_lights_05004EB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05004ED0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPEndDisplayList(), @@ -791,10 +727,6 @@ const Gfx klepto_seg5_dl_05004F58[] = { }; // 0x05004FC8 -static const Lights1 klepto_seg5_lights_05004FC8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004FE0 static const Vtx klepto_seg5_vertex_05004FE0[] = { @@ -809,8 +741,8 @@ const Gfx klepto_seg5_dl_05005020[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05002008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_05004FC8.l, 1), - gsSPLight(&klepto_seg5_lights_05004FC8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_05004FE0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -835,10 +767,6 @@ const Gfx klepto_seg5_dl_05005068[] = { }; // 0x050050D8 -static const Lights1 klepto_seg5_lights_050050D8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050050F0 static const Vtx klepto_seg5_vertex_050050F0[] = { @@ -853,8 +781,8 @@ const Gfx klepto_seg5_dl_05005130[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, klepto_seg5_texture_05002008), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&klepto_seg5_lights_050050D8.l, 1), - gsSPLight(&klepto_seg5_lights_050050D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(klepto_seg5_vertex_050050F0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPEndDisplayList(), diff --git a/actors/koopa/model.inc.c b/actors/koopa/model.inc.c index 7dc67c6d..22d3f91c 100644 --- a/actors/koopa/model.inc.c +++ b/actors/koopa/model.inc.c @@ -2,58 +2,25 @@ // Unreferenced light group -UNUSED static const Lights1 koopa_lights_unused1 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060025A0 -static const Lights1 koopa_seg6_lights_060025A0 = gdSPDefLights1( - 0x00, 0x59, 0x00, - 0x00, 0xb2, 0x00, 0x28, 0x28, 0x28 -); // 0x060025B8 -static const Lights1 koopa_seg6_lights_060025B8 = gdSPDefLights1( - 0x70, 0x57, 0x00, - 0xe0, 0xae, 0x00, 0x28, 0x28, 0x28 -); // 0x060025D0 -static const Lights1 koopa_seg6_lights_060025D0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 koopa_lights_unused2 = gdSPDefLights1( - 0x59, 0x59, 0x59, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x06002600 -static const Lights1 koopa_seg6_lights_06002600 = gdSPDefLights1( - 0x00, 0x54, 0x00, - 0x00, 0xa9, 0x00, 0x28, 0x28, 0x28 -); // 0x06002618 -static const Lights1 koopa_seg6_lights_06002618 = gdSPDefLights1( - 0x59, 0x59, 0x59, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x06002630 -static const Lights1 koopa_seg6_lights_06002630 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); -// //! There is a malformed light entry here pointing to this texture + 0x18. -// It results in the koopa actor 'wearing' what appears to be pink shorts -// beneath its shell, despite the fact it was intended to be white like -// the rest of its body. This is evident because once the mistake is corrected -// it turns back to being white like the other polygons. +// This light approximates the pink shorts that Koopas have, but is not exact +// because the original light had two different values for ambient and diffuse. +// However, defining it this way allows the light converter to run correctly. + // 0x06002648 ALIGNED8 static const Texture koopa_seg6_texture_06002648[] = { #include "actors/koopa/koopa_shell_front.rgba16.inc.c" @@ -95,16 +62,8 @@ ALIGNED8 static const Texture koopa_seg6_texture_06005E48[] = { }; // 0x06006E48 -static const Lights1 koopa_seg6_lights_06006E48 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06006E60 -static const Lights1 koopa_seg6_lights_06006E60 = gdSPDefLights1( - 0x67, 0x0b, 0x1a, - 0xce, 0x16, 0x35, 0x28, 0x28, 0x28 -); // 0x06006E78 static const Vtx koopa_seg6_vertex_06006E78[] = { @@ -278,8 +237,8 @@ static const Vtx koopa_seg6_vertex_060075B8[] = { // 0x06007658 - 0x060076B0 const Gfx koopa_seg6_dl_06007658[] = { - gsSPLight(&koopa_seg6_lights_06006E48.l, 1), - gsSPLight(&koopa_seg6_lights_06006E48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_06006E78, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 4, 6, 0, 0x0), @@ -352,12 +311,12 @@ const Gfx koopa_seg6_dl_06007850[] = { // 0x06007970 - 0x06007A60 const Gfx koopa_seg6_dl_06007970[] = { - gsSPLight(&koopa_seg6_lights_06006E60.l, 1), - gsSPLight(&koopa_seg6_lights_06006E60.a, 2), + gsSPLightColor(LIGHT_1, 0xce1635ff), + gsSPLightColor(LIGHT_2, 0x670b1aff), gsSPVertex(koopa_seg6_vertex_06007488, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&koopa_seg6_lights_06006E48.l, 1), - gsSPLight(&koopa_seg6_lights_06006E48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_060074B8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 7, 0x0, 4, 6, 5, 0x0), @@ -420,16 +379,8 @@ const Gfx koopa_seg6_dl_06007B20[] = { }; // 0x06007B48 -static const Lights1 koopa_seg6_lights_06007B48 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06007B60 -static const Lights1 koopa_seg6_lights_06007B60 = gdSPDefLights1( - 0x70, 0x57, 0x00, - 0xe0, 0xae, 0x00, 0x28, 0x28, 0x28 -); // 0x06007B78 static const Vtx koopa_seg6_vertex_06007B78[] = { @@ -528,8 +479,8 @@ const Gfx koopa_seg6_dl_06007FB8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, koopa_seg6_texture_06002E48), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&koopa_seg6_lights_06007B48.l, 1), - gsSPLight(&koopa_seg6_lights_06007B48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_06007B78, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 0, 5, 4, 0x0), @@ -559,13 +510,13 @@ const Gfx koopa_seg6_dl_06008050[] = { // 0x060080F8 - 0x06008250 const Gfx koopa_seg6_dl_060080F8[] = { - gsSPLight(&koopa_seg6_lights_06007B60.l, 1), - gsSPLight(&koopa_seg6_lights_06007B60.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_06007CF8, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP1Triangle( 2, 4, 3, 0x0), - gsSPLight(&koopa_seg6_lights_06007B48.l, 1), - gsSPLight(&koopa_seg6_lights_06007B48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_06007D48, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 1, 3, 0x0, 2, 1, 5, 0x0), @@ -607,16 +558,8 @@ const Gfx koopa_seg6_dl_06008250[] = { }; // 0x060082C0 -static const Lights1 koopa_seg6_lights_060082C0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060082D8 -static const Lights1 koopa_seg6_lights_060082D8 = gdSPDefLights1( - 0x00, 0x64, 0x00, - 0x00, 0xc8, 0x00, 0x28, 0x28, 0x28 -); // 0x060082F0 static const Vtx koopa_seg6_vertex_060082F0[] = { @@ -671,8 +614,8 @@ const Gfx koopa_seg6_dl_06008530[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, koopa_seg6_texture_06003648), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&koopa_seg6_lights_060082C0.l, 1), - gsSPLight(&koopa_seg6_lights_060082C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_060082F0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 4, 5, 3, 0x0), @@ -699,8 +642,8 @@ const Gfx koopa_seg6_dl_060085E8[] = { // 0x06008640 - 0x060086D0 const Gfx koopa_seg6_dl_06008640[] = { - gsSPLight(&koopa_seg6_lights_060082D8.l, 1), - gsSPLight(&koopa_seg6_lights_060082D8.a, 2), + gsSPLightColor(LIGHT_1, 0xc800ff), + gsSPLightColor(LIGHT_2, 0x6400ff), gsSPVertex(koopa_seg6_vertex_06008470, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 3, 4, 0, 0x0, 1, 5, 2, 0x0), @@ -731,16 +674,8 @@ const Gfx koopa_seg6_dl_060086D0[] = { }; // 0x06008740 -static const Lights1 koopa_seg6_lights_06008740 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06008758 -static const Lights1 koopa_seg6_lights_06008758 = gdSPDefLights1( - 0x00, 0x64, 0x00, - 0x00, 0xc8, 0x00, 0x28, 0x28, 0x28 -); // 0x06008770 static const Vtx koopa_seg6_vertex_06008770[] = { @@ -795,8 +730,8 @@ const Gfx koopa_seg6_dl_060089B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, koopa_seg6_texture_06003648), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&koopa_seg6_lights_06008740.l, 1), - gsSPLight(&koopa_seg6_lights_06008740.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_06008770, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 4, 5, 3, 0x0), @@ -823,8 +758,8 @@ const Gfx koopa_seg6_dl_06008A68[] = { // 0x06008AC0 - 0x06008B50 const Gfx koopa_seg6_dl_06008AC0[] = { - gsSPLight(&koopa_seg6_lights_06008758.l, 1), - gsSPLight(&koopa_seg6_lights_06008758.a, 2), + gsSPLightColor(LIGHT_1, 0xc800ff), + gsSPLightColor(LIGHT_2, 0x6400ff), gsSPVertex(koopa_seg6_vertex_060088F0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 5, 0, 6, 0x0), @@ -1742,8 +1677,8 @@ static const Vtx koopa_seg6_vertex_0600B5F0[] = { // 0x0600B6E0 - 0x0600B838 const Gfx koopa_seg6_dl_0600B6E0[] = { - gsSPLight(&koopa_seg6_lights_060025A0.l, 1), - gsSPLight(&koopa_seg6_lights_060025A0.a, 2), + gsSPLightColor(LIGHT_1, 0xb200ff), + gsSPLightColor(LIGHT_2, 0x5900ff), gsSPVertex(koopa_seg6_vertex_06008BC0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1771,8 +1706,8 @@ const Gfx koopa_seg6_dl_0600B6E0[] = { // 0x0600B838 - 0x0600B8B8 const Gfx koopa_seg6_dl_0600B838[] = { - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_06008F60, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1785,8 +1720,8 @@ const Gfx koopa_seg6_dl_0600B838[] = { // 0x0600B8B8 - 0x0600BA10 const Gfx koopa_seg6_dl_0600B8B8[] = { - gsSPLight(&koopa_seg6_lights_060025A0.l, 1), - gsSPLight(&koopa_seg6_lights_060025A0.a, 2), + gsSPLightColor(LIGHT_1, 0xb200ff), + gsSPLightColor(LIGHT_2, 0x5900ff), gsSPVertex(koopa_seg6_vertex_06009040, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1815,8 +1750,8 @@ const Gfx koopa_seg6_dl_0600B8B8[] = { // 0x0600BA10 - 0x0600BA90 const Gfx koopa_seg6_dl_0600BA10[] = { - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_06009410, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1829,8 +1764,8 @@ const Gfx koopa_seg6_dl_0600BA10[] = { // 0x0600BA90 - 0x0600BC18 const Gfx koopa_seg6_dl_0600BA90[] = { - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_060094F0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1864,8 +1799,8 @@ const Gfx koopa_seg6_dl_0600BA90[] = { // 0x0600BC18 - 0x0600BC88 const Gfx koopa_seg6_dl_0600BC18[] = { - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_06009A30, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 2, 0x0), @@ -1877,8 +1812,8 @@ const Gfx koopa_seg6_dl_0600BC18[] = { // 0x0600BC88 - 0x0600BE10 const Gfx koopa_seg6_dl_0600BC88[] = { - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_06009AD0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1912,8 +1847,8 @@ const Gfx koopa_seg6_dl_0600BC88[] = { // 0x0600BE10 - 0x0600BE80 const Gfx koopa_seg6_dl_0600BE10[] = { - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_0600A010, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 2, 0x0), @@ -1925,8 +1860,8 @@ const Gfx koopa_seg6_dl_0600BE10[] = { // 0x0600BE80 - 0x0600C240 const Gfx koopa_seg6_dl_0600BE80[] = { - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_0600A0B0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 6, 7, 8, 0x0), @@ -1977,8 +1912,8 @@ const Gfx koopa_seg6_dl_0600BE80[] = { gsSP1Triangle(13, 14, 15, 0x0), gsSPVertex(koopa_seg6_vertex_0600A990, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&koopa_seg6_lights_060025D0.l, 1), - gsSPLight(&koopa_seg6_lights_060025D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_0600A9C0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 2, 9, 10, 0x0), @@ -2001,8 +1936,8 @@ const Gfx koopa_seg6_dl_0600BE80[] = { // 0x0600C240 - 0x0600C498 const Gfx koopa_seg6_dl_0600C240[] = { - gsSPLight(&koopa_seg6_lights_06002618.l, 1), - gsSPLight(&koopa_seg6_lights_06002618.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x595959ff), gsSPVertex(koopa_seg6_vertex_0600AC90, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 5, 4, 0x0), @@ -2023,8 +1958,8 @@ const Gfx koopa_seg6_dl_0600C240[] = { gsSP2Triangles( 4, 7, 8, 0x0, 4, 8, 9, 0x0), gsSP2Triangles( 3, 4, 9, 0x0, 0, 3, 10, 0x0), gsSP1Triangle(11, 12, 7, 0x0), - gsSPLight(&koopa_seg6_lights_06002600.l, 1), - gsSPLight(&koopa_seg6_lights_06002600.a, 2), + gsSPLightColor(LIGHT_1, 0xa900ff), + gsSPLightColor(LIGHT_2, 0x5400ff), gsSPVertex(koopa_seg6_vertex_0600AF60, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 6, 5, 1, 0x0), @@ -2032,8 +1967,8 @@ const Gfx koopa_seg6_dl_0600C240[] = { gsSP2Triangles( 3, 8, 9, 0x0, 4, 3, 9, 0x0), gsSP2Triangles( 7, 2, 5, 0x0, 6, 0, 8, 0x0), gsSP2Triangles( 8, 3, 6, 0x0, 6, 1, 0, 0x0), - gsSPLight(&koopa_seg6_lights_060025B8.l, 1), - gsSPLight(&koopa_seg6_lights_060025B8.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x705700ff), gsSPVertex(koopa_seg6_vertex_0600B000, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 3, 6, 0x0, 7, 8, 9, 0x0), @@ -2051,8 +1986,8 @@ const Gfx koopa_seg6_dl_0600C240[] = { // 0x0600C498 - 0x0600C6A0 const Gfx koopa_seg6_dl_0600C498[] = { - gsSPLight(&koopa_seg6_lights_06002630.l, 1), - gsSPLight(&koopa_seg6_lights_06002630.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(koopa_seg6_vertex_0600B190, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2078,8 +2013,8 @@ const Gfx koopa_seg6_dl_0600C498[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), #ifdef KOOPA_KEEP_PINK_SHORTS - gsSPLight((Texture*)koopa_seg6_texture_06002648 + 0x20, 1), // this malformed light results in a - gsSPLight((Texture*)koopa_seg6_texture_06002648 + 0x18, 2), // koopa appearing to wear pink shorts. + gsSPLightColor(LIGHT_1, 0xde01deff), + gsSPLightColor(LIGHT_2, 0xdec1deff), #endif gsSPVertex(koopa_seg6_vertex_0600B5F0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), diff --git a/actors/koopa_flag/model.inc.c b/actors/koopa_flag/model.inc.c index 7840c95c..7cde915f 100644 --- a/actors/koopa_flag/model.inc.c +++ b/actors/koopa_flag/model.inc.c @@ -1,22 +1,10 @@ // Koopa Flag // 0x06000000 -UNUSED static const Lights1 koopa_flag_seg6_lights_06000000 = gdSPDefLights1( - 0x00, 0x1b, 0x00, - 0x00, 0x6e, 0x00, 0x28, 0x28, 0x28 -); // 0x06000018 -UNUSED static const Lights1 koopa_flag_seg6_lights_06000018 = gdSPDefLights1( - 0x3f, 0x39, 0x15, - 0xff, 0xe6, 0x57, 0x28, 0x28, 0x28 -); // 0x06000030 -UNUSED static const Lights1 koopa_flag_seg6_lights_06000030 = gdSPDefLights1( - 0x2b, 0x15, 0x01, - 0xac, 0x54, 0x05, 0x28, 0x28, 0x28 -); // 0x06000048 ALIGNED8 static const Texture koopa_flag_seg6_texture_06000048[] = { @@ -24,16 +12,8 @@ ALIGNED8 static const Texture koopa_flag_seg6_texture_06000048[] = { }; // 0x06000848 -static const Lights1 koopa_flag_seg6_lights_06000848 = gdSPDefLights1( - 0x37, 0x27, 0x07, - 0xdf, 0x9f, 0x1f, 0x28, 0x28, 0x28 -); // 0x06000860 -static const Lights1 koopa_flag_seg6_lights_06000860 = gdSPDefLights1( - 0x14, 0x0a, 0x00, - 0x50, 0x28, 0x00, 0x28, 0x28, 0x28 -); // 0x06000878 static const Vtx koopa_flag_seg6_vertex_06000878[] = { @@ -60,13 +40,13 @@ static const Vtx koopa_flag_seg6_vertex_060008C8[] = { // 0x06000968 - 0x06000A08 const Gfx koopa_flag_seg6_dl_06000968[] = { - gsSPLight(&koopa_flag_seg6_lights_06000848.l, 1), - gsSPLight(&koopa_flag_seg6_lights_06000848.a, 2), + gsSPLightColor(LIGHT_1, 0xdf9f1fff), + gsSPLightColor(LIGHT_2, 0x372707ff), gsSPVertex(koopa_flag_seg6_vertex_06000878, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP1Triangle( 3, 0, 2, 0x0), - gsSPLight(&koopa_flag_seg6_lights_06000860.l, 1), - gsSPLight(&koopa_flag_seg6_lights_06000860.a, 2), + gsSPLightColor(LIGHT_1, 0x502800ff), + gsSPLightColor(LIGHT_2, 0x140a00ff), gsSPVertex(koopa_flag_seg6_vertex_060008C8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 2, 1, 0x0, 5, 0, 3, 0x0), diff --git a/actors/koopa_shell/model.inc.c b/actors/koopa_shell/model.inc.c index 56708e6f..06ee1cdd 100644 --- a/actors/koopa_shell/model.inc.c +++ b/actors/koopa_shell/model.inc.c @@ -1,28 +1,12 @@ // Koopa Shell // 0x08026388 -static const Lights1 koopa_shell_seg8_lights_08026388 = gdSPDefLights1( - 0x11, 0x33, 0x06, - 0x45, 0xcd, 0x1a, 0x28, 0x28, 0x28 -); // 0x080263A0 -static const Lights1 koopa_shell_seg8_lights_080263A0 = gdSPDefLights1( - 0x39, 0x0a, 0x07, - 0xe4, 0x29, 0x1d, 0x28, 0x28, 0x28 -); // 0x080263B8 -static const Lights1 koopa_shell_seg8_lights_080263B8 = gdSPDefLights1( - 0x21, 0x30, 0x39, - 0x84, 0xc3, 0xe5, 0x28, 0x28, 0x28 -); // 0x080263D0 -static const Lights1 koopa_shell_seg8_lights_080263D0 = gdSPDefLights1( - 0x3e, 0x3f, 0x3e, - 0xfa, 0xff, 0xf8, 0x28, 0x28, 0x28 -); // 0x080263E8 static const Vtx koopa_shell_seg8_vertex_080263E8[] = { @@ -370,42 +354,34 @@ const Gfx koopa_shell_seg8_dl_08027258[] = { const Gfx koopa_shell_seg8_dl_080273C8[] = { gsDPPipeSync(), gsSPNumLights(NUMLIGHTS_1), - gsSPLight(&koopa_shell_seg8_lights_08026388.l, 1), - gsSPLight(&koopa_shell_seg8_lights_08026388.a, 2), + gsSPLightColor(LIGHT_1, 0x45cd1aff), + gsSPLightColor(LIGHT_2, 0x113306ff), gsSPDisplayList(koopa_shell_seg8_dl_08027108), - gsSPLight(&koopa_shell_seg8_lights_080263B8.l, 1), - gsSPLight(&koopa_shell_seg8_lights_080263B8.a, 2), + gsSPLightColor(LIGHT_1, 0x84c3e5ff), + gsSPLightColor(LIGHT_2, 0x213039ff), gsSPDisplayList(koopa_shell_seg8_dl_08027170), - gsSPLight(&koopa_shell_seg8_lights_080263D0.l, 1), - gsSPLight(&koopa_shell_seg8_lights_080263D0.a, 2), + gsSPLightColor(LIGHT_1, 0xfafff8ff), + gsSPLightColor(LIGHT_2, 0x3e3f3eff), gsSPBranchList(koopa_shell_seg8_dl_08027258), }; // 0x08027420 - 0x08027470 const Gfx koopa_shell_seg8_dl_08027420[] = { gsDPPipeSync(), - gsSPLight(&koopa_shell_seg8_lights_080263A0.l, 1), - gsSPLight(&koopa_shell_seg8_lights_080263A0.a, 2), + gsSPLightColor(LIGHT_1, 0xe4291dff), + gsSPLightColor(LIGHT_2, 0x390a07ff), gsSPDisplayList(koopa_shell_seg8_dl_08027108), - gsSPLight(&koopa_shell_seg8_lights_080263B8.l, 1), - gsSPLight(&koopa_shell_seg8_lights_080263B8.a, 2), + gsSPLightColor(LIGHT_1, 0x84c3e5ff), + gsSPLightColor(LIGHT_2, 0x213039ff), gsSPDisplayList(koopa_shell_seg8_dl_08027170), - gsSPLight(&koopa_shell_seg8_lights_080263D0.l, 1), - gsSPLight(&koopa_shell_seg8_lights_080263D0.a, 2), + gsSPLightColor(LIGHT_1, 0xfafff8ff), + gsSPLightColor(LIGHT_2, 0x3e3f3eff), gsSPBranchList(koopa_shell_seg8_dl_08027258), }; // 0x08027470 -static const Lights1 koopa_shell_seg8_lights_08027470 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08027488 -static const Lights1 koopa_shell_seg8_lights_08027488 = gdSPDefLights1( - 0x38, 0x2b, 0x00, - 0xe0, 0xae, 0x00, 0x28, 0x28, 0x28 -); // 0x080274A0 ALIGNED8 static const Texture koopa_shell_seg8_texture_080274A0[] = { @@ -514,8 +490,8 @@ const Gfx koopa_shell_seg8_dl_080288E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, koopa_shell_seg8_texture_08027CA0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&koopa_shell_seg8_lights_08027470.l, 1), - gsSPLight(&koopa_shell_seg8_lights_08027470.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(koopa_shell_seg8_vertex_080284A0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 0, 5, 4, 0x0), @@ -545,13 +521,13 @@ const Gfx koopa_shell_seg8_dl_08028978[] = { // 0x08028A20 - 0x08028B78 const Gfx koopa_shell_seg8_dl_08028A20[] = { - gsSPLight(&koopa_shell_seg8_lights_08027488.l, 1), - gsSPLight(&koopa_shell_seg8_lights_08027488.a, 2), + gsSPLightColor(LIGHT_1, 0xe0ae00ff), + gsSPLightColor(LIGHT_2, 0x382b00ff), gsSPVertex(koopa_shell_seg8_vertex_08028620, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP1Triangle( 2, 4, 3, 0x0), - gsSPLight(&koopa_shell_seg8_lights_08027470.l, 1), - gsSPLight(&koopa_shell_seg8_lights_08027470.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(koopa_shell_seg8_vertex_08028670, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 1, 3, 0x0, 2, 1, 5, 0x0), diff --git a/actors/lakitu_cameraman/model.inc.c b/actors/lakitu_cameraman/model.inc.c index a83d34f9..aef62a6e 100644 --- a/actors/lakitu_cameraman/model.inc.c +++ b/actors/lakitu_cameraman/model.inc.c @@ -31,16 +31,8 @@ ALIGNED8 static const Texture lakitu_seg6_texture_06003800[] = { }; // 0x06003A00 -static const Lights1 lakitu_seg6_lights_06003A00 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06003A18 -static const Lights1 lakitu_seg6_lights_06003A18 = gdSPDefLights1( - 0x79, 0x55, 0x00, - 0xf2, 0xab, 0x00, 0x28, 0x28, 0x28 -); // 0x06003A30 static const Vtx lakitu_seg6_vertex_06003A30[] = { @@ -96,8 +88,8 @@ const Gfx lakitu_seg6_dl_06003C80[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lakitu_seg6_texture_06002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lakitu_seg6_lights_06003A00.l, 1), - gsSPLight(&lakitu_seg6_lights_06003A00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(lakitu_seg6_vertex_06003A30, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 5, 0x0), @@ -120,8 +112,8 @@ const Gfx lakitu_seg6_dl_06003C80[] = { // 0x06003DB0 - 0x06003E30 const Gfx lakitu_seg6_dl_06003DB0[] = { - gsSPLight(&lakitu_seg6_lights_06003A18.l, 1), - gsSPLight(&lakitu_seg6_lights_06003A18.a, 2), + gsSPLightColor(LIGHT_1, 0xf2ab00ff), + gsSPLightColor(LIGHT_2, 0x795500ff), gsSPVertex(lakitu_seg6_vertex_06003BD0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 1, 5, 2, 0x0, 4, 0, 2, 0x0), @@ -150,10 +142,6 @@ const Gfx lakitu_seg6_dl_06003E30[] = { }; // 0x06003E98 -static const Lights1 lakitu_seg6_lights_06003E98 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06003EB0 static const Vtx lakitu_seg6_vertex_06003EB0[] = { @@ -270,8 +258,8 @@ const Gfx lakitu_seg6_dl_06004410[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lakitu_seg6_texture_06003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lakitu_seg6_lights_06003E98.l, 1), - gsSPLight(&lakitu_seg6_lights_06003E98.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(lakitu_seg6_vertex_06003EB0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 3, 5, 1, 0x0, 1, 6, 7, 0x0), @@ -333,10 +321,6 @@ const Gfx lakitu_seg6_dl_06004680[] = { }; // 0x060046E0 -static const Lights1 lakitu_seg6_lights_060046E0 = gdSPDefLights1( - 0x79, 0x55, 0x00, - 0xf2, 0xab, 0x00, 0x28, 0x28, 0x28 -); // 0x060046F8 static const Vtx lakitu_seg6_vertex_060046F8[] = { @@ -359,8 +343,8 @@ static const Vtx lakitu_seg6_vertex_060046F8[] = { // 0x060047E8 - 0x060048D8 const Gfx lakitu_seg6_dl_060047E8[] = { - gsSPLight(&lakitu_seg6_lights_060046E0.l, 1), - gsSPLight(&lakitu_seg6_lights_060046E0.a, 2), + gsSPLightColor(LIGHT_1, 0xf2ab00ff), + gsSPLightColor(LIGHT_2, 0x795500ff), gsSPVertex(lakitu_seg6_vertex_060046F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 5, 0x0), @@ -379,10 +363,6 @@ const Gfx lakitu_seg6_dl_060047E8[] = { }; // 0x060048D8 -static const Lights1 lakitu_seg6_lights_060048D8 = gdSPDefLights1( - 0x79, 0x55, 0x00, - 0xf2, 0xab, 0x00, 0x28, 0x28, 0x28 -); // 0x060048F0 static const Vtx lakitu_seg6_vertex_060048F0[] = { @@ -405,8 +385,8 @@ static const Vtx lakitu_seg6_vertex_060048F0[] = { // 0x060049E0 - 0x06004AD0 const Gfx lakitu_seg6_dl_060049E0[] = { - gsSPLight(&lakitu_seg6_lights_060048D8.l, 1), - gsSPLight(&lakitu_seg6_lights_060048D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf2ab00ff), + gsSPLightColor(LIGHT_2, 0x795500ff), gsSPVertex(lakitu_seg6_vertex_060048F0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 3, 7, 4, 0x0), @@ -425,10 +405,6 @@ const Gfx lakitu_seg6_dl_060049E0[] = { }; // 0x06004AD0 -static const Lights1 lakitu_seg6_lights_06004AD0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06004AE8 static const Vtx lakitu_seg6_vertex_06004AE8[] = { @@ -448,8 +424,8 @@ static const Vtx lakitu_seg6_vertex_06004AE8[] = { // 0x06004BA8 - 0x06004BE8 const Gfx lakitu_seg6_dl_06004BA8[] = { - gsSPLight(&lakitu_seg6_lights_06004AD0.l, 1), - gsSPLight(&lakitu_seg6_lights_06004AD0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(lakitu_seg6_vertex_06004AE8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -498,28 +474,12 @@ const Gfx lakitu_seg6_dl_06004C88[] = { }; // 0x06004CB0 -static const Lights1 lakitu_seg6_lights_06004CB0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06004CC8 -static const Lights1 lakitu_seg6_lights_06004CC8 = gdSPDefLights1( - 0x0c, 0x0c, 0x0c, - 0x19, 0x19, 0x19, 0x28, 0x28, 0x28 -); // 0x06004CE0 -static const Lights1 lakitu_seg6_lights_06004CE0 = gdSPDefLights1( - 0x19, 0x22, 0x20, - 0x32, 0x44, 0x40, 0x28, 0x28, 0x28 -); // 0x06004CF8 -static const Lights1 lakitu_seg6_lights_06004CF8 = gdSPDefLights1( - 0x18, 0x18, 0x18, - 0x30, 0x30, 0x30, 0x28, 0x28, 0x28 -); // 0x06004D10 static const Vtx lakitu_seg6_vertex_06004D10[] = { @@ -630,8 +590,8 @@ const Gfx lakitu_seg6_dl_060051D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lakitu_seg6_texture_06003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lakitu_seg6_lights_06004CB0.l, 1), - gsSPLight(&lakitu_seg6_lights_06004CB0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(lakitu_seg6_vertex_06004D10, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -639,8 +599,8 @@ const Gfx lakitu_seg6_dl_060051D0[] = { // 0x06005218 - 0x06005360 const Gfx lakitu_seg6_dl_06005218[] = { - gsSPLight(&lakitu_seg6_lights_06004CC8.l, 1), - gsSPLight(&lakitu_seg6_lights_06004CC8.a, 2), + gsSPLightColor(LIGHT_1, 0x191919ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(lakitu_seg6_vertex_06004D50, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -651,8 +611,8 @@ const Gfx lakitu_seg6_dl_06005218[] = { gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(lakitu_seg6_vertex_06004F30, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&lakitu_seg6_lights_06004CE0.l, 1), - gsSPLight(&lakitu_seg6_lights_06004CE0.a, 2), + gsSPLightColor(LIGHT_1, 0x324440ff), + gsSPLightColor(LIGHT_2, 0x192220ff), gsSPVertex(lakitu_seg6_vertex_06004F90, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 0, 7, 1, 0x0), @@ -661,8 +621,8 @@ const Gfx lakitu_seg6_dl_06005218[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0), - gsSPLight(&lakitu_seg6_lights_06004CF8.l, 1), - gsSPLight(&lakitu_seg6_lights_06004CF8.a, 2), + gsSPLightColor(LIGHT_1, 0x303030ff), + gsSPLightColor(LIGHT_2, 0x181818ff), gsSPVertex(lakitu_seg6_vertex_06005150, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 1, 6, 0x0), @@ -689,40 +649,16 @@ const Gfx lakitu_seg6_dl_06005360[] = { }; // Unreferenced light group -UNUSED static const Lights1 lakitu_cameraman_lights_unused1 = gdSPDefLights1( - 0x33, 0x1f, 0x0c, - 0xcc, 0x7f, 0x33, 0x28, 0x28, 0x28 -); // 0x060053F0 -static const Lights1 lakitu_seg6_lights_060053F0 = gdSPDefLights1( - 0x29, 0x13, 0x06, - 0xa5, 0x4f, 0x1b, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 lakitu_cameraman_lights_unused2 = gdSPDefLights1( - 0x06, 0x06, 0x06, - 0x19, 0x19, 0x19, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 lakitu_cameraman_lights_unused3 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x06005438 -static const Lights1 lakitu_seg6_lights_06005438 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 lakitu_cameraman_lights_unused4 = gdSPDefLights1( - 0x0d, 0x2c, 0x0b, - 0x34, 0xb2, 0x2c, 0x28, 0x28, 0x28 -); // 0x06005468 static const Vtx lakitu_seg6_vertex_06005468[] = { @@ -757,8 +693,8 @@ static const Vtx lakitu_seg6_vertex_06005568[] = { // 0x06005598 - 0x060055E8 const Gfx lakitu_seg6_dl_06005598[] = { - gsSPLight(&lakitu_seg6_lights_060053F0.l, 1), - gsSPLight(&lakitu_seg6_lights_060053F0.a, 2), + gsSPLightColor(LIGHT_1, 0xa54f1bff), + gsSPLightColor(LIGHT_2, 0x291306ff), gsSPVertex(lakitu_seg6_vertex_06005468, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 0, 2, 0x0, 7, 8, 9, 0x0), @@ -768,8 +704,8 @@ const Gfx lakitu_seg6_dl_06005598[] = { // 0x060055E8 - 0x06005610 const Gfx lakitu_seg6_dl_060055E8[] = { - gsSPLight(&lakitu_seg6_lights_06005438.l, 1), - gsSPLight(&lakitu_seg6_lights_06005438.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(lakitu_seg6_vertex_06005538, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), @@ -777,8 +713,8 @@ const Gfx lakitu_seg6_dl_060055E8[] = { // 0x06005610 - 0x06005638 const Gfx lakitu_seg6_dl_06005610[] = { - gsSPLight(&lakitu_seg6_lights_06005438.l, 1), - gsSPLight(&lakitu_seg6_lights_06005438.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(lakitu_seg6_vertex_06005568, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), diff --git a/actors/lakitu_enemy/model.inc.c b/actors/lakitu_enemy/model.inc.c index b8613994..5cbbc658 100644 --- a/actors/lakitu_enemy/model.inc.c +++ b/actors/lakitu_enemy/model.inc.c @@ -1,22 +1,10 @@ // Lakitu Enemy // Unreferenced light group -UNUSED static const Lights1 lakitu_enemy_lights_unused1 = gdSPDefLights1( - 0x33, 0x1f, 0x0c, - 0xcc, 0x7f, 0x33, 0x28, 0x28, 0x28 -); // 0x0500ECB0 -static const Lights1 lakitu_enemy_seg5_lights_0500ECB0 = gdSPDefLights1( - 0x29, 0x13, 0x06, - 0xa5, 0x4f, 0x1b, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 lakitu_enemy_lights_unused2 = gdSPDefLights1( - 0x0d, 0x2c, 0x0b, - 0x34, 0xb2, 0x2c, 0x28, 0x28, 0x28 -); // Unreferenced texture // 0x0500ECE0 @@ -45,16 +33,8 @@ ALIGNED8 static const Texture lakitu_enemy_seg5_texture_05011CE0[] = { }; // 0x050124E0 -static const Lights1 lakitu_enemy_seg5_lights_050124E0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050124F8 -static const Lights1 lakitu_enemy_seg5_lights_050124F8 = gdSPDefLights1( - 0x79, 0x55, 0x00, - 0xf2, 0xab, 0x00, 0x28, 0x28, 0x28 -); // 0x05012510 static const Vtx lakitu_enemy_seg5_vertex_05012510[] = { @@ -110,8 +90,8 @@ const Gfx lakitu_enemy_seg5_dl_05012760[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lakitu_enemy_seg5_texture_050114E0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lakitu_enemy_seg5_lights_050124E0.l, 1), - gsSPLight(&lakitu_enemy_seg5_lights_050124E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(lakitu_enemy_seg5_vertex_05012510, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 5, 0x0), @@ -134,8 +114,8 @@ const Gfx lakitu_enemy_seg5_dl_05012760[] = { // 0x05012890 - 0x05012910 const Gfx lakitu_enemy_seg5_dl_05012890[] = { - gsSPLight(&lakitu_enemy_seg5_lights_050124F8.l, 1), - gsSPLight(&lakitu_enemy_seg5_lights_050124F8.a, 2), + gsSPLightColor(LIGHT_1, 0xf2ab00ff), + gsSPLightColor(LIGHT_2, 0x795500ff), gsSPVertex(lakitu_enemy_seg5_vertex_050126B0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 1, 5, 2, 0x0, 4, 0, 2, 0x0), @@ -164,10 +144,6 @@ const Gfx lakitu_enemy_seg5_dl_05012910[] = { }; // 0x05012978 -static const Lights1 lakitu_enemy_seg5_lights_05012978 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05012990 static const Vtx lakitu_enemy_seg5_vertex_05012990[] = { @@ -284,8 +260,8 @@ const Gfx lakitu_enemy_seg5_dl_05012EF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lakitu_enemy_seg5_texture_05011CE0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lakitu_enemy_seg5_lights_05012978.l, 1), - gsSPLight(&lakitu_enemy_seg5_lights_05012978.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(lakitu_enemy_seg5_vertex_05012990, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 3, 5, 1, 0x0, 1, 6, 7, 0x0), @@ -347,10 +323,6 @@ const Gfx lakitu_enemy_seg5_dl_05013160[] = { }; // 0x050131C0 -static const Lights1 lakitu_enemy_seg5_lights_050131C0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050131D8 static const Vtx lakitu_enemy_seg5_vertex_050131D8[] = { @@ -370,8 +342,8 @@ static const Vtx lakitu_enemy_seg5_vertex_050131D8[] = { // 0x05013298 - 0x050132D8 const Gfx lakitu_enemy_seg5_dl_05013298[] = { - gsSPLight(&lakitu_enemy_seg5_lights_050131C0.l, 1), - gsSPLight(&lakitu_enemy_seg5_lights_050131C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(lakitu_enemy_seg5_vertex_050131D8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -420,10 +392,6 @@ const Gfx lakitu_enemy_seg5_dl_05013378[] = { }; // 0x050133A0 -static const Lights1 lakitu_enemy_seg5_lights_050133A0 = gdSPDefLights1( - 0x79, 0x55, 0x00, - 0xf2, 0xab, 0x00, 0x28, 0x28, 0x28 -); // 0x050133B8 static const Vtx lakitu_enemy_seg5_vertex_050133B8[] = { @@ -446,8 +414,8 @@ static const Vtx lakitu_enemy_seg5_vertex_050133B8[] = { // 0x050134A8 - 0x05013598 const Gfx lakitu_enemy_seg5_dl_050134A8[] = { - gsSPLight(&lakitu_enemy_seg5_lights_050133A0.l, 1), - gsSPLight(&lakitu_enemy_seg5_lights_050133A0.a, 2), + gsSPLightColor(LIGHT_1, 0xf2ab00ff), + gsSPLightColor(LIGHT_2, 0x795500ff), gsSPVertex(lakitu_enemy_seg5_vertex_050133B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 3, 7, 4, 0x0), @@ -466,10 +434,6 @@ const Gfx lakitu_enemy_seg5_dl_050134A8[] = { }; // 0x05013598 -static const Lights1 lakitu_enemy_seg5_lights_05013598 = gdSPDefLights1( - 0x79, 0x55, 0x00, - 0xf2, 0xab, 0x00, 0x28, 0x28, 0x28 -); // 0x050135B0 static const Vtx lakitu_enemy_seg5_vertex_050135B0[] = { @@ -492,8 +456,8 @@ static const Vtx lakitu_enemy_seg5_vertex_050135B0[] = { // 0x050136A0 - 0x05013790 const Gfx lakitu_enemy_seg5_dl_050136A0[] = { - gsSPLight(&lakitu_enemy_seg5_lights_05013598.l, 1), - gsSPLight(&lakitu_enemy_seg5_lights_05013598.a, 2), + gsSPLightColor(LIGHT_1, 0xf2ab00ff), + gsSPLightColor(LIGHT_2, 0x795500ff), gsSPVertex(lakitu_enemy_seg5_vertex_050135B0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 5, 0x0), @@ -530,8 +494,8 @@ static const Vtx lakitu_enemy_seg5_vertex_05013790[] = { // 0x05013860 - 0x050138B0 const Gfx lakitu_enemy_seg5_dl_05013860[] = { - gsSPLight(&lakitu_enemy_seg5_lights_0500ECB0.l, 1), - gsSPLight(&lakitu_enemy_seg5_lights_0500ECB0.a, 2), + gsSPLightColor(LIGHT_1, 0xa54f1bff), + gsSPLightColor(LIGHT_2, 0x291306ff), gsSPVertex(lakitu_enemy_seg5_vertex_05013790, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 0, 2, 0x0, 7, 8, 9, 0x0), diff --git a/actors/mad_piano/model.inc.c b/actors/mad_piano/model.inc.c index da3c9fd4..d5232367 100644 --- a/actors/mad_piano/model.inc.c +++ b/actors/mad_piano/model.inc.c @@ -1,28 +1,12 @@ // Mad Piano // Unreferenced light group -UNUSED static const Lights1 mad_piano_lights_unused1 = gdSPDefLights1( - 0x05, 0x04, 0x08, - 0x14, 0x13, 0x20, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 mad_piano_lights_unused2 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 mad_piano_lights_unused3 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 mad_piano_lights_unused4 = gdSPDefLights1( - 0x30, 0x00, 0x00, - 0xc3, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05006AF0 ALIGNED8 static const Texture mad_piano_seg5_texture_05006AF0[] = { @@ -55,10 +39,6 @@ ALIGNED8 static const Texture mad_piano_seg5_texture_050082F0[] = { }; // 0x050086F0 -static const Lights1 mad_piano_seg5_lights_050086F0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05008708 static const Vtx mad_piano_seg5_vertex_05008708[] = { @@ -155,8 +135,8 @@ const Gfx mad_piano_seg5_dl_05008B68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mad_piano_seg5_texture_050072F0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mad_piano_seg5_lights_050086F0.l, 1), - gsSPLight(&mad_piano_seg5_lights_050086F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(mad_piano_seg5_vertex_05008708, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 2, 6, 0x0, 0, 7, 8, 0x0), @@ -211,28 +191,12 @@ const Gfx mad_piano_seg5_dl_05008CB0[] = { }; // 0x05008D40 -static const Lights1 mad_piano_seg5_lights_05008D40 = gdSPDefLights1( - 0x3d, 0x3d, 0x3d, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x05008D58 -static const Lights1 mad_piano_seg5_lights_05008D58 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05008D70 -static const Lights1 mad_piano_seg5_lights_05008D70 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x7f, 0x7f, 0x7f, 0x28, 0x28, 0x28 -); // 0x05008D88 -static const Lights1 mad_piano_seg5_lights_05008D88 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05008DA0 static const Vtx mad_piano_seg5_vertex_05008DA0[] = { @@ -410,16 +374,16 @@ const Gfx mad_piano_seg5_dl_05009590[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mad_piano_seg5_texture_050072F0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mad_piano_seg5_lights_05008D40.l, 1), - gsSPLight(&mad_piano_seg5_lights_05008D40.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x3d3d3dff), gsSPVertex(mad_piano_seg5_vertex_05008DA0, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 7, 9, 0x0), gsSP2Triangles(11, 9, 1, 0x0, 0, 12, 11, 0x0), gsSP1Triangle( 0, 11, 1, 0x0), - gsSPLight(&mad_piano_seg5_lights_05008D58.l, 1), - gsSPLight(&mad_piano_seg5_lights_05008D58.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(mad_piano_seg5_vertex_05008E70, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -464,8 +428,8 @@ const Gfx mad_piano_seg5_dl_050097B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mad_piano_seg5_texture_050082F0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mad_piano_seg5_lights_05008D70.l, 1), - gsSPLight(&mad_piano_seg5_lights_05008D70.a, 2), + gsSPLightColor(LIGHT_1, 0x7f7f7fff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(mad_piano_seg5_vertex_050093F0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -476,8 +440,8 @@ const Gfx mad_piano_seg5_dl_050097F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mad_piano_seg5_texture_05007EF0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mad_piano_seg5_lights_05008D40.l, 1), - gsSPLight(&mad_piano_seg5_lights_05008D40.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x3d3d3dff), gsSPVertex(mad_piano_seg5_vertex_05009430, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -496,8 +460,8 @@ const Gfx mad_piano_seg5_dl_05009840[] = { // 0x05009888 - 0x050098E8 const Gfx mad_piano_seg5_dl_05009888[] = { - gsSPLight(&mad_piano_seg5_lights_05008D88.l, 1), - gsSPLight(&mad_piano_seg5_lights_05008D88.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(mad_piano_seg5_vertex_050094F0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 2, 5, 4, 0x0), diff --git a/actors/manta/model.inc.c b/actors/manta/model.inc.c index f0efc467..6bf50c49 100644 --- a/actors/manta/model.inc.c +++ b/actors/manta/model.inc.c @@ -1,22 +1,10 @@ // Manta Ray // 0x05001758 -static const Lights1 manta_seg5_lights_05001758 = gdSPDefLights1( - 0x31, 0x3b, 0x3b, - 0xc6, 0xee, 0xed, 0x28, 0x28, 0x28 -); // 0x05001770 -static const Lights1 manta_seg5_lights_05001770 = gdSPDefLights1( - 0x00, 0x16, 0x18, - 0x03, 0x5b, 0x63, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 manta_lights_unused = gdSPDefLights1( - 0x3f, 0x3f, 0x35, - 0xff, 0xff, 0xd7, 0x28, 0x28, 0x28 -); // 0x050017A0 ALIGNED8 static const Texture manta_seg5_texture_050017A0[] = { @@ -1037,13 +1025,13 @@ static const Vtx manta_seg5_vertex_05006A88[] = { // 0x05006B08 - 0x05006B70 const Gfx manta_seg5_dl_05006B08[] = { - gsSPLight(&manta_seg5_lights_05001770.l, 1), - gsSPLight(&manta_seg5_lights_05001770.a, 2), + gsSPLightColor(LIGHT_1, 0x35b63ff), + gsSPLightColor(LIGHT_2, 0x1618ff), gsSPVertex(manta_seg5_vertex_05006808, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 1, 0, 5, 0x0), - gsSPLight(&manta_seg5_lights_05001758.l, 1), - gsSPLight(&manta_seg5_lights_05001758.a, 2), + gsSPLightColor(LIGHT_1, 0xc6eeedff), + gsSPLightColor(LIGHT_2, 0x313b3bff), gsSPVertex(manta_seg5_vertex_05006868, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -1051,15 +1039,15 @@ const Gfx manta_seg5_dl_05006B08[] = { // 0x05006B70 - 0x05006C08 const Gfx manta_seg5_dl_05006B70[] = { - gsSPLight(&manta_seg5_lights_05001770.l, 1), - gsSPLight(&manta_seg5_lights_05001770.a, 2), + gsSPLightColor(LIGHT_1, 0x35b63ff), + gsSPLightColor(LIGHT_2, 0x1618ff), gsSPVertex(manta_seg5_vertex_050068C8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 1, 7, 2, 0x0), gsSP2Triangles( 5, 1, 0, 0x0, 5, 0, 3, 0x0), gsSP2Triangles( 6, 7, 1, 0x0, 6, 1, 5, 0x0), - gsSPLight(&manta_seg5_lights_05001758.l, 1), - gsSPLight(&manta_seg5_lights_05001758.a, 2), + gsSPLightColor(LIGHT_1, 0xc6eeedff), + gsSPLightColor(LIGHT_2, 0x313b3bff), gsSPVertex(manta_seg5_vertex_05006948, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 7, 3, 0x0), @@ -1068,15 +1056,15 @@ const Gfx manta_seg5_dl_05006B70[] = { // 0x05006C08 - 0x05006CA0 const Gfx manta_seg5_dl_05006C08[] = { - gsSPLight(&manta_seg5_lights_05001770.l, 1), - gsSPLight(&manta_seg5_lights_05001770.a, 2), + gsSPLightColor(LIGHT_1, 0x35b63ff), + gsSPLightColor(LIGHT_2, 0x1618ff), gsSPVertex(manta_seg5_vertex_050069C8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 1, 7, 2, 0x0), gsSP2Triangles( 5, 8, 9, 0x0, 5, 9, 3, 0x0), gsSP2Triangles( 6, 10, 11, 0x0, 6, 11, 5, 0x0), - gsSPLight(&manta_seg5_lights_05001758.l, 1), - gsSPLight(&manta_seg5_lights_05001758.a, 2), + gsSPLightColor(LIGHT_1, 0xc6eeedff), + gsSPLightColor(LIGHT_2, 0x313b3bff), gsSPVertex(manta_seg5_vertex_05006A88, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 7, 3, 0x0), diff --git a/actors/mario/model.inc.c b/actors/mario/model.inc.c index a25a3b7f..28da06dd 100644 --- a/actors/mario/model.inc.c +++ b/actors/mario/model.inc.c @@ -1,40 +1,16 @@ // Mario // 0x04000000 # solid color blue - butt, left thigh, right thigh - all poly types -const Lights1 mario_blue_lights_group = gdSPDefLights1( - 0x00, 0x00, 0x7f, - 0x00, 0x00, 0xff, 0x28, 0x28, 0x28 -); // 0x04000018 # solid color red - left & right arm, torso (tshirt part), caps - all poly types -const Lights1 mario_red_lights_group = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x04000030 # solid color white - metal butt & left thigh - normal left & right hand closed & open (with cap too) and all wings - all poly types -const Lights1 mario_white_lights_group = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x04000048 # solid color brown 1 - foot - all poly types -const Lights1 mario_brown1_lights_group = gdSPDefLights1( - 0x39, 0x0e, 0x07, - 0x72, 0x1c, 0x0e, 0x28, 0x28, 0x28 -); // 0x04000060 # solid color beige skin - face (cap on and off dls) - all poly types -const Lights1 mario_beige_lights_group = gdSPDefLights1( - 0x7f, 0x60, 0x3c, - 0xfe, 0xc1, 0x79, 0x28, 0x28, 0x28 -); // 0x04000078 # solid color brown 2 - hair - all poly types -const Lights1 mario_brown2_lights_group = gdSPDefLights1( - 0x39, 0x03, 0x00, - 0x73, 0x06, 0x00, 0x28, 0x28, 0x28 -); // 0x04000090 ALIGNED8 static const Texture mario_texture_metal[] = { @@ -381,8 +357,8 @@ const Gfx mario_butt_dl[] = { const Gfx mario_butt[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_butt_dl), gsSPEndDisplayList(), }; @@ -394,8 +370,8 @@ const Gfx mario_metal_butt[] = { gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE), gsDPLoadTextureBlock(mario_texture_metal, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_butt_dl), gsSPEndDisplayList(), }; @@ -499,8 +475,8 @@ const Gfx mario_left_arm_shared_dl[] = { // 0x0400D1D8 - 0x0400D1F8 const Gfx mario_left_arm[] = { - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_left_arm_shared_dl), gsSPEndDisplayList(), }; @@ -651,8 +627,8 @@ const Gfx mario_left_hand_closed_shared_dl[] = { // 0x0400D8F0 - 0x0400D910 const Gfx mario_left_hand_closed[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_left_hand_closed_shared_dl), gsSPEndDisplayList(), }; @@ -760,8 +736,8 @@ const Gfx mario_right_arm_shared_dl[] = { // 0x0400DDE8 - 0x0400DE08 const Gfx mario_right_arm[] = { - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_right_arm_shared_dl), gsSPEndDisplayList(), }; @@ -897,8 +873,8 @@ const Gfx mario_right_hand_closed_dl[] = { // 0x0400E458 - 0x0400E478 const Gfx mario_right_hand_closed[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_right_hand_closed_dl), gsSPEndDisplayList(), }; @@ -979,8 +955,8 @@ const Gfx mario_left_thigh_dl[] = { const Gfx mario_left_thigh[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_left_thigh_dl), gsSPEndDisplayList(), }; @@ -992,8 +968,8 @@ const Gfx mario_metal_left_thigh[] = { gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE), gsDPLoadTextureBlock(mario_texture_metal, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_left_thigh_dl), gsSPEndDisplayList(), }; @@ -1091,8 +1067,8 @@ const Gfx mario_left_foot_shared_dl[] = { // 0x0400ECA0 - 0x0400ECC0 const Gfx mario_left_foot[] = { - gsSPLight(&mario_brown1_lights_group.l, 1), - gsSPLight(&mario_brown1_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x721c0eff), + gsSPLightColor(LIGHT_2, 0x390e07ff), gsSPDisplayList(mario_left_foot_shared_dl), gsSPEndDisplayList(), }; @@ -1160,8 +1136,8 @@ const Gfx mario_right_thigh_shared_dl[] = { // 0x0400EFB8 - 0x0400EFD8 const Gfx mario_right_thigh[] = { - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_right_thigh_shared_dl), gsSPEndDisplayList(), }; @@ -1276,8 +1252,8 @@ const Gfx mario_right_foot_dl[] = { // 0x0400F4E8 - 0x0400F528 const Gfx mario_right_foot[] = { - gsSPLight(&mario_brown1_lights_group.l, 1), - gsSPLight(&mario_brown1_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x721c0eff), + gsSPLightColor(LIGHT_2, 0x390e07ff), gsSPDisplayList(mario_right_foot_dl), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), @@ -1589,8 +1565,8 @@ const Gfx mario_tshirt_shared_dl[] = { // 0x04010348 - 0x04010370 const Gfx mario_torso_dl[] = { gsSPDisplayList(mario_pants_overalls_shared_dl), - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_tshirt_shared_dl), gsSPEndDisplayList(), }; @@ -2080,11 +2056,11 @@ const Gfx mario_face_back_hair_cap_on_dl[] = { // 0x04011960 - 0x040119A0 const Gfx mario_face_cap_on_dl[] = { gsSPDisplayList(mario_face_part_cap_on_dl), - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_face_cap_dl), - gsSPLight(&mario_brown2_lights_group.l, 1), - gsSPLight(&mario_brown2_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x730600ff), + gsSPLightColor(LIGHT_2, 0x390300ff), gsSPDisplayList(mario_face_back_hair_cap_on_dl), gsSPEndDisplayList(), }; @@ -2105,8 +2081,8 @@ const Gfx mario_cap_on_eyes_front[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_front), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2139,8 +2115,8 @@ const Gfx mario_cap_on_eyes_half_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_half_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2173,8 +2149,8 @@ const Gfx mario_cap_on_eyes_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2207,8 +2183,8 @@ const Gfx mario_cap_on_eyes_right[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_right), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2241,8 +2217,8 @@ const Gfx mario_cap_on_eyes_left[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2275,8 +2251,8 @@ const Gfx mario_cap_on_eyes_up[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_up), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2309,8 +2285,8 @@ const Gfx mario_cap_on_eyes_down[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_down), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2343,8 +2319,8 @@ const Gfx mario_cap_on_eyes_dead[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_dead), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_hair_sideburn), gsDPLoadSync(), @@ -2374,16 +2350,8 @@ const Gfx mario_metal_cap_on_shared_dl[] = { }; // Unreferenced light group -UNUSED static const Lights1 mario_lights_unused1 = gdSPDefLights1( - 0x3f, 0x30, 0x1e, - 0xfe, 0xc1, 0x79, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 mario_lights_unused2 = gdSPDefLights1( - 0x1c, 0x01, 0x00, - 0x73, 0x06, 0x00, 0x28, 0x28, 0x28 -); // 0x04012190 static const Vtx mario_eyes_cap_off_dl_vertex[] = { @@ -2892,8 +2860,8 @@ const Gfx mario_face_hair_cap_off_dl[] = { // 0x040139C0 - 0x040139E8 const Gfx mario_face_cap_off_dl[] = { gsSPDisplayList(mario_face_part_cap_off_dl), - gsSPLight(&mario_brown2_lights_group.l, 1), - gsSPLight(&mario_brown2_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x730600ff), + gsSPLightColor(LIGHT_2, 0x390300ff), gsSPDisplayList(mario_face_hair_cap_off_dl), gsSPEndDisplayList(), }; @@ -2910,8 +2878,8 @@ const Gfx mario_cap_off_eyes_front[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_front), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -2940,8 +2908,8 @@ const Gfx mario_cap_off_eyes_half_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_half_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -2970,8 +2938,8 @@ const Gfx mario_cap_off_eyes_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -3000,8 +2968,8 @@ const Gfx mario_cap_off_eyes_right[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_right), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -3030,8 +2998,8 @@ const Gfx mario_cap_off_eyes_left[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -3060,8 +3028,8 @@ const Gfx mario_cap_off_eyes_up[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_up), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -3090,8 +3058,8 @@ const Gfx mario_cap_off_eyes_down[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_down), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -3120,8 +3088,8 @@ const Gfx mario_cap_off_eyes_dead[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_dead), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -3270,8 +3238,8 @@ const Gfx mario_medium_poly_butt_dl[] = { const Gfx mario_medium_poly_butt[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_medium_poly_butt_dl), gsSPEndDisplayList(), }; @@ -3283,8 +3251,8 @@ const Gfx mario_metal_medium_poly_butt[] = { gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE), gsDPLoadTextureBlock(mario_texture_metal, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_medium_poly_butt_dl), gsSPEndDisplayList(), }; @@ -3322,8 +3290,8 @@ const Gfx mario_medium_poly_left_arm_shared_dl[] = { // 0x04014840 - 0x04014860 const Gfx mario_medium_poly_left_arm[] = { - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_medium_poly_left_arm_shared_dl), gsSPEndDisplayList(), }; @@ -3444,8 +3412,8 @@ const Gfx mario_medium_poly_left_hand_closed_shared_dl[] = { // 0x04014DC0 - 0x04014DE0 const Gfx mario_medium_poly_left_hand_closed[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_medium_poly_left_hand_closed_shared_dl), gsSPEndDisplayList(), }; @@ -3483,8 +3451,8 @@ const Gfx mario_medium_poly_right_arm_shared_dl[] = { // 0x04014F40 - 0x04014F60 const Gfx mario_medium_poly_right_arm[] = { - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_medium_poly_right_arm_shared_dl), gsSPEndDisplayList(), }; @@ -3606,8 +3574,8 @@ const Gfx mario_medium_poly_right_hand_closed_dl[] = { // 0x040154E0 - 0x04015500 const Gfx mario_medium_poly_right_hand_closed[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_medium_poly_right_hand_closed_dl), gsSPEndDisplayList(), }; @@ -3659,8 +3627,8 @@ const Gfx mario_medium_poly_left_thigh_dl[] = { const Gfx mario_medium_poly_left_thigh[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_medium_poly_left_thigh_dl), gsSPEndDisplayList(), }; @@ -3672,8 +3640,8 @@ const Gfx mario_metal_medium_poly_left_thigh[] = { gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE), gsDPLoadTextureBlock(mario_texture_metal, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_medium_poly_left_thigh_dl), gsSPEndDisplayList(), }; @@ -3767,8 +3735,8 @@ const Gfx mario_medium_poly_left_foot_shared_dl[] = { // 0x04015B60 - 0x04015B80 const Gfx mario_medium_poly_left_foot[] = { - gsSPLight(&mario_brown1_lights_group.l, 1), - gsSPLight(&mario_brown1_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x721c0eff), + gsSPLightColor(LIGHT_2, 0x390e07ff), gsSPDisplayList(mario_medium_poly_left_foot_shared_dl), gsSPEndDisplayList(), }; @@ -3808,8 +3776,8 @@ const Gfx mario_medium_poly_right_thigh_shared_dl[] = { // 0x04015D00 - 0x04015D20 const Gfx mario_medium_poly_right_thigh[] = { - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_medium_poly_right_thigh_shared_dl), gsSPEndDisplayList(), }; @@ -3897,8 +3865,8 @@ const Gfx mario_medium_poly_right_foot_dl[] = { // 0x040160C8 - 0x04016108 const Gfx mario_medium_poly_right_foot[] = { - gsSPLight(&mario_brown1_lights_group.l, 1), - gsSPLight(&mario_brown1_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x721c0eff), + gsSPLightColor(LIGHT_2, 0x390e07ff), gsSPDisplayList(mario_medium_poly_right_foot_dl), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), @@ -4081,8 +4049,8 @@ const Gfx mario_medium_poly_tshirt_shared_dl[] = { // 0x040168A0 - 0x040168C8 const Gfx mario_medium_poly_torso_dl[] = { gsSPDisplayList(mario_medium_poly_pants_overalls_shared_dl), - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_medium_poly_tshirt_shared_dl), gsSPEndDisplayList(), }; @@ -4149,8 +4117,8 @@ const Gfx mario_low_poly_butt_dl[] = { const Gfx mario_low_poly_butt[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_low_poly_butt_dl), gsSPEndDisplayList(), }; @@ -4162,8 +4130,8 @@ const Gfx mario_metal_low_poly_butt[] = { gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE), gsDPLoadTextureBlock(mario_texture_metal, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_low_poly_butt_dl), gsSPEndDisplayList(), }; @@ -4196,8 +4164,8 @@ const Gfx mario_low_poly_left_arm_shared_dl[] = { // 0x04016C70 - 0x04016C90 const Gfx mario_low_poly_left_arm[] = { - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_low_poly_left_arm_shared_dl), gsSPEndDisplayList(), }; @@ -4253,8 +4221,8 @@ const Gfx mario_low_poly_left_hand_closed_shared_dl[] = { // 0x04016E80 - 0x04016EA0 const Gfx mario_low_poly_left_hand_closed[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_low_poly_left_hand_closed_shared_dl), gsSPEndDisplayList(), }; @@ -4287,8 +4255,8 @@ const Gfx mario_low_poly_right_arm_shared_dl[] = { // 0x04016FB0 - 0x04016FD0 const Gfx mario_low_poly_right_arm[] = { - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_low_poly_right_arm_shared_dl), gsSPEndDisplayList(), }; @@ -4344,8 +4312,8 @@ const Gfx mario_low_poly_right_hand_closed_dl[] = { // 0x040171C0 - 0x040171E0 const Gfx mario_low_poly_right_hand_closed[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_low_poly_right_hand_closed_dl), gsSPEndDisplayList(), }; @@ -4394,8 +4362,8 @@ const Gfx mario_low_poly_left_thigh_dl[] = { const Gfx mario_low_poly_left_thigh[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_low_poly_left_thigh_dl), gsSPEndDisplayList(), }; @@ -4407,8 +4375,8 @@ const Gfx mario_metal_low_poly_left_thigh[] = { gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE), gsDPLoadTextureBlock(mario_texture_metal, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_low_poly_left_thigh_dl), gsSPEndDisplayList(), }; @@ -4475,8 +4443,8 @@ const Gfx mario_low_poly_left_foot_shared_dl[] = { // 0x040176A8 - 0x040176C8 const Gfx mario_low_poly_left_foot[] = { - gsSPLight(&mario_brown1_lights_group.l, 1), - gsSPLight(&mario_brown1_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x721c0eff), + gsSPLightColor(LIGHT_2, 0x390e07ff), gsSPDisplayList(mario_low_poly_left_foot_shared_dl), gsSPEndDisplayList(), }; @@ -4513,8 +4481,8 @@ const Gfx mario_low_poly_right_thigh_shared_dl[] = { // 0x04017818 - 0x04017838 const Gfx mario_low_poly_right_thigh[] = { - gsSPLight(&mario_blue_lights_group.l, 1), - gsSPLight(&mario_blue_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPDisplayList(mario_low_poly_right_thigh_shared_dl), gsSPEndDisplayList(), }; @@ -4581,8 +4549,8 @@ const Gfx mario_low_poly_right_foot_dl[] = { // 0x04017AD8 - 0x04017B18 const Gfx mario_low_poly_right_foot[] = { - gsSPLight(&mario_brown1_lights_group.l, 1), - gsSPLight(&mario_brown1_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x721c0eff), + gsSPLightColor(LIGHT_2, 0x390e07ff), gsSPDisplayList(mario_low_poly_right_foot_dl), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), @@ -4684,8 +4652,8 @@ const Gfx mario_low_poly_tshirt_shared_dl[] = { // 0x04017E78 - 0x04017EA0 const Gfx mario_low_poly_torso_dl[] = { gsSPDisplayList(mario_low_poly_pants_overalls_shared_dl), - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_low_poly_tshirt_shared_dl), gsSPEndDisplayList(), }; @@ -4854,11 +4822,11 @@ const Gfx mario_low_poly_face_back_hair_cap_on_dl[] = { // 0x04018420 - 0x04018460 const Gfx mario_low_poly_face_cap_on_dl[] = { gsSPDisplayList(mario_low_poly_face_part_cap_on_dl), - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_low_poly_face_cap_dl), - gsSPLight(&mario_brown2_lights_group.l, 1), - gsSPLight(&mario_brown2_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x730600ff), + gsSPLightColor(LIGHT_2, 0x390300ff), gsSPDisplayList(mario_low_poly_face_back_hair_cap_on_dl), gsSPEndDisplayList(), }; @@ -4879,8 +4847,8 @@ const Gfx mario_low_poly_cap_on_eyes_front[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_front), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -4909,8 +4877,8 @@ const Gfx mario_low_poly_cap_on_eyes_half_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_half_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -4939,8 +4907,8 @@ const Gfx mario_low_poly_cap_on_eyes_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -4969,8 +4937,8 @@ const Gfx mario_low_poly_cap_on_eyes_right[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_right), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -4999,8 +4967,8 @@ const Gfx mario_low_poly_cap_on_eyes_left[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5029,8 +4997,8 @@ const Gfx mario_low_poly_cap_on_eyes_up[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_up), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5059,8 +5027,8 @@ const Gfx mario_low_poly_cap_on_eyes_down[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_down), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5089,8 +5057,8 @@ const Gfx mario_low_poly_cap_on_eyes_dead[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_dead), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_eyes_cap_on_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5223,8 +5191,8 @@ const Gfx mario_low_poly_face_hair_cap_off_dl[] = { // 0x04018F68 - 0x04018F90 const Gfx mario_low_poly_face_cap_off_dl[] = { gsSPDisplayList(mario_low_poly_face_part_cap_off_dl), - gsSPLight(&mario_brown2_lights_group.l, 1), - gsSPLight(&mario_brown2_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x730600ff), + gsSPLightColor(LIGHT_2, 0x390300ff), gsSPDisplayList(mario_low_poly_face_hair_cap_off_dl), gsSPEndDisplayList(), }; @@ -5241,8 +5209,8 @@ const Gfx mario_low_poly_cap_off_eyes_front[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_front), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5267,8 +5235,8 @@ const Gfx mario_low_poly_cap_off_eyes_half_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_half_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5293,8 +5261,8 @@ const Gfx mario_low_poly_cap_off_eyes_closed[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_closed), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5319,8 +5287,8 @@ const Gfx mario_low_poly_cap_off_eyes_right[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_right), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5345,8 +5313,8 @@ const Gfx mario_low_poly_cap_off_eyes_left[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5371,8 +5339,8 @@ const Gfx mario_low_poly_cap_off_eyes_up[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_up), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5397,8 +5365,8 @@ const Gfx mario_low_poly_cap_off_eyes_down[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_down), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5423,8 +5391,8 @@ const Gfx mario_low_poly_cap_off_eyes_dead[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_eyes_dead), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_beige_lights_group.l, 1), - gsSPLight(&mario_beige_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xfec179ff), + gsSPLightColor(LIGHT_2, 0x7f603cff), gsSPDisplayList(mario_low_poly_mario_eyes_cap_off_dl), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_mustache), gsDPLoadSync(), @@ -5599,8 +5567,8 @@ const Gfx mario_left_hand_open_shared_dl[] = { // 0x04019CA0 - 0x04019CC0 const Gfx mario_left_hand_open[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_left_hand_open_shared_dl), gsSPEndDisplayList(), }; @@ -5758,8 +5726,8 @@ const Gfx mario_right_hand_open_dl[] = { // 0x0401A428 - 0x0401A448 const Gfx mario_right_hand_open[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_right_hand_open_dl), gsSPEndDisplayList(), }; @@ -6008,11 +5976,11 @@ const Gfx mario_right_hand_cap_bottom_dl[] = { // 0x0401AF20 - 0x0401AF60 const Gfx mario_right_hand_cap_dl[] = { gsSPDisplayList(mario_right_hand_cap_top_dl), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_right_hand_cap_hand_position_dl), - gsSPLight(&mario_brown2_lights_group.l, 1), - gsSPLight(&mario_brown2_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x730600ff), + gsSPLightColor(LIGHT_2, 0x390300ff), gsSPDisplayList(mario_right_hand_cap_bottom_dl), gsSPEndDisplayList(), }; @@ -6066,8 +6034,8 @@ const Gfx mario_right_hand_cap_wings_initial_dl[] = { gsSPClearGeometryMode(G_CULL_BACK | 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), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC), @@ -6401,8 +6369,8 @@ const Gfx mario_right_hand_peace_shared_dl[] = { // 0x0401BF30 - 0x0401BF50 const Gfx mario_right_hand_peace[] = { - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_right_hand_peace_shared_dl), gsSPEndDisplayList(), }; @@ -6539,8 +6507,8 @@ const Gfx mario_cap_unused_base_bottom_dl[] = { // 0x0401C510 - 0x0401C538 const Gfx mario_cap_unused_base_dl[] = { gsSPDisplayList(mario_cap_unused_base_top_dl), - gsSPLight(&mario_brown2_lights_group.l, 1), - gsSPLight(&mario_brown2_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0x730600ff), + gsSPLightColor(LIGHT_2, 0x390300ff), gsSPDisplayList(mario_cap_unused_base_bottom_dl), gsSPEndDisplayList(), }; @@ -6599,8 +6567,8 @@ const Gfx mario_cap_wings_unused_initial_dl[] = { gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPEndDisplayList(), }; @@ -6625,8 +6593,8 @@ const Gfx mario_cap_unused_dl[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_m_logo), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_red_lights_group.l, 1), - gsSPLight(&mario_red_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_cap_unused_m_logo_dl), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), @@ -6642,8 +6610,8 @@ const Gfx mario_metal_cap_unused_dl[] = { gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), gsDPLoadTextureBlock(mario_texture_metal, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_cap_unused_m_logo_dl), gsSPDisplayList(mario_cap_unused_base_top_dl), gsSPDisplayList(mario_cap_unused_base_bottom_dl), @@ -6724,8 +6692,8 @@ const Gfx mario_cap_wings[] = { gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_wings_half_1), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), @@ -6751,8 +6719,8 @@ const Gfx mario_cap_wings_transparent[] = { gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_wings_half_1), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), @@ -6778,8 +6746,8 @@ const Gfx mario_metal_cap_wings[] = { gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD), gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC), - gsSPLight(&mario_white_lights_group.l, 1), - gsSPLight(&mario_white_lights_group.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_texture_metal_wings_half_1), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), diff --git a/actors/mario_cap/model.inc.c b/actors/mario_cap/model.inc.c index f4d05126..b6e9b2f9 100644 --- a/actors/mario_cap/model.inc.c +++ b/actors/mario_cap/model.inc.c @@ -1,22 +1,10 @@ // Mario Cap (Normal Cap, Metal, Winged, etc) // 0x0301CF08 -static const Lights1 mario_cap_seg3_lights_0301CF08 = gdSPDefLights1( - 0x39, 0x03, 0x00, - 0x73, 0x06, 0x00, 0x28, 0x28, 0x28 -); // 0x0301CF20 -static const Lights1 mario_cap_seg3_lights_0301CF20 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0301CF38 -static const Lights1 mario_cap_seg3_lights_0301CF38 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0301CF50 ALIGNED8 static const Texture mario_cap_seg3_texture_0301CF50[] = { @@ -180,8 +168,8 @@ const Gfx mario_cap_seg3_dl_03022CC8[] = { // 0x03022D10 - 0x03022D38 const Gfx mario_cap_seg3_dl_03022D10[] = { gsSPDisplayList(mario_cap_seg3_dl_03022B68), - gsSPLight(&mario_cap_seg3_lights_0301CF08.l, 1), - gsSPLight(&mario_cap_seg3_lights_0301CF08.a, 2), + gsSPLightColor(LIGHT_1, 0x730600ff), + gsSPLightColor(LIGHT_2, 0x390300ff), gsSPDisplayList(mario_cap_seg3_dl_03022CC8), gsSPEndDisplayList(), }; @@ -264,8 +252,8 @@ const Gfx mario_cap_seg3_dl_03022F48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_cap_seg3_texture_0301DF50), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_cap_seg3_lights_0301CF38.l, 1), - gsSPLight(&mario_cap_seg3_lights_0301CF38.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_cap_seg3_dl_03022B30), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), @@ -285,8 +273,8 @@ const Gfx mario_cap_seg3_dl_03022FF8[] = { gsDPSetCombineMode(G_CC_MODULATERGBFADE, G_CC_MODULATERGBFADE), gsDPLoadTextureBlock(mario_cap_seg3_texture_0301CF50, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_cap_seg3_lights_0301CF20.l, 1), - gsSPLight(&mario_cap_seg3_lights_0301CF20.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_cap_seg3_dl_03022B30), gsSPDisplayList(mario_cap_seg3_dl_03022B68), gsSPDisplayList(mario_cap_seg3_dl_03022CC8), @@ -341,8 +329,8 @@ const Gfx mario_cap_seg3_dl_03023160[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mario_cap_seg3_texture_0301DF50), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mario_cap_seg3_lights_0301CF38.l, 1), - gsSPLight(&mario_cap_seg3_lights_0301CF38.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPDisplayList(mario_cap_seg3_dl_03022B30), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), gsDPPipeSync(), @@ -385,8 +373,8 @@ const Gfx mario_cap_seg3_dl_03023298[] = { gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD), gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), gsSPTexture(0x0F80, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&mario_cap_seg3_lights_0301CF20.l, 1), - gsSPLight(&mario_cap_seg3_lights_0301CF20.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPDisplayList(mario_cap_seg3_dl_03022B30), gsSPDisplayList(mario_cap_seg3_dl_03022B68), gsSPDisplayList(mario_cap_seg3_dl_03022CC8), diff --git a/actors/metal_box/model.inc.c b/actors/metal_box/model.inc.c index a19761a4..16338671 100644 --- a/actors/metal_box/model.inc.c +++ b/actors/metal_box/model.inc.c @@ -1,10 +1,6 @@ // Metal Box // 0x08023980 -static const Lights1 metal_box_seg8_lights_08023980 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x08023998 ALIGNED8 static const Texture metal_box_seg8_texture_08023998[] = { @@ -48,8 +44,8 @@ const Gfx metal_box_seg8_dl_08024B18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, metal_box_seg8_texture_08023998), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&metal_box_seg8_lights_08023980.l, 1), - gsSPLight(&metal_box_seg8_lights_08023980.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(metal_box_seg8_vertex_08024998, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/mips/model.inc.c b/actors/mips/model.inc.c index 3be4c12e..e81cf56a 100644 --- a/actors/mips/model.inc.c +++ b/actors/mips/model.inc.c @@ -6,16 +6,8 @@ ALIGNED8 static const Texture mips_seg6_texture_0600FB80[] = { }; // 0x06010380 -static const Lights1 mips_seg6_lights_06010380 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06010398 -static const Lights1 mips_seg6_lights_06010398 = gdSPDefLights1( - 0x0f, 0x0d, 0x04, - 0x27, 0x21, 0x0b, 0x28, 0x28, 0x28 -); // 0x060103B0 static const Vtx mips_seg6_vertex_060103B0[] = { @@ -75,8 +67,8 @@ const Gfx mips_seg6_dl_06010600[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06010380.l, 1), - gsSPLight(&mips_seg6_lights_06010380.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_060103B0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 2, 5, 3, 0x0), @@ -101,13 +93,13 @@ const Gfx mips_seg6_dl_06010600[] = { // 0x06010748 - 0x060107B8 const Gfx mips_seg6_dl_06010748[] = { - gsSPLight(&mips_seg6_lights_06010398.l, 1), - gsSPLight(&mips_seg6_lights_06010398.a, 2), + gsSPLightColor(LIGHT_1, 0x27210bff), + gsSPLightColor(LIGHT_2, 0xf0d04ff), gsSPVertex(mips_seg6_vertex_06010580, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP1Triangle( 3, 2, 1, 0x0), - gsSPLight(&mips_seg6_lights_06010380.l, 1), - gsSPLight(&mips_seg6_lights_06010380.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_060105C0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 3, 2, 0, 0x0, 2, 1, 0, 0x0), @@ -133,10 +125,6 @@ const Gfx mips_seg6_dl_060107B8[] = { }; // 0x06010820 -static const Lights1 mips_seg6_lights_06010820 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06010838 static const Vtx mips_seg6_vertex_06010838[] = { @@ -193,8 +181,8 @@ const Gfx mips_seg6_dl_06010A98[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06010820.l, 1), - gsSPLight(&mips_seg6_lights_06010820.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_06010838, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 0, 5, 1, 0x0, 1, 6, 3, 0x0), @@ -241,16 +229,8 @@ const Gfx mips_seg6_dl_06010C40[] = { }; // 0x06010CA0 -static const Lights1 mips_seg6_lights_06010CA0 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x06010CB8 -static const Lights1 mips_seg6_lights_06010CB8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06010CD0 static const Vtx mips_seg6_vertex_06010CD0[] = { @@ -279,13 +259,13 @@ const Gfx mips_seg6_dl_06010DB0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06010CA0.l, 1), - gsSPLight(&mips_seg6_lights_06010CA0.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_06010CD0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 4, 0, 5, 0x0), - gsSPLight(&mips_seg6_lights_06010CB8.l, 1), - gsSPLight(&mips_seg6_lights_06010CB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_06010D30, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 5, 6, 0, 0x0), @@ -311,22 +291,10 @@ const Gfx mips_seg6_dl_06010E60[] = { }; // 0x06010EC0 -static const Lights1 mips_seg6_lights_06010EC0 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x06010ED8 -static const Lights1 mips_seg6_lights_06010ED8 = gdSPDefLights1( - 0x35, 0x38, 0x00, - 0x85, 0x8e, 0x00, 0x28, 0x28, 0x28 -); // 0x06010EF0 -static const Lights1 mips_seg6_lights_06010EF0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06010F08 static const Vtx mips_seg6_vertex_06010F08[] = { @@ -360,17 +328,17 @@ const Gfx mips_seg6_dl_06010FF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06010EC0.l, 1), - gsSPLight(&mips_seg6_lights_06010EC0.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_06010F08, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP1Triangle( 3, 2, 4, 0x0), - gsSPLight(&mips_seg6_lights_06010ED8.l, 1), - gsSPLight(&mips_seg6_lights_06010ED8.a, 2), + gsSPLightColor(LIGHT_1, 0x858e00ff), + gsSPLightColor(LIGHT_2, 0x353800ff), gsSPVertex(mips_seg6_vertex_06010F58, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&mips_seg6_lights_06010EF0.l, 1), - gsSPLight(&mips_seg6_lights_06010EF0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_06010F88, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 3, 2, 4, 0x0, 2, 1, 4, 0x0), @@ -395,16 +363,8 @@ const Gfx mips_seg6_dl_060110B0[] = { }; // 0x06011110 -static const Lights1 mips_seg6_lights_06011110 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x06011128 -static const Lights1 mips_seg6_lights_06011128 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06011140 static const Vtx mips_seg6_vertex_06011140[] = { @@ -435,13 +395,13 @@ const Gfx mips_seg6_dl_06011240[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06011110.l, 1), - gsSPLight(&mips_seg6_lights_06011110.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_06011140, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 3, 4, 5, 0x0), - gsSPLight(&mips_seg6_lights_06011128.l, 1), - gsSPLight(&mips_seg6_lights_06011128.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_060111A0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 5, 6, 1, 0x0), @@ -469,16 +429,8 @@ const Gfx mips_seg6_dl_06011310[] = { }; // 0x06011370 -static const Lights1 mips_seg6_lights_06011370 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x06011388 -static const Lights1 mips_seg6_lights_06011388 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060113A0 static const Vtx mips_seg6_vertex_060113A0[] = { @@ -506,13 +458,13 @@ const Gfx mips_seg6_dl_06011470[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06011370.l, 1), - gsSPLight(&mips_seg6_lights_06011370.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_060113A0, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP1Triangle( 3, 4, 1, 0x0), - gsSPLight(&mips_seg6_lights_06011388.l, 1), - gsSPLight(&mips_seg6_lights_06011388.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_060113F0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 3, 2, 1, 0x0, 3, 5, 6, 0x0), @@ -539,16 +491,8 @@ const Gfx mips_seg6_dl_06011520[] = { }; // 0x06011580 -static const Lights1 mips_seg6_lights_06011580 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x06011598 -static const Lights1 mips_seg6_lights_06011598 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060115B0 static const Vtx mips_seg6_vertex_060115B0[] = { @@ -579,13 +523,13 @@ const Gfx mips_seg6_dl_060116B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06011580.l, 1), - gsSPLight(&mips_seg6_lights_06011580.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_060115B0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 3, 1, 0x0, 2, 5, 0, 0x0), - gsSPLight(&mips_seg6_lights_06011598.l, 1), - gsSPLight(&mips_seg6_lights_06011598.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_06011610, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 2, 3, 0, 0x0, 3, 2, 5, 0x0), @@ -613,16 +557,8 @@ const Gfx mips_seg6_dl_06011780[] = { }; // 0x060117E0 -static const Lights1 mips_seg6_lights_060117E0 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x060117F8 -static const Lights1 mips_seg6_lights_060117F8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06011810 static const Vtx mips_seg6_vertex_06011810[] = { @@ -650,13 +586,13 @@ const Gfx mips_seg6_dl_060118E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_060117E0.l, 1), - gsSPLight(&mips_seg6_lights_060117E0.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_06011810, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), gsSP1Triangle( 1, 4, 3, 0x0), - gsSPLight(&mips_seg6_lights_060117F8.l, 1), - gsSPLight(&mips_seg6_lights_060117F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_06011860, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 6, 7, 3, 0x0), @@ -683,16 +619,8 @@ const Gfx mips_seg6_dl_06011990[] = { }; // 0x060119F0 -static const Lights1 mips_seg6_lights_060119F0 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x06011A08 -static const Lights1 mips_seg6_lights_06011A08 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06011A20 static const Vtx mips_seg6_vertex_06011A20[] = { @@ -721,13 +649,13 @@ const Gfx mips_seg6_dl_06011B00[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_060119F0.l, 1), - gsSPLight(&mips_seg6_lights_060119F0.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_06011A20, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 5, 2, 4, 0x0), - gsSPLight(&mips_seg6_lights_06011A08.l, 1), - gsSPLight(&mips_seg6_lights_06011A08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_06011A80, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 1, 0x0, 1, 3, 6, 0x0), @@ -753,16 +681,8 @@ const Gfx mips_seg6_dl_06011BB0[] = { }; // 0x06011C10 -static const Lights1 mips_seg6_lights_06011C10 = gdSPDefLights1( - 0x3c, 0x3c, 0x00, - 0x96, 0x96, 0x00, 0x28, 0x28, 0x28 -); // 0x06011C28 -static const Lights1 mips_seg6_lights_06011C28 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06011C40 static const Vtx mips_seg6_vertex_06011C40[] = { @@ -790,13 +710,13 @@ const Gfx mips_seg6_dl_06011D10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mips_seg6_texture_0600FB80), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&mips_seg6_lights_06011C10.l, 1), - gsSPLight(&mips_seg6_lights_06011C10.a, 2), + gsSPLightColor(LIGHT_1, 0x969600ff), + gsSPLightColor(LIGHT_2, 0x3c3c00ff), gsSPVertex(mips_seg6_vertex_06011C40, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 3, 4, 5, 0x0), - gsSPLight(&mips_seg6_lights_06011C28.l, 1), - gsSPLight(&mips_seg6_lights_06011C28.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(mips_seg6_vertex_06011CA0, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 3, 4, 5, 0x0, 1, 3, 5, 0x0), @@ -821,10 +741,6 @@ const Gfx mips_seg6_dl_06011DB0[] = { }; // 0x06011E10 -static const Lights1 mips_seg6_lights_06011E10 = gdSPDefLights1( - 0x34, 0x2c, 0x0f, - 0x82, 0x6e, 0x26, 0x28, 0x28, 0x28 -); // 0x06011E28 static const Vtx mips_seg6_vertex_06011E28[] = { @@ -838,8 +754,8 @@ static const Vtx mips_seg6_vertex_06011E28[] = { // 0x06011E88 - 0x06011ED8 const Gfx mips_seg6_dl_06011E88[] = { - gsSPLight(&mips_seg6_lights_06011E10.l, 1), - gsSPLight(&mips_seg6_lights_06011E10.a, 2), + gsSPLightColor(LIGHT_1, 0x826e26ff), + gsSPLightColor(LIGHT_2, 0x342c0fff), gsSPVertex(mips_seg6_vertex_06011E28, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 0, 2, 0x0, 2, 5, 4, 0x0), @@ -856,10 +772,6 @@ const Gfx mips_seg6_dl_06011ED8[] = { }; // 0x06011EF8 -static const Lights1 mips_seg6_lights_06011EF8 = gdSPDefLights1( - 0x34, 0x2c, 0x0f, - 0x82, 0x6e, 0x26, 0x28, 0x28, 0x28 -); // 0x06011F10 static const Vtx mips_seg6_vertex_06011F10[] = { @@ -873,8 +785,8 @@ static const Vtx mips_seg6_vertex_06011F10[] = { // 0x06011F70 - 0x06011FC0 const Gfx mips_seg6_dl_06011F70[] = { - gsSPLight(&mips_seg6_lights_06011EF8.l, 1), - gsSPLight(&mips_seg6_lights_06011EF8.a, 2), + gsSPLightColor(LIGHT_1, 0x826e26ff), + gsSPLightColor(LIGHT_2, 0x342c0fff), gsSPVertex(mips_seg6_vertex_06011F10, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 2, 0x0, 2, 1, 4, 0x0), diff --git a/actors/moneybag/model.inc.c b/actors/moneybag/model.inc.c index fa3505bc..9f0a5314 100644 --- a/actors/moneybag/model.inc.c +++ b/actors/moneybag/model.inc.c @@ -11,16 +11,8 @@ ALIGNED8 static const Texture moneybag_seg6_texture_060049B0[] = { }; // 0x060051B0 -static const Lights1 moneybag_seg6_lights_060051B0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060051C8 -static const Lights1 moneybag_seg6_lights_060051C8 = gdSPDefLights1( - 0x00, 0x3f, 0x23, - 0x00, 0x7f, 0x47, 0x28, 0x28, 0x28 -); // 0x060051E0 static const Vtx moneybag_seg6_vertex_060051E0[] = { @@ -53,8 +45,8 @@ const Gfx moneybag_seg6_dl_06005300[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, moneybag_seg6_texture_060039B0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&moneybag_seg6_lights_060051B0.l, 1), - gsSPLight(&moneybag_seg6_lights_060051B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(moneybag_seg6_vertex_060051E0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 0, 0x0, 8, 4, 9, 0x0), @@ -63,8 +55,8 @@ const Gfx moneybag_seg6_dl_06005300[] = { // 0x06005358 - 0x060053B8 const Gfx moneybag_seg6_dl_06005358[] = { - gsSPLight(&moneybag_seg6_lights_060051C8.l, 1), - gsSPLight(&moneybag_seg6_lights_060051C8.a, 2), + gsSPLightColor(LIGHT_1, 0x7f47ff), + gsSPLightColor(LIGHT_2, 0x3f23ff), gsSPVertex(moneybag_seg6_vertex_06005280, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 3, 0, 4, 0x0, 3, 5, 1, 0x0), @@ -92,10 +84,6 @@ const Gfx moneybag_seg6_dl_060053B8[] = { }; // 0x06005428 -static const Lights1 moneybag_seg6_lights_06005428 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06005440 static const Vtx moneybag_seg6_vertex_06005440[] = { @@ -131,8 +119,8 @@ const Gfx moneybag_seg6_dl_06005590[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, moneybag_seg6_texture_060039B0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&moneybag_seg6_lights_06005428.l, 1), - gsSPLight(&moneybag_seg6_lights_06005428.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(moneybag_seg6_vertex_06005440, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 7, 0x0), @@ -209,28 +197,12 @@ const Gfx moneybag_seg6_dl_06005750[] = { }; // Unreferenced light group -UNUSED static const Lights1 moneybag_lights_unused1 = gdSPDefLights1( - 0x0c, 0x20, 0x06, - 0x30, 0x83, 0x1a, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 moneybag_lights_unused2 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x060057F0 -static const Lights1 moneybag_seg6_lights_060057F0 = gdSPDefLights1( - 0x3f, 0x3f, 0x00, - 0xff, 0xff, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 moneybag_lights_unused3 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x06005820 static const Vtx moneybag_seg6_vertex_06005820[] = { @@ -265,8 +237,8 @@ static const Vtx moneybag_seg6_vertex_060058D0[] = { // 0x06005980 - 0x060059F0 const Gfx moneybag_seg6_dl_06005980[] = { gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&moneybag_seg6_lights_060057F0.l, 1), - gsSPLight(&moneybag_seg6_lights_060057F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(moneybag_seg6_vertex_06005820, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 7, 8, 0x0), @@ -279,8 +251,8 @@ const Gfx moneybag_seg6_dl_06005980[] = { // 0x060059F0 - 0x06005A60 const Gfx moneybag_seg6_dl_060059F0[] = { gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA), - gsSPLight(&moneybag_seg6_lights_060057F0.l, 1), - gsSPLight(&moneybag_seg6_lights_060057F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(moneybag_seg6_vertex_060058D0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 8, 5, 7, 0x0), diff --git a/actors/monty_mole/model.inc.c b/actors/monty_mole/model.inc.c index c9f0c129..c9b020ce 100644 --- a/actors/monty_mole/model.inc.c +++ b/actors/monty_mole/model.inc.c @@ -1,40 +1,16 @@ // Monty Mole // Unreferenced light group -UNUSED static const Lights1 monty_mole_lights_unused1 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 monty_mole_lights_unused2 = gdSPDefLights1( - 0x30, 0x1f, 0x00, - 0xc3, 0x7e, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 monty_mole_lights_unused3 = gdSPDefLights1( - 0x05, 0x04, 0x05, - 0x16, 0x13, 0x14, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 monty_mole_lights_unused4 = gdSPDefLights1( - 0x07, 0x08, 0x07, - 0x1f, 0x20, 0x1f, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 monty_mole_lights_unused5 = gdSPDefLights1( - 0x14, 0x0b, 0x0a, - 0x53, 0x2e, 0x28, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 monty_mole_lights_unused6 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05000970 ALIGNED8 static const Texture monty_mole_seg5_texture_05000970[] = { @@ -62,10 +38,6 @@ ALIGNED8 static const Texture monty_mole_seg5_texture_05002970[] = { }; // 0x05003170 -static const Lights1 monty_mole_seg5_lights_05003170 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003188 static const Vtx monty_mole_seg5_vertex_05003188[] = { @@ -84,8 +56,8 @@ const Gfx monty_mole_seg5_dl_05003208[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05001170), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05003170.l, 1), - gsSPLight(&monty_mole_seg5_lights_05003170.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_05003188, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 1, 3, 0x0, 5, 2, 4, 0x0), @@ -113,10 +85,6 @@ const Gfx monty_mole_seg5_dl_050032A0[] = { }; // 0x05003300 -static const Lights1 monty_mole_seg5_lights_05003300 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003318 static const Vtx monty_mole_seg5_vertex_05003318[] = { @@ -149,8 +117,8 @@ const Gfx monty_mole_seg5_dl_05003438[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05002970), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05003300.l, 1), - gsSPLight(&monty_mole_seg5_lights_05003300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_05003318, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 5, 7, 0x0), @@ -193,10 +161,6 @@ const Gfx monty_mole_seg5_dl_05003518[] = { }; // 0x05003598 -static const Lights1 monty_mole_seg5_lights_05003598 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050035B0 static const Vtx monty_mole_seg5_vertex_050035B0[] = { @@ -235,8 +199,8 @@ const Gfx monty_mole_seg5_dl_05003730[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05002970), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05003598.l, 1), - gsSPLight(&monty_mole_seg5_lights_05003598.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_050035B0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 1, 4, 5, 0x0), @@ -280,10 +244,6 @@ const Gfx monty_mole_seg5_dl_05003820[] = { }; // 0x050038A0 -static const Lights1 monty_mole_seg5_lights_050038A0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050038B8 static const Vtx monty_mole_seg5_vertex_050038B8[] = { @@ -302,8 +262,8 @@ const Gfx monty_mole_seg5_dl_05003938[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05001170), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_050038A0.l, 1), - gsSPLight(&monty_mole_seg5_lights_050038A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_050038B8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 1, 0, 3, 0x0, 1, 5, 2, 0x0), @@ -331,10 +291,6 @@ const Gfx monty_mole_seg5_dl_050039D0[] = { }; // 0x05003A30 -static const Lights1 monty_mole_seg5_lights_05003A30 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003A48 static const Vtx monty_mole_seg5_vertex_05003A48[] = { @@ -367,8 +323,8 @@ const Gfx monty_mole_seg5_dl_05003B68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05002970), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05003A30.l, 1), - gsSPLight(&monty_mole_seg5_lights_05003A30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_05003A48, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 5, 7, 0x0), @@ -411,10 +367,6 @@ const Gfx monty_mole_seg5_dl_05003C48[] = { }; // 0x05003CC8 -static const Lights1 monty_mole_seg5_lights_05003CC8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003CE0 static const Vtx monty_mole_seg5_vertex_05003CE0[] = { @@ -453,8 +405,8 @@ const Gfx monty_mole_seg5_dl_05003E60[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05002970), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05003CC8.l, 1), - gsSPLight(&monty_mole_seg5_lights_05003CC8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_05003CE0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 2, 5, 0x0, 2, 3, 5, 0x0), @@ -498,10 +450,6 @@ const Gfx monty_mole_seg5_dl_05003F50[] = { }; // 0x05003FD0 -static const Lights1 monty_mole_seg5_lights_05003FD0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05003FE8 static const Vtx monty_mole_seg5_vertex_05003FE8[] = { @@ -565,8 +513,8 @@ const Gfx monty_mole_seg5_dl_050042B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05000970), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05003FD0.l, 1), - gsSPLight(&monty_mole_seg5_lights_05003FD0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_05003FE8, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 7, 5, 4, 0x0), @@ -625,10 +573,6 @@ const Gfx monty_mole_seg5_dl_050044B0[] = { }; // 0x05004518 -static const Lights1 monty_mole_seg5_lights_05004518 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004530 static const Vtx monty_mole_seg5_vertex_05004530[] = { @@ -735,8 +679,8 @@ const Gfx monty_mole_seg5_dl_050049B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05001970), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05004518.l, 1), - gsSPLight(&monty_mole_seg5_lights_05004518.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_05004530, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 3, 5, 0x0, 5, 1, 0, 0x0), @@ -818,10 +762,6 @@ const Gfx monty_mole_seg5_dl_05004C00[] = { }; // 0x05004C90 -static const Lights1 monty_mole_seg5_lights_05004C90 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05004CA8 static const Vtx monty_mole_seg5_vertex_05004CA8[] = { @@ -836,8 +776,8 @@ const Gfx monty_mole_seg5_dl_05004CE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, monty_mole_seg5_texture_05002170), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&monty_mole_seg5_lights_05004C90.l, 1), - gsSPLight(&monty_mole_seg5_lights_05004C90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(monty_mole_seg5_vertex_05004CA8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/actors/peach/model.inc.c b/actors/peach/model.inc.c index 6bc3448e..147887f4 100644 --- a/actors/peach/model.inc.c +++ b/actors/peach/model.inc.c @@ -1,16 +1,8 @@ // Peach // 0x050009F8 -static const Lights1 peach_seg5_lights_050009F8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05000A10 -static const Lights1 peach_seg5_lights_05000A10 = gdSPDefLights1( - 0x7f, 0x5f, 0x0c, - 0xff, 0xbf, 0x18, 0x28, 0x28, 0x28 -); // 0x05000A28 ALIGNED8 static const Texture peach_seg5_texture_05000A28[] = { @@ -361,8 +353,8 @@ const Gfx peach_seg5_dl_05005648[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05002A28), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_050009F8.l, 1), - gsSPLight(&peach_seg5_lights_050009F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05004828, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 1, 5, 0x0, 5, 1, 6, 0x0), @@ -429,8 +421,8 @@ const Gfx peach_seg5_dl_050058B8[] = { // 0x050058E0 - 0x05005C48 const Gfx peach_seg5_dl_050058E0[] = { - gsSPLight(&peach_seg5_lights_05000A10.l, 1), - gsSPLight(&peach_seg5_lights_05000A10.a, 2), + gsSPLightColor(LIGHT_1, 0xffbf18ff), + gsSPLightColor(LIGHT_2, 0x7f5f0cff), gsSPVertex(peach_seg5_vertex_05004E88, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 3, 5, 0, 0x0, 6, 4, 0, 0x0), @@ -641,10 +633,6 @@ const Gfx peach_seg5_dl_05005F48[] = { }; // 0x05005FA0 -static const Lights1 peach_seg5_lights_05005FA0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05005FB8 static const Vtx peach_seg5_vertex_05005FB8[] = { @@ -665,8 +653,8 @@ const Gfx peach_seg5_dl_05006058[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05000A28), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05005FA0.l, 1), - gsSPLight(&peach_seg5_lights_05005FA0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05005FB8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 4, 5, 3, 0x0), @@ -692,16 +680,8 @@ const Gfx peach_seg5_dl_050060E0[] = { }; // 0x05006138 -static const Lights1 peach_seg5_lights_05006138 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05006150 -static const Lights1 peach_seg5_lights_05006150 = gdSPDefLights1( - 0x6c, 0x54, 0x5f, - 0xd9, 0xa9, 0xbe, 0x28, 0x28, 0x28 -); // 0x05006168 static const Vtx peach_seg5_vertex_05006168[] = { @@ -832,8 +812,8 @@ const Gfx peach_seg5_dl_05006728[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05002C28), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05006138.l, 1), - gsSPLight(&peach_seg5_lights_05006138.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05006168, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 4, 1, 5, 0x0, 6, 1, 3, 0x0), @@ -847,13 +827,13 @@ const Gfx peach_seg5_dl_05006798[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05004028), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05006150.l, 1), - gsSPLight(&peach_seg5_lights_05006150.a, 2), + gsSPLightColor(LIGHT_1, 0xd9a9beff), + gsSPLightColor(LIGHT_2, 0x6c545fff), gsSPVertex(peach_seg5_vertex_050061E8, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP1Triangle( 3, 0, 2, 0x0), - gsSPLight(&peach_seg5_lights_05006138.l, 1), - gsSPLight(&peach_seg5_lights_05006138.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05006238, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 0, 0x0, 0, 6, 7, 0x0), @@ -916,10 +896,6 @@ const Gfx peach_seg5_dl_05006A18[] = { }; // 0x05006A90 -static const Lights1 peach_seg5_lights_05006A90 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05006AA8 static const Vtx peach_seg5_vertex_05006AA8[] = { @@ -1026,8 +1002,8 @@ const Gfx peach_seg5_dl_05006FA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05004028), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05006A90.l, 1), - gsSPLight(&peach_seg5_lights_05006A90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05006AA8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 7, 0x0, 3, 8, 9, 0x0), @@ -1104,10 +1080,6 @@ const Gfx peach_seg5_us_dl_05007288[] = { }; // 0x05007288 -static const Lights1 peach_seg5_lights_05007288 = gdSPDefLights1( - 0x7f, 0x5f, 0x0c, - 0xff, 0xbf, 0x18, 0x28, 0x28, 0x28 -); // 0x050072A0 static const Vtx peach_seg5_vertex_050072A0[] = { @@ -1222,8 +1194,8 @@ static const Vtx peach_seg5_vertex_05007780[] = { // 0x05007810 - 0x05007AB8 const Gfx peach_seg5_dl_05007810[] = { - gsSPLight(&peach_seg5_lights_05007288.l, 1), - gsSPLight(&peach_seg5_lights_05007288.a, 2), + gsSPLightColor(LIGHT_1, 0xffbf18ff), + gsSPLightColor(LIGHT_2, 0x7f5f0cff), gsSPVertex(peach_seg5_vertex_050072A0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 2, 3, 0, 0x0), @@ -1282,10 +1254,6 @@ const Gfx peach_seg5_dl_05007AB8[] = { }; // 0x05007AE0 -static const Lights1 peach_seg5_lights_05007AE0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05007AF8 static const Vtx peach_seg5_vertex_05007AF8[] = { @@ -1331,8 +1299,8 @@ const Gfx peach_seg5_dl_05007CE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05004028), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05007AE0.l, 1), - gsSPLight(&peach_seg5_lights_05007AE0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05007AF8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 5, 3, 0, 0x0, 4, 6, 0, 0x0), @@ -1373,10 +1341,6 @@ const Gfx peach_seg5_dl_05007E58[] = { }; // 0x05007EB0 -static const Lights1 peach_seg5_lights_05007EB0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05007EC8 static const Vtx peach_seg5_vertex_05007EC8[] = { @@ -1422,8 +1386,8 @@ const Gfx peach_seg5_dl_050080B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05004028), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05007EB0.l, 1), - gsSPLight(&peach_seg5_lights_05007EB0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05007EC8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 4, 3, 2, 0x0), @@ -1465,10 +1429,6 @@ const Gfx peach_seg5_dl_05008228[] = { }; // 0x05008280 -static const Lights1 peach_seg5_lights_05008280 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05008298 static const Vtx peach_seg5_vertex_05008298[] = { @@ -1508,8 +1468,8 @@ const Gfx peach_seg5_dl_05008428[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05000A28), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05008280.l, 1), - gsSPLight(&peach_seg5_lights_05008280.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05008298, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 3, 0, 0x0, 1, 5, 6, 0x0), @@ -1554,10 +1514,6 @@ const Gfx peach_seg5_dl_05008560[] = { }; // 0x050085D0 -static const Lights1 peach_seg5_lights_050085D0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050085E8 static const Vtx peach_seg5_vertex_050085E8[] = { @@ -1579,8 +1535,8 @@ static const Vtx peach_seg5_vertex_050085E8[] = { // 0x050086C8 - 0x050087A8 const Gfx peach_seg5_dl_050086C8[] = { - gsSPLight(&peach_seg5_lights_050085D0.l, 1), - gsSPLight(&peach_seg5_lights_050085D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_050085E8, 14, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSP2Triangles( 3, 4, 2, 0x0, 2, 5, 3, 0x0), @@ -1608,10 +1564,6 @@ const Gfx peach_seg5_dl_050087A8[] = { }; // 0x050087D0 -static const Lights1 peach_seg5_lights_050087D0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x050087E8 static const Vtx peach_seg5_vertex_050087E8[] = { @@ -1651,8 +1603,8 @@ const Gfx peach_seg5_dl_05008978[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05000A28), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_050087D0.l, 1), - gsSPLight(&peach_seg5_lights_050087D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_050087E8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 2, 4, 0, 0x0, 0, 5, 3, 0x0), @@ -1697,10 +1649,6 @@ const Gfx peach_seg5_dl_05008AB0[] = { }; // 0x05008B20 -static const Lights1 peach_seg5_lights_05008B20 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05008B38 static const Vtx peach_seg5_vertex_05008B38[] = { @@ -1722,8 +1670,8 @@ static const Vtx peach_seg5_vertex_05008B38[] = { // 0x05008C18 - 0x05008CF8 const Gfx peach_seg5_dl_05008C18[] = { - gsSPLight(&peach_seg5_lights_05008B20.l, 1), - gsSPLight(&peach_seg5_lights_05008B20.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05008B38, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 5, 0, 0x0, 5, 2, 6, 0x0), @@ -1750,10 +1698,6 @@ const Gfx peach_seg5_dl_05008CF8[] = { }; // 0x05008D20 -static const Lights1 peach_seg5_lights_05008D20 = gdSPDefLights1( - 0x0b, 0x1a, 0x67, - 0x16, 0x35, 0xce, 0x28, 0x28, 0x28 -); // 0x05008D38 static const Vtx peach_seg5_vertex_05008D38[] = { @@ -1777,8 +1721,8 @@ static const Vtx peach_seg5_vertex_05008D38[] = { // 0x05008E38 - 0x05008F20 const Gfx peach_seg5_dl_05008E38[] = { - gsSPLight(&peach_seg5_lights_05008D20.l, 1), - gsSPLight(&peach_seg5_lights_05008D20.a, 2), + gsSPLightColor(LIGHT_1, 0x1635ceff), + gsSPLightColor(LIGHT_2, 0xb1a67ff), gsSPVertex(peach_seg5_vertex_05008D38, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 3, 4, 5, 0x0, 3, 0, 4, 0x0), @@ -1806,10 +1750,6 @@ const Gfx peach_seg5_dl_05008F20[] = { }; // 0x05008F48 -static const Lights1 peach_seg5_lights_05008F48 = gdSPDefLights1( - 0x0b, 0x1a, 0x67, - 0x16, 0x35, 0xce, 0x28, 0x28, 0x28 -); // 0x05008F60 static const Vtx peach_seg5_vertex_05008F60[] = { @@ -1833,8 +1773,8 @@ static const Vtx peach_seg5_vertex_05008F60[] = { // 0x05009060 - 0x05009148 const Gfx peach_seg5_dl_05009060[] = { - gsSPLight(&peach_seg5_lights_05008F48.l, 1), - gsSPLight(&peach_seg5_lights_05008F48.a, 2), + gsSPLightColor(LIGHT_1, 0x1635ceff), + gsSPLightColor(LIGHT_2, 0xb1a67ff), gsSPVertex(peach_seg5_vertex_05008F60, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 3, 5, 0x0), @@ -1862,10 +1802,6 @@ const Gfx peach_seg5_dl_05009148[] = { }; // 0x05009170 -static const Lights1 peach_seg5_lights_05009170 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05009188 static const Vtx peach_seg5_vertex_05009188[] = { @@ -1909,8 +1845,8 @@ static const Vtx peach_seg5_vertex_05009288[] = { // 0x05009388 - 0x05009500 const Gfx peach_seg5_dl_05009388[] = { - gsSPLight(&peach_seg5_lights_05009170.l, 1), - gsSPLight(&peach_seg5_lights_05009170.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05009188, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 0, 0x0, 0, 5, 6, 0x0), @@ -1948,10 +1884,6 @@ const Gfx peach_seg5_dl_05009500[] = { }; // 0x05009528 -static const Lights1 peach_seg5_lights_05009528 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05009540 static const Vtx peach_seg5_vertex_05009540[] = { @@ -2007,8 +1939,8 @@ static const Vtx peach_seg5_vertex_05009740[] = { // 0x050097C0 - 0x05009940 const Gfx peach_seg5_dl_050097C0[] = { - gsSPLight(&peach_seg5_lights_05009528.l, 1), - gsSPLight(&peach_seg5_lights_05009528.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05009540, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0), gsSP2Triangles( 5, 0, 2, 0x0, 2, 3, 5, 0x0), @@ -2047,10 +1979,6 @@ const Gfx peach_seg5_dl_05009940[] = { }; // 0x05009968 -static const Lights1 peach_seg5_lights_05009968 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05009980 static const Vtx peach_seg5_vertex_05009980[] = { @@ -2151,8 +2079,8 @@ const Gfx peach_seg5_dl_05009E20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, peach_seg5_texture_05004028), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&peach_seg5_lights_05009968.l, 1), - gsSPLight(&peach_seg5_lights_05009968.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(peach_seg5_vertex_05009980, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 2, 1, 0x0, 5, 2, 4, 0x0), diff --git a/actors/penguin/model.inc.c b/actors/penguin/model.inc.c index af69322c..4ee18b52 100644 --- a/actors/penguin/model.inc.c +++ b/actors/penguin/model.inc.c @@ -1,28 +1,12 @@ // Penguin // 0x05002D80 -static const Lights1 penguin_seg5_lights_05002D80 = gdSPDefLights1( - 0x06, 0x06, 0x39, - 0x0f, 0x0f, 0x90, 0x28, 0x28, 0x28 -); // 0x05002D98 -static const Lights1 penguin_seg5_lights_05002D98 = gdSPDefLights1( - 0x52, 0x34, 0x0a, - 0xce, 0x84, 0x1a, 0x28, 0x28, 0x28 -); // 0x05002DB0 -static const Lights1 penguin_seg5_lights_05002DB0 = gdSPDefLights1( - 0x59, 0x42, 0x14, - 0xdf, 0xa7, 0x34, 0x28, 0x28, 0x28 -); // 0x05002DC8 -static const Lights1 penguin_seg5_lights_05002DC8 = gdSPDefLights1( - 0x66, 0x66, 0x65, - 0xff, 0xff, 0xfd, 0x28, 0x28, 0x28 -); // 0x05002DE0 ALIGNED8 static const Texture penguin_seg5_texture_eye_open[] = { @@ -55,22 +39,10 @@ ALIGNED8 static const Texture penguin_seg5_texture_beak[] = { }; // 0x05005DE0 -static const Lights1 penguin_seg5_lights_head = gdSPDefLights1( - 0x04, 0x0f, 0x41, - 0x0b, 0x26, 0xa4, 0x28, 0x28, 0x28 -); // 0x05005DF8 -static const Lights1 penguin_seg5_lights_beak_top = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05005E10 -static const Lights1 penguin_seg5_lights_beak_bottom = gdSPDefLights1( - 0x60, 0x55, 0x0b, - 0xf2, 0xd5, 0x1c, 0x28, 0x28, 0x28 -); // 0x05005E28 static const Vtx penguin_seg5_vertex_eyes[] = { @@ -152,8 +124,8 @@ static const Vtx penguin_seg5_vertex_beak_bottom[] = { // 0x05006188 - 0x050061C8 const Gfx penguin_seg5_sub_dl_eyes_model[] = { - gsSPLight(&penguin_seg5_lights_head.l, 1), - gsSPLight(&penguin_seg5_lights_head.a, 2), + gsSPLightColor(LIGHT_1, 0xb26a4ff), + gsSPLightColor(LIGHT_2, 0x40f41ff), gsSPVertex(penguin_seg5_vertex_eyes, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 6, 5, 0x0), @@ -162,8 +134,8 @@ const Gfx penguin_seg5_sub_dl_eyes_model[] = { // 0x050061C8 - 0x050061F8 const Gfx penguin_seg5_sub_dl_beak_model[] = { - gsSPLight(&penguin_seg5_lights_beak_top.l, 1), - gsSPLight(&penguin_seg5_lights_beak_top.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(penguin_seg5_vertex_beak_top, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), @@ -171,8 +143,8 @@ const Gfx penguin_seg5_sub_dl_beak_model[] = { // 0x050061F8 - 0x05006380 const Gfx penguin_seg5_sub_dl_head_model[] = { - gsSPLight(&penguin_seg5_lights_head.l, 1), - gsSPLight(&penguin_seg5_lights_head.a, 2), + gsSPLightColor(LIGHT_1, 0xb26a4ff), + gsSPLightColor(LIGHT_2, 0x40f41ff), gsSPVertex(penguin_seg5_vertex_05005EE8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 1, 5, 0x0, 1, 4, 6, 0x0), @@ -196,8 +168,8 @@ const Gfx penguin_seg5_sub_dl_head_model[] = { gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 0, 2, 0x0, 5, 2, 3, 0x0), gsSP2Triangles( 2, 5, 4, 0x0, 4, 5, 6, 0x0), - gsSPLight(&penguin_seg5_lights_beak_bottom.l, 1), - gsSPLight(&penguin_seg5_lights_beak_bottom.a, 2), + gsSPLightColor(LIGHT_1, 0xf2d51cff), + gsSPLightColor(LIGHT_2, 0x60550bff), gsSPVertex(penguin_seg5_vertex_beak_bottom, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), @@ -549,8 +521,8 @@ static const Vtx penguin_seg5_vertex_050070A8[] = { // 0x05007198 - 0x050071E8 const Gfx penguin_seg5_dl_05007198[] = { - gsSPLight(&penguin_seg5_lights_05002D80.l, 1), - gsSPLight(&penguin_seg5_lights_05002D80.a, 2), + gsSPLightColor(LIGHT_1, 0xf0f90ff), + gsSPLightColor(LIGHT_2, 0x60639ff), gsSPVertex(penguin_seg5_vertex_05006518, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 3, 6, 7, 0x0), @@ -560,8 +532,8 @@ const Gfx penguin_seg5_dl_05007198[] = { // 0x050071E8 - 0x05007238 const Gfx penguin_seg5_dl_050071E8[] = { - gsSPLight(&penguin_seg5_lights_05002D80.l, 1), - gsSPLight(&penguin_seg5_lights_05002D80.a, 2), + gsSPLightColor(LIGHT_1, 0xf0f90ff), + gsSPLightColor(LIGHT_2, 0x60639ff), gsSPVertex(penguin_seg5_vertex_050065B8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 7, 6, 8, 0x0), @@ -571,8 +543,8 @@ const Gfx penguin_seg5_dl_050071E8[] = { // 0x05007238 - 0x050072C8 const Gfx penguin_seg5_dl_05007238[] = { - gsSPLight(&penguin_seg5_lights_05002D98.l, 1), - gsSPLight(&penguin_seg5_lights_05002D98.a, 2), + gsSPLightColor(LIGHT_1, 0xce841aff), + gsSPLightColor(LIGHT_2, 0x52340aff), gsSPVertex(penguin_seg5_vertex_05006658, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 7, 2, 0x0), @@ -586,8 +558,8 @@ const Gfx penguin_seg5_dl_05007238[] = { // 0x050072C8 - 0x05007358 const Gfx penguin_seg5_dl_050072C8[] = { - gsSPLight(&penguin_seg5_lights_05002D98.l, 1), - gsSPLight(&penguin_seg5_lights_05002D98.a, 2), + gsSPLightColor(LIGHT_1, 0xce841aff), + gsSPLightColor(LIGHT_2, 0x52340aff), gsSPVertex(penguin_seg5_vertex_05006748, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0), @@ -601,13 +573,13 @@ const Gfx penguin_seg5_dl_050072C8[] = { // 0x05007358 - 0x05007540 const Gfx penguin_seg5_dl_05007358[] = { - gsSPLight(&penguin_seg5_lights_05002DB0.l, 1), - gsSPLight(&penguin_seg5_lights_05002DB0.a, 2), + gsSPLightColor(LIGHT_1, 0xdfa734ff), + gsSPLightColor(LIGHT_2, 0x594214ff), gsSPVertex(penguin_seg5_vertex_05006838, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP1Triangle( 1, 4, 3, 0x0), - gsSPLight(&penguin_seg5_lights_05002D80.l, 1), - gsSPLight(&penguin_seg5_lights_05002D80.a, 2), + gsSPLightColor(LIGHT_1, 0xf0f90ff), + gsSPLightColor(LIGHT_2, 0x60639ff), gsSPVertex(penguin_seg5_vertex_05006888, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 0, 0x0), @@ -635,8 +607,8 @@ const Gfx penguin_seg5_dl_05007358[] = { gsSPVertex(penguin_seg5_vertex_05006D68, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 7, 4, 0x0), - gsSPLight(&penguin_seg5_lights_05002D80.l, 1), - gsSPLight(&penguin_seg5_lights_05002D80.a, 2), + gsSPLightColor(LIGHT_1, 0xf0f90ff), + gsSPLightColor(LIGHT_2, 0x60639ff), gsSPVertex(penguin_seg5_vertex_05006DE8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), @@ -644,8 +616,8 @@ const Gfx penguin_seg5_dl_05007358[] = { // 0x05007540 - 0x05007708 const Gfx penguin_seg5_dl_05007540[] = { - gsSPLight(&penguin_seg5_lights_05002D80.l, 1), - gsSPLight(&penguin_seg5_lights_05002D80.a, 2), + gsSPLightColor(LIGHT_1, 0xf0f90ff), + gsSPLightColor(LIGHT_2, 0x60639ff), gsSPVertex(penguin_seg5_vertex_05006E28, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 2, 9, 6, 0x0), @@ -664,8 +636,8 @@ const Gfx penguin_seg5_dl_05007540[] = { gsSPVertex(penguin_seg5_vertex_05007018, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 2, 8, 0x0), - gsSPLight(&penguin_seg5_lights_05002DC8.l, 1), - gsSPLight(&penguin_seg5_lights_05002DC8.a, 2), + gsSPLightColor(LIGHT_1, 0xfffffdff), + gsSPLightColor(LIGHT_2, 0x666665ff), gsSPVertex(penguin_seg5_vertex_050070A8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 5, 2, 6, 0x0, 7, 8, 9, 0x0), diff --git a/actors/piranha_plant/model.inc.c b/actors/piranha_plant/model.inc.c index 9d6a8f46..dd8063e4 100644 --- a/actors/piranha_plant/model.inc.c +++ b/actors/piranha_plant/model.inc.c @@ -1,22 +1,10 @@ // Piranha Plant // 0x060113B0 -static const Lights1 piranha_plant_seg6_lights_060113B0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060113C8 -static const Lights1 piranha_plant_seg6_lights_060113C8 = gdSPDefLights1( - 0x0a, 0x2b, 0x02, - 0x2b, 0xae, 0x0a, 0x28, 0x28, 0x28 -); // 0x060113E0 -static const Lights1 piranha_plant_seg6_lights_060113E0 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x060113F8 ALIGNED8 static const Texture piranha_plant_seg6_texture_060113F8[] = { @@ -61,8 +49,8 @@ const Gfx piranha_plant_seg6_dl_06015438[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_060143F8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_060153F8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -99,8 +87,8 @@ const Gfx piranha_plant_seg6_dl_06015530[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_060143F8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_060154F0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -164,8 +152,8 @@ const Gfx piranha_plant_seg6_dl_06015798[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_06012BF8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_060155E8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 3, 4, 1, 0x0, 5, 6, 7, 0x0), @@ -317,8 +305,8 @@ const Gfx piranha_plant_seg6_dl_06015E40[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_06013BF8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_060158B0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), @@ -331,8 +319,8 @@ const Gfx piranha_plant_seg6_dl_06015EA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_060133F8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113C8.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113C8.a, 2), + gsSPLightColor(LIGHT_1, 0x2bae0aff), + gsSPLightColor(LIGHT_2, 0xa2b02ff), gsSPVertex(piranha_plant_seg6_vertex_06015990, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 3, 0x0, 3, 5, 8, 0x0), @@ -352,8 +340,8 @@ const Gfx piranha_plant_seg6_dl_06015F68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_060123F8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_06015B40, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 7, 0x0, 3, 7, 8, 0x0), @@ -373,8 +361,8 @@ const Gfx piranha_plant_seg6_dl_06015F68[] = { // 0x06016060 - 0x060160B0 const Gfx piranha_plant_seg6_dl_06016060[] = { - gsSPLight(&piranha_plant_seg6_lights_060113E0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113E0.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x3f0000ff), gsSPVertex(piranha_plant_seg6_vertex_06015DC0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 4, 1, 0x0), @@ -547,8 +535,8 @@ const Gfx piranha_plant_seg6_dl_06016750[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_06013BF8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_06016190, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), @@ -561,8 +549,8 @@ const Gfx piranha_plant_seg6_dl_060167B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_060133F8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113C8.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113C8.a, 2), + gsSPLightColor(LIGHT_1, 0x2bae0aff), + gsSPLightColor(LIGHT_2, 0xa2b02ff), gsSPVertex(piranha_plant_seg6_vertex_06016270, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 7, 6, 5, 0x0), @@ -584,8 +572,8 @@ const Gfx piranha_plant_seg6_dl_06016890[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_060123F8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_06016490, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 4, 5, 0x0, 0, 3, 4, 0x0), @@ -613,8 +601,8 @@ const Gfx piranha_plant_seg6_dl_06016960[] = { // 0x060169A8 - 0x060169E8 const Gfx piranha_plant_seg6_dl_060169A8[] = { - gsSPLight(&piranha_plant_seg6_lights_060113C8.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113C8.a, 2), + gsSPLightColor(LIGHT_1, 0x2bae0aff), + gsSPLightColor(LIGHT_2, 0xa2b02ff), gsSPVertex(piranha_plant_seg6_vertex_060166E0, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 3, 4, 5, 0x0, 5, 4, 6, 0x0), @@ -682,8 +670,8 @@ const Gfx piranha_plant_seg6_dl_06016BA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_06012BF8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_06016AE8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -728,8 +716,8 @@ const Gfx piranha_plant_seg6_dl_06016D30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_06012BF8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_06016C70, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -774,8 +762,8 @@ const Gfx piranha_plant_seg6_dl_06016EB8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, piranha_plant_seg6_texture_06012BF8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&piranha_plant_seg6_lights_060113B0.l, 1), - gsSPLight(&piranha_plant_seg6_lights_060113B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(piranha_plant_seg6_vertex_06016DF8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/poundable_pole/model.inc.c b/actors/poundable_pole/model.inc.c index 2268e858..69dead0d 100644 --- a/actors/poundable_pole/model.inc.c +++ b/actors/poundable_pole/model.inc.c @@ -1,10 +1,6 @@ // Poundable Pole // 0x06001038 -static const Lights1 poundable_pole_seg6_lights_06001038 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06001050 ALIGNED8 static const Texture poundable_pole_seg6_texture_06001050[] = { @@ -79,8 +75,8 @@ const Gfx poundable_pole_seg6_dl_060022F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, poundable_pole_seg6_texture_06001050), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(£able_pole_seg6_lights_06001038.l, 1), - gsSPLight(£able_pole_seg6_lights_06001038.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(poundable_pole_seg6_vertex_06002050, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 2, 1, 5, 0x0), diff --git a/actors/purple_switch/model.inc.c b/actors/purple_switch/model.inc.c index 25b41250..c1152ae8 100644 --- a/actors/purple_switch/model.inc.c +++ b/actors/purple_switch/model.inc.c @@ -1,10 +1,6 @@ // Purple Switch // 0x0800C090 -static const Lights1 purple_switch_seg8_lights_0800C090 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0800C0A8 ALIGNED8 static const Texture purple_switch_seg8_texture_0800C0A8[] = { @@ -49,8 +45,8 @@ const Gfx purple_switch_seg8_dl_0800C668[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, purple_switch_seg8_texture_0800C0A8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 4 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&purple_switch_seg8_lights_0800C090.l, 1), - gsSPLight(&purple_switch_seg8_lights_0800C090.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(purple_switch_seg8_vertex_0800C528, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/actors/scuttlebug/model.inc.c b/actors/scuttlebug/model.inc.c index d53a250e..d452606d 100644 --- a/actors/scuttlebug/model.inc.c +++ b/actors/scuttlebug/model.inc.c @@ -1,16 +1,8 @@ // Scuttlebug // Unreferenced light group -UNUSED static const Lights1 scuttlebug_lights_unused1 = gdSPDefLights1( - 0x2c, 0x00, 0x00, - 0xb2, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 scuttlebug_lights_unused2 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x06010108 ALIGNED8 static const Texture scuttlebug_seg6_texture_06010108[] = { @@ -237,10 +229,6 @@ const Gfx scuttlebug_seg6_dl_06013DA0[] = { }; // 0x06013E10 -static const Lights1 scuttlebug_seg6_lights_06013E10 = gdSPDefLights1( - 0x33, 0x22, 0x01, - 0xcf, 0x89, 0x06, 0x28, 0x28, 0x28 -); // 0x06013E28 static const Vtx scuttlebug_seg6_vertex_06013E28[] = { @@ -278,8 +266,8 @@ static const Vtx scuttlebug_seg6_vertex_06013F28[] = { // 0x06013FC8 - 0x060140F0 const Gfx scuttlebug_seg6_dl_06013FC8[] = { - gsSPLight(&scuttlebug_seg6_lights_06013E10.l, 1), - gsSPLight(&scuttlebug_seg6_lights_06013E10.a, 2), + gsSPLightColor(LIGHT_1, 0xcf8906ff), + gsSPLightColor(LIGHT_2, 0x332201ff), gsSPVertex(scuttlebug_seg6_vertex_06013E28, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 4, 6, 0x0), @@ -382,10 +370,6 @@ const Gfx scuttlebug_seg6_dl_06014270[] = { }; // 0x060142E0 -static const Lights1 scuttlebug_seg6_lights_060142E0 = gdSPDefLights1( - 0x26, 0x05, 0x05, - 0x99, 0x16, 0x16, 0x28, 0x28, 0x28 -); // 0x060142F8 static const Vtx scuttlebug_seg6_vertex_060142F8[] = { @@ -397,8 +381,8 @@ static const Vtx scuttlebug_seg6_vertex_060142F8[] = { // 0x06014338 - 0x06014378 const Gfx scuttlebug_seg6_dl_06014338[] = { - gsSPLight(&scuttlebug_seg6_lights_060142E0.l, 1), - gsSPLight(&scuttlebug_seg6_lights_060142E0.a, 2), + gsSPLightColor(LIGHT_1, 0x991616ff), + gsSPLightColor(LIGHT_2, 0x260505ff), gsSPVertex(scuttlebug_seg6_vertex_060142F8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), gsSP2Triangles( 2, 3, 0, 0x0, 1, 0, 3, 0x0), diff --git a/actors/seaweed/model.inc.c b/actors/seaweed/model.inc.c index c3c074c5..e379b7fc 100644 --- a/actors/seaweed/model.inc.c +++ b/actors/seaweed/model.inc.c @@ -1,10 +1,6 @@ // Seaweed // 0x06007DF8 -static const Lights1 seaweed_seg6_lights_06007DF8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06007E10 ALIGNED8 static const Texture seaweed_seg6_texture_06007E10[] = { @@ -39,8 +35,8 @@ const Gfx seaweed_seg6_dl_06009E50[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, seaweed_seg6_texture_06007E10), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&seaweed_seg6_lights_06007DF8.l, 1), - gsSPLight(&seaweed_seg6_lights_06007DF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(seaweed_seg6_vertex_06009E10, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -77,8 +73,8 @@ const Gfx seaweed_seg6_dl_06009F48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, seaweed_seg6_texture_06008610), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&seaweed_seg6_lights_06007DF8.l, 1), - gsSPLight(&seaweed_seg6_lights_06007DF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(seaweed_seg6_vertex_06009F08, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -115,8 +111,8 @@ const Gfx seaweed_seg6_dl_0600A040[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, seaweed_seg6_texture_06008E10), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&seaweed_seg6_lights_06007DF8.l, 1), - gsSPLight(&seaweed_seg6_lights_06007DF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(seaweed_seg6_vertex_0600A000, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -153,8 +149,8 @@ const Gfx seaweed_seg6_dl_0600A138[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, seaweed_seg6_texture_06009610), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&seaweed_seg6_lights_06007DF8.l, 1), - gsSPLight(&seaweed_seg6_lights_06007DF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(seaweed_seg6_vertex_0600A0F8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/actors/skeeter/model.inc.c b/actors/skeeter/model.inc.c index 104b3a31..eab70ed8 100644 --- a/actors/skeeter/model.inc.c +++ b/actors/skeeter/model.inc.c @@ -1,40 +1,16 @@ // Skeeter // Unreferenced light group -UNUSED static const Lights1 skeeter_lights_unused1 = gdSPDefLights1( - 0x3f, 0x20, 0x02, - 0xfc, 0x80, 0x08, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 skeeter_lights_unused2 = gdSPDefLights1( - 0x05, 0x05, 0x02, - 0x15, 0x15, 0x08, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 skeeter_lights_unused3 = gdSPDefLights1( - 0x03, 0x10, 0x29, - 0x0e, 0x40, 0xa4, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 skeeter_lights_unused4 = gdSPDefLights1( - 0x3b, 0x3a, 0x36, - 0xef, 0xea, 0xd9, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 skeeter_lights_unused5 = gdSPDefLights1( - 0x33, 0x0c, 0x00, - 0xcf, 0x32, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 skeeter_lights_unused6 = gdSPDefLights1( - 0x10, 0x29, 0x20, - 0x42, 0xa5, 0x81, 0x28, 0x28, 0x28 -); // 0x06000090 ALIGNED8 static const Texture skeeter_seg6_texture_06000090[] = { @@ -225,10 +201,6 @@ const Gfx skeeter_seg6_dl_06000D78[] = { }; // 0x06000DE8 -static const Lights1 skeeter_seg6_lights_06000DE8 = gdSPDefLights1( - 0x7f, 0x55, 0x00, - 0xff, 0xaa, 0x00, 0x28, 0x28, 0x28 -); // 0x06000E00 static const Vtx skeeter_seg6_vertex_06000E00[] = { @@ -242,8 +214,8 @@ static const Vtx skeeter_seg6_vertex_06000E00[] = { // 0x06000E60 - 0x06000EC0 const Gfx skeeter_seg6_dl_06000E60[] = { - gsSPLight(&skeeter_seg6_lights_06000DE8.l, 1), - gsSPLight(&skeeter_seg6_lights_06000DE8.a, 2), + gsSPLightColor(LIGHT_1, 0xffaa00ff), + gsSPLightColor(LIGHT_2, 0x7f5500ff), gsSPVertex(skeeter_seg6_vertex_06000E00, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 1, 3, 4, 0x0), diff --git a/actors/small_key/model.inc.c b/actors/small_key/model.inc.c index d6493eb7..f378fed8 100644 --- a/actors/small_key/model.inc.c +++ b/actors/small_key/model.inc.c @@ -4,28 +4,12 @@ UNUSED static const u64 small_key_unused_1 = 0; // 0x05005798 -static const Lights1 small_key_seg5_lights_05005798 = gdSPDefLights1( - 0x3f, 0x19, 0x0c, - 0xff, 0x64, 0x32, 0x28, 0x28, 0x28 -); // 0x050057B0 -static const Lights1 small_key_seg5_lights_050057B0 = gdSPDefLights1( - 0x0c, 0x3f, 0x19, - 0x32, 0xff, 0x64, 0x28, 0x28, 0x28 -); // 0x050057C8 -static const Lights1 small_key_seg5_lights_050057C8 = gdSPDefLights1( - 0x0c, 0x19, 0x3f, - 0x32, 0x64, 0xff, 0x28, 0x28, 0x28 -); // 0x050057E0 -static const Lights1 small_key_seg5_lights_050057E0 = gdSPDefLights1( - 0x33, 0x3f, 0x00, - 0xcc, 0xff, 0x00, 0x28, 0x28, 0x28 -); // align UNUSED static const u64 small_key_unused_2 = 0; @@ -404,24 +388,28 @@ const Gfx small_key_seg5_dl_05006700[] = { // 0x05006A08 - 0x05006A28 const Gfx small_key_seg5_dl_05006A08[] = { - gsSPSetLights1(small_key_seg5_lights_050057C8), + gsSPLightColor(LIGHT_1, 0x3264ffff), + gsSPLightColor(LIGHT_2, 0xc193fff), gsSPBranchList(small_key_seg5_dl_05006700), }; // 0x05006A28 - 0x05006A48 const Gfx small_key_seg5_dl_05006A28[] = { - gsSPSetLights1(small_key_seg5_lights_050057B0), + gsSPLightColor(LIGHT_1, 0x32ff64ff), + gsSPLightColor(LIGHT_2, 0xc3f19ff), gsSPBranchList(small_key_seg5_dl_05006700), }; // 0x05006A48 - 0x05006A68 const Gfx small_key_seg5_dl_05006A48[] = { - gsSPSetLights1(small_key_seg5_lights_05005798), + gsSPLightColor(LIGHT_1, 0xff6432ff), + gsSPLightColor(LIGHT_2, 0x3f190cff), gsSPBranchList(small_key_seg5_dl_05006700), }; // 0x05006A68 - 0x05006A88 const Gfx small_key_seg5_dl_05006A68[] = { - gsSPSetLights1(small_key_seg5_lights_050057E0), + gsSPLightColor(LIGHT_1, 0xccff00ff), + gsSPLightColor(LIGHT_2, 0x333f00ff), gsSPBranchList(small_key_seg5_dl_05006700), }; diff --git a/actors/snowman/model.inc.c b/actors/snowman/model.inc.c index ada671f0..e8ae8c76 100644 --- a/actors/snowman/model.inc.c +++ b/actors/snowman/model.inc.c @@ -4,28 +4,12 @@ UNUSED static const u64 snowman_unused_1 = 1; // Unreferenced light group -UNUSED static const Lights1 snowman_lights_unused1 = gdSPDefLights1( - 0x0d, 0x0c, 0x28, - 0x35, 0x32, 0xa2, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 snowman_lights_unused2 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 snowman_lights_unused3 = gdSPDefLights1( - 0x08, 0x07, 0x04, - 0x23, 0x1c, 0x12, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 snowman_lights_unused4 = gdSPDefLights1( - 0x03, 0x03, 0x02, - 0x0e, 0x0d, 0x0b, 0x28, 0x28, 0x28 -); // 0x05008C70 ALIGNED8 static const Texture snowman_seg5_texture_05008C70[] = { @@ -53,10 +37,6 @@ ALIGNED8 static const Texture snowman_seg5_texture_0500BC70[] = { }; // 0x0500C470 -static const Lights1 snowman_seg5_lights_0500C470 = gdSPDefLights1( - 0x1c, 0x0f, 0x07, - 0x38, 0x1e, 0x0e, 0x28, 0x28, 0x28 -); // 0x0500C488 static const Vtx snowman_seg5_vertex_0500C488[] = { @@ -68,8 +48,8 @@ static const Vtx snowman_seg5_vertex_0500C488[] = { // 0x0500C4C8 - 0x0500C500 const Gfx snowman_seg5_dl_0500C4C8[] = { - gsSPLight(&snowman_seg5_lights_0500C470.l, 1), - gsSPLight(&snowman_seg5_lights_0500C470.a, 2), + gsSPLightColor(LIGHT_1, 0x381e0eff), + gsSPLightColor(LIGHT_2, 0x1c0f07ff), gsSPVertex(snowman_seg5_vertex_0500C488, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP1Triangle( 0, 3, 1, 0x0), @@ -183,10 +163,6 @@ const Gfx snowman_seg5_dl_0500C760[] = { }; // 0x0500C7D0 -static const Lights1 snowman_seg5_lights_0500C7D0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C7E8 static const Vtx snowman_seg5_vertex_0500C7E8[] = { @@ -226,8 +202,8 @@ const Gfx snowman_seg5_dl_0500C978[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snowman_seg5_texture_05008C70), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&snowman_seg5_lights_0500C7D0.l, 1), - gsSPLight(&snowman_seg5_lights_0500C7D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(snowman_seg5_vertex_0500C7E8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 4, 1, 0, 0x0, 5, 4, 3, 0x0), diff --git a/actors/snufit/model.inc.c b/actors/snufit/model.inc.c index 0a4ea3b2..39bbc63b 100644 --- a/actors/snufit/model.inc.c +++ b/actors/snufit/model.inc.c @@ -21,16 +21,8 @@ ALIGNED8 static const Texture snufit_seg6_texture_060084E0[] = { }; // 0x06008CE0 -static const Lights1 snufit_seg6_lights_06008CE0 = gdSPDefLights1( - 0x47, 0x47, 0x47, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x06008CF8 -static const Lights1 snufit_seg6_lights_06008CF8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06008D10 static const Vtx snufit_seg6_vertex_06008D10[] = { @@ -138,8 +130,8 @@ const Gfx snufit_seg6_dl_060091E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snufit_seg6_texture_060080E0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&snufit_seg6_lights_06008CE0.l, 1), - gsSPLight(&snufit_seg6_lights_06008CE0.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x474747ff), gsSPVertex(snufit_seg6_vertex_06008D10, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 0, 2, 0x0, 3, 5, 1, 0x0), @@ -155,8 +147,8 @@ const Gfx snufit_seg6_dl_06009278[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snufit_seg6_texture_060078E0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&snufit_seg6_lights_06008CF8.l, 1), - gsSPLight(&snufit_seg6_lights_06008CF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(snufit_seg6_vertex_06008DF0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 4, 3, 5, 0x0), @@ -223,10 +215,6 @@ const Gfx snufit_seg6_dl_06009498[] = { }; // 0x06009530 -static const Lights1 snufit_seg6_lights_06009530 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06009548 static const Vtx snufit_seg6_vertex_06009548[] = { @@ -259,8 +247,8 @@ const Gfx snufit_seg6_dl_06009668[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snufit_seg6_texture_060080E0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&snufit_seg6_lights_06009530.l, 1), - gsSPLight(&snufit_seg6_lights_06009530.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(snufit_seg6_vertex_06009548, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 1, 5, 2, 0x0), @@ -303,10 +291,6 @@ const Gfx snufit_seg6_dl_06009748[] = { }; // 0x060097C8 -static const Lights1 snufit_seg6_lights_060097C8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x060097E0 static const Vtx snufit_seg6_vertex_060097E0[] = { @@ -329,8 +313,8 @@ const Gfx snufit_seg6_dl_060098A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snufit_seg6_texture_060080E0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&snufit_seg6_lights_060097C8.l, 1), - gsSPLight(&snufit_seg6_lights_060097C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(snufit_seg6_vertex_060097E0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 3, 5, 6, 0x0), @@ -394,10 +378,6 @@ const Gfx snufit_seg6_dl_06009A10[] = { }; // 0x06009A80 -static const Lights1 snufit_seg6_lights_06009A80 = gdSPDefLights1( - 0x65, 0x08, 0x08, - 0xfe, 0x14, 0x14, 0x28, 0x28, 0x28 -); // 0x06009A98 static const Vtx snufit_seg6_vertex_06009A98[] = { @@ -413,8 +393,8 @@ static const Vtx snufit_seg6_vertex_06009A98[] = { // 0x06009B18 - 0x06009B68 const Gfx snufit_seg6_dl_06009B18[] = { - gsSPLight(&snufit_seg6_lights_06009A80.l, 1), - gsSPLight(&snufit_seg6_lights_06009A80.a, 2), + gsSPLightColor(LIGHT_1, 0xfe1414ff), + gsSPLightColor(LIGHT_2, 0x650808ff), gsSPVertex(snufit_seg6_vertex_06009A98, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 1, 0, 3, 0x0, 4, 5, 6, 0x0), diff --git a/actors/spindrift/model.inc.c b/actors/spindrift/model.inc.c index 4675f7da..44660e79 100644 --- a/actors/spindrift/model.inc.c +++ b/actors/spindrift/model.inc.c @@ -128,10 +128,6 @@ const Gfx spindrift_seg5_dl_05002900[] = { }; // 0x05002970 -static const Lights1 spindrift_seg5_lights_05002970 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05002988 static const Vtx spindrift_seg5_vertex_05002988[] = { @@ -147,8 +143,8 @@ const Gfx spindrift_seg5_dl_050029C8[] = { gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&spindrift_seg5_lights_05002970.l, 1), - gsSPLight(&spindrift_seg5_lights_05002970.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(spindrift_seg5_vertex_05002988, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPSetGeometryMode(G_CULL_BACK), @@ -172,10 +168,6 @@ const Gfx spindrift_seg5_dl_05002A20[] = { }; // 0x05002A80 -static const Lights1 spindrift_seg5_lights_05002A80 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05002A98 static const Vtx spindrift_seg5_vertex_05002A98[] = { @@ -191,8 +183,8 @@ const Gfx spindrift_seg5_dl_05002AD8[] = { gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&spindrift_seg5_lights_05002A80.l, 1), - gsSPLight(&spindrift_seg5_lights_05002A80.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(spindrift_seg5_vertex_05002A98, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPSetGeometryMode(G_CULL_BACK), @@ -216,10 +208,6 @@ const Gfx spindrift_seg5_dl_05002B30[] = { }; // 0x05002B90 -static const Lights1 spindrift_seg5_lights_05002B90 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05002BA8 static const Vtx spindrift_seg5_vertex_05002BA8[] = { @@ -246,8 +234,8 @@ const Gfx spindrift_seg5_dl_05002C98[] = { gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&spindrift_seg5_lights_05002B90.l, 1), - gsSPLight(&spindrift_seg5_lights_05002B90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(spindrift_seg5_vertex_05002BA8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -273,28 +261,12 @@ const Gfx spindrift_seg5_dl_05002D08[] = { }; // 0x05000030 -static const Lights1 spindrift_seg5_lights_05000030 = gdSPDefLights1( - 0x12, 0x2c, 0x00, - 0x49, 0xb2, 0x00, 0x28, 0x28, 0x28 -); // 0x05000048 -static const Lights1 spindrift_seg5_lights_05000048 = gdSPDefLights1( - 0x37, 0x3f, 0x00, - 0xdd, 0xff, 0x01, 0x28, 0x28, 0x28 -); // 0x05000078 -static const Lights1 spindrift_seg5_lights_05000078 = gdSPDefLights1( - 0x3f, 0x38, 0x00, - 0xff, 0xe2, 0x00, 0x28, 0x28, 0x28 -); // 0x05000090 -static const Lights1 spindrift_seg5_lights_05000090 = gdSPDefLights1( - 0x00, 0x0f, 0x00, - 0x00, 0x3f, 0x00, 0x28, 0x28, 0x28 -); // 0x050000C0 static const Vtx spindrift_seg5_vertex_050000C0[] = { @@ -344,14 +316,14 @@ static const Vtx spindrift_seg5_vertex_05000210[] = { // 0x050002A0 - 0x05000328 const Gfx spindrift_seg5_dl_050002A0[] = { - gsSPLight(&spindrift_seg5_lights_05000048.l, 1), - gsSPLight(&spindrift_seg5_lights_05000048.a, 2), + gsSPLightColor(LIGHT_1, 0xddff01ff), + gsSPLightColor(LIGHT_2, 0x373f00ff), gsSPVertex(spindrift_seg5_vertex_050000C0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0), gsSP2Triangles( 1, 3, 2, 0x0, 4, 5, 2, 0x0), gsSP1Triangle( 5, 0, 2, 0x0), - gsSPLight(&spindrift_seg5_lights_05000030.l, 1), - gsSPLight(&spindrift_seg5_lights_05000030.a, 2), + gsSPLightColor(LIGHT_1, 0x49b200ff), + gsSPLightColor(LIGHT_2, 0x122c00ff), gsSPVertex(spindrift_seg5_vertex_05000120, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 1, 0, 4, 0x0, 4, 0, 5, 0x0), @@ -362,15 +334,15 @@ const Gfx spindrift_seg5_dl_050002A0[] = { // 0x05000328 - 0x050003D8 const Gfx spindrift_seg5_dl_05000328[] = { gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&spindrift_seg5_lights_05000090.l, 1), - gsSPLight(&spindrift_seg5_lights_05000090.a, 2), + gsSPLightColor(LIGHT_1, 0x3f00ff), + gsSPLightColor(LIGHT_2, 0xf00ff), gsSPVertex(spindrift_seg5_vertex_05000180, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 1, 5, 6, 0x0), gsSP2Triangles( 7, 4, 0, 0x0, 5, 4, 8, 0x0), gsSP2Triangles( 5, 1, 3, 0x0, 4, 5, 3, 0x0), - gsSPLight(&spindrift_seg5_lights_05000078.l, 1), - gsSPLight(&spindrift_seg5_lights_05000078.a, 2), + gsSPLightColor(LIGHT_1, 0xffe200ff), + gsSPLightColor(LIGHT_2, 0x3f3800ff), gsSPVertex(spindrift_seg5_vertex_05000210, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 1, 5, 6, 0x0, 5, 7, 8, 0x0), diff --git a/actors/spiny/model.inc.c b/actors/spiny/model.inc.c index b03daf13..94504f4e 100644 --- a/actors/spiny/model.inc.c +++ b/actors/spiny/model.inc.c @@ -1,40 +1,16 @@ // Spiny // 0x050157F8 -static const Lights1 spiny_seg5_lights_050157F8 = gdSPDefLights1( - 0x32, 0x23, 0x0a, - 0xca, 0x8d, 0x29, 0x28, 0x28, 0x28 -); // 0x05015810 -static const Lights1 spiny_seg5_lights_05015810 = gdSPDefLights1( - 0x3a, 0x2c, 0x1f, - 0xeb, 0xb0, 0x7f, 0x28, 0x28, 0x28 -); // 0x05015828 -static const Lights1 spiny_seg5_lights_05015828 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // 0x05015840 -static const Lights1 spiny_seg5_lights_05015840 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05015858 -static const Lights1 spiny_seg5_lights_05015858 = gdSPDefLights1( - 0x3d, 0x25, 0x01, - 0xf4, 0x96, 0x07, 0x28, 0x28, 0x28 -); // 0x05015870 -static const Lights1 spiny_seg5_lights_05015870 = gdSPDefLights1( - 0x3c, 0x2c, 0x09, - 0xf1, 0xb2, 0x25, 0x28, 0x28, 0x28 -); // 0x05015888 static const Vtx spiny_seg5_vertex_05015888[] = { @@ -287,8 +263,8 @@ static const Vtx spiny_seg5_vertex_05016328[] = { // 0x05016418 - 0x050164E0 const Gfx spiny_seg5_dl_05016418[] = { - gsSPLight(&spiny_seg5_lights_050157F8.l, 1), - gsSPLight(&spiny_seg5_lights_050157F8.a, 2), + gsSPLightColor(LIGHT_1, 0xca8d29ff), + gsSPLightColor(LIGHT_2, 0x32230aff), gsSPVertex(spiny_seg5_vertex_05015888, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 7, 0x0, 8, 7, 9, 0x0), @@ -297,8 +273,8 @@ const Gfx spiny_seg5_dl_05016418[] = { gsSP2Triangles( 3, 5, 11, 0x0, 11, 5, 0, 0x0), gsSP2Triangles( 7, 8, 3, 0x0, 9, 12, 8, 0x0), gsSP2Triangles( 9, 2, 1, 0x0, 2, 10, 0, 0x0), - gsSPLight(&spiny_seg5_lights_05015810.l, 1), - gsSPLight(&spiny_seg5_lights_05015810.a, 2), + gsSPLightColor(LIGHT_1, 0xebb07fff), + gsSPLightColor(LIGHT_2, 0x3a2c1fff), gsSPVertex(spiny_seg5_vertex_05015958, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 3, 4, 0, 0x0, 1, 5, 2, 0x0), @@ -307,8 +283,8 @@ const Gfx spiny_seg5_dl_05016418[] = { // 0x050164E0 - 0x050165A8 const Gfx spiny_seg5_dl_050164E0[] = { - gsSPLight(&spiny_seg5_lights_050157F8.l, 1), - gsSPLight(&spiny_seg5_lights_050157F8.a, 2), + gsSPLightColor(LIGHT_1, 0xca8d29ff), + gsSPLightColor(LIGHT_2, 0x32230aff), gsSPVertex(spiny_seg5_vertex_050159B8, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 7, 0x0, 8, 7, 9, 0x0), @@ -317,8 +293,8 @@ const Gfx spiny_seg5_dl_050164E0[] = { gsSP2Triangles( 3, 5, 11, 0x0, 11, 5, 0, 0x0), gsSP2Triangles( 7, 8, 3, 0x0, 9, 12, 8, 0x0), gsSP2Triangles( 9, 2, 1, 0x0, 2, 10, 0, 0x0), - gsSPLight(&spiny_seg5_lights_05015810.l, 1), - gsSPLight(&spiny_seg5_lights_05015810.a, 2), + gsSPLightColor(LIGHT_1, 0xebb07fff), + gsSPLightColor(LIGHT_2, 0x3a2c1fff), gsSPVertex(spiny_seg5_vertex_05015A88, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 3, 4, 0, 0x0, 1, 5, 2, 0x0), @@ -327,8 +303,8 @@ const Gfx spiny_seg5_dl_050164E0[] = { // 0x050165A8 - 0x05016670 const Gfx spiny_seg5_dl_050165A8[] = { - gsSPLight(&spiny_seg5_lights_050157F8.l, 1), - gsSPLight(&spiny_seg5_lights_050157F8.a, 2), + gsSPLightColor(LIGHT_1, 0xca8d29ff), + gsSPLightColor(LIGHT_2, 0x32230aff), gsSPVertex(spiny_seg5_vertex_05015AE8, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 5, 0x0, 8, 6, 9, 0x0), @@ -337,8 +313,8 @@ const Gfx spiny_seg5_dl_050165A8[] = { gsSP2Triangles(10, 3, 5, 0x0, 2, 3, 10, 0x0), gsSP2Triangles( 5, 9, 6, 0x0, 9, 12, 8, 0x0), gsSP2Triangles( 1, 0, 8, 0x0, 2, 11, 0, 0x0), - gsSPLight(&spiny_seg5_lights_05015810.l, 1), - gsSPLight(&spiny_seg5_lights_05015810.a, 2), + gsSPLightColor(LIGHT_1, 0xebb07fff), + gsSPLightColor(LIGHT_2, 0x3a2c1fff), gsSPVertex(spiny_seg5_vertex_05015BB8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 0, 5, 1, 0x0), @@ -347,8 +323,8 @@ const Gfx spiny_seg5_dl_050165A8[] = { // 0x05016670 - 0x05016738 const Gfx spiny_seg5_dl_05016670[] = { - gsSPLight(&spiny_seg5_lights_050157F8.l, 1), - gsSPLight(&spiny_seg5_lights_050157F8.a, 2), + gsSPLightColor(LIGHT_1, 0xca8d29ff), + gsSPLightColor(LIGHT_2, 0x32230aff), gsSPVertex(spiny_seg5_vertex_05015C18, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 5, 0x0, 8, 6, 9, 0x0), @@ -357,8 +333,8 @@ const Gfx spiny_seg5_dl_05016670[] = { gsSP2Triangles(10, 3, 5, 0x0, 2, 3, 10, 0x0), gsSP2Triangles( 5, 9, 6, 0x0, 9, 12, 8, 0x0), gsSP2Triangles( 1, 0, 8, 0x0, 2, 11, 0, 0x0), - gsSPLight(&spiny_seg5_lights_05015810.l, 1), - gsSPLight(&spiny_seg5_lights_05015810.a, 2), + gsSPLightColor(LIGHT_1, 0xebb07fff), + gsSPLightColor(LIGHT_2, 0x3a2c1fff), gsSPVertex(spiny_seg5_vertex_05015CE8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 0, 5, 1, 0x0), @@ -367,8 +343,8 @@ const Gfx spiny_seg5_dl_05016670[] = { // 0x05016738 - 0x05016A48 const Gfx spiny_seg5_dl_05016738[] = { - gsSPLight(&spiny_seg5_lights_05015828.l, 1), - gsSPLight(&spiny_seg5_lights_05015828.a, 2), + gsSPLightColor(LIGHT_1, 0xb2b2b2ff), + gsSPLightColor(LIGHT_2, 0x2c2c2cff), gsSPVertex(spiny_seg5_vertex_05015D48, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 3, 4, 2, 0x0, 1, 0, 5, 0x0), @@ -389,8 +365,8 @@ const Gfx spiny_seg5_dl_05016738[] = { gsSPVertex(spiny_seg5_vertex_05015F48, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 5, 2, 4, 0x0, 4, 2, 1, 0x0), - gsSPLight(&spiny_seg5_lights_05015858.l, 1), - gsSPLight(&spiny_seg5_lights_05015858.a, 2), + gsSPLightColor(LIGHT_1, 0xf49607ff), + gsSPLightColor(LIGHT_2, 0x3d2501ff), gsSPVertex(spiny_seg5_vertex_05015FA8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 5, 6, 7, 0x0), @@ -402,8 +378,8 @@ const Gfx spiny_seg5_dl_05016738[] = { gsSP2Triangles( 0, 9, 10, 0x0, 0, 10, 1, 0x0), gsSP2Triangles( 6, 5, 0, 0x0, 15, 10, 13, 0x0), gsSP2Triangles( 3, 1, 15, 0x0, 10, 15, 1, 0x0), - gsSPLight(&spiny_seg5_lights_05015840.l, 1), - gsSPLight(&spiny_seg5_lights_05015840.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x3f0000ff), gsSPVertex(spiny_seg5_vertex_050160A8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 0, 8, 1, 0x0), @@ -411,8 +387,8 @@ const Gfx spiny_seg5_dl_05016738[] = { gsSP2Triangles( 3, 5, 9, 0x0, 1, 8, 7, 0x0), gsSP2Triangles( 3, 9, 2, 0x0, 3, 7, 4, 0x0), gsSP2Triangles( 4, 7, 6, 0x0, 4, 6, 5, 0x0), - gsSPLight(&spiny_seg5_lights_05015870.l, 1), - gsSPLight(&spiny_seg5_lights_05015870.a, 2), + gsSPLightColor(LIGHT_1, 0xf1b225ff), + gsSPLightColor(LIGHT_2, 0x3c2c09ff), gsSPVertex(spiny_seg5_vertex_05016148, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/spiny_egg/model.inc.c b/actors/spiny_egg/model.inc.c index ddab31bb..75ac3749 100644 --- a/actors/spiny_egg/model.inc.c +++ b/actors/spiny_egg/model.inc.c @@ -1,16 +1,8 @@ // Spiny Egg // 0x050144F8 -static const Lights1 spiny_egg_seg5_lights_050144F8 = gdSPDefLights1( - 0x3f, 0x3f, 0x00, - 0xff, 0xff, 0x00, 0x28, 0x28, 0x28 -); // 0x05014510 -static const Lights1 spiny_egg_seg5_lights_05014510 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x05014528 static const Vtx spiny_egg_seg5_vertex_05014528[] = { @@ -278,8 +270,8 @@ static const Vtx spiny_egg_seg5_vertex_050150A8[] = { // 0x050151A8 - 0x050151E0 const Gfx spiny_egg_seg5_dl_050151A8[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_05014528, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -288,8 +280,8 @@ const Gfx spiny_egg_seg5_dl_050151A8[] = { // 0x050151E0 - 0x05015218 const Gfx spiny_egg_seg5_dl_050151E0[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_050145B8, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -298,8 +290,8 @@ const Gfx spiny_egg_seg5_dl_050151E0[] = { // 0x05015218 - 0x05015250 const Gfx spiny_egg_seg5_dl_05015218[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_05014648, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -308,8 +300,8 @@ const Gfx spiny_egg_seg5_dl_05015218[] = { // 0x05015250 - 0x05015288 const Gfx spiny_egg_seg5_dl_05015250[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_050146D8, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -318,8 +310,8 @@ const Gfx spiny_egg_seg5_dl_05015250[] = { // 0x05015288 - 0x050152C0 const Gfx spiny_egg_seg5_dl_05015288[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_05014768, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -328,8 +320,8 @@ const Gfx spiny_egg_seg5_dl_05015288[] = { // 0x050152C0 - 0x050152F8 const Gfx spiny_egg_seg5_dl_050152C0[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_050147F8, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -338,8 +330,8 @@ const Gfx spiny_egg_seg5_dl_050152C0[] = { // 0x050152F8 - 0x05015330 const Gfx spiny_egg_seg5_dl_050152F8[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_05014888, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -348,8 +340,8 @@ const Gfx spiny_egg_seg5_dl_050152F8[] = { // 0x05015330 - 0x05015368 const Gfx spiny_egg_seg5_dl_05015330[] = { - gsSPLight(&spiny_egg_seg5_lights_050144F8.l, 1), - gsSPLight(&spiny_egg_seg5_lights_050144F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x3f3f00ff), gsSPVertex(spiny_egg_seg5_vertex_05014918, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), @@ -358,8 +350,8 @@ const Gfx spiny_egg_seg5_dl_05015330[] = { // 0x05015368 - 0x05015740 const Gfx spiny_egg_seg5_dl_05015368[] = { - gsSPLight(&spiny_egg_seg5_lights_05014510.l, 1), - gsSPLight(&spiny_egg_seg5_lights_05014510.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x3f0000ff), gsSPVertex(spiny_egg_seg5_vertex_050149A8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 4, 3, 5, 0x0), diff --git a/actors/springboard/model.inc.c b/actors/springboard/model.inc.c index 61a7a06c..675de04c 100644 --- a/actors/springboard/model.inc.c +++ b/actors/springboard/model.inc.c @@ -1,10 +1,6 @@ // Springboard (unused) // 0x05000000 -static const Lights1 springboard_seg5_lights_05000000 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05000018 ALIGNED8 static const Texture springboard_seg5_texture_05000018[] = { @@ -167,8 +163,8 @@ const Gfx springboard_checkerboard_seg5_dl_050016B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, springboard_seg5_texture_05000018), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&springboard_seg5_lights_05000000.l, 1), - gsSPLight(&springboard_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(springboard_seg5_vertex_05001018, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), @@ -203,8 +199,8 @@ const Gfx springboard_spring_seg5_dl_05001800[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, springboard_seg5_texture_05000818), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&springboard_seg5_lights_05000000.l, 1), - gsSPLight(&springboard_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(springboard_seg5_vertex_050012B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -234,8 +230,8 @@ const Gfx springboard_checkerboard_seg5_dl_05001900[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, springboard_seg5_texture_05000018), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&springboard_seg5_lights_05000000.l, 1), - gsSPLight(&springboard_seg5_lights_05000000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(springboard_seg5_vertex_05001458, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), diff --git a/actors/star/model.inc.c b/actors/star/model.inc.c index 8ead89af..096a38a9 100644 --- a/actors/star/model.inc.c +++ b/actors/star/model.inc.c @@ -1,10 +1,6 @@ // Star // 0x0302A6D8 -static const Lights1 star_seg3_lights = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0302A6F0 ALIGNED8 static const Texture star_seg3_texture_0302A6F0[] = { @@ -34,8 +30,8 @@ static const Vtx star_seg3_vertex_body[] = { // 0x0302B7B0 - 0x0302B870 const Gfx star_seg3_sub_dl_body[] = { - gsSPLight(&star_seg3_lights.l, 1), - gsSPLight(&star_seg3_lights.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(star_seg3_vertex_body, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 1, 3, 4, 0x0), @@ -86,8 +82,8 @@ const Gfx star_seg3_sub_dl_eyes[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, star_seg3_texture_0302AEF0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&star_seg3_lights.l, 1), - gsSPLight(&star_seg3_lights.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(star_seg3_vertex_eyes, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/actors/swoop/model.inc.c b/actors/swoop/model.inc.c index d1a3a29c..f7a58ce6 100644 --- a/actors/swoop/model.inc.c +++ b/actors/swoop/model.inc.c @@ -1,16 +1,8 @@ // Swoop // Unreferenced light group -UNUSED static const Lights1 swoop_lights_unused1 = gdSPDefLights1( - 0x0a, 0x00, 0x25, - 0x2a, 0x00, 0x95, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 swoop_lights_unused2 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06004270 ALIGNED8 static const Texture swoop_seg6_texture_06004270[] = { @@ -33,10 +25,6 @@ ALIGNED8 static const Texture swoop_seg6_texture_06005A70[] = { }; // 0x06006270 -static const Lights1 swoop_seg6_lights_06006270 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06006288 static const Vtx swoop_seg6_vertex_06006288[] = { @@ -110,8 +98,8 @@ const Gfx swoop_seg6_dl_060065B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, swoop_seg6_texture_06004A70), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&swoop_seg6_lights_06006270.l, 1), - gsSPLight(&swoop_seg6_lights_06006270.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(swoop_seg6_vertex_06006288, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 3, 7, 4, 0x0), @@ -219,10 +207,6 @@ const Gfx swoop_seg6_dl_06006880[] = { }; // 0x06006938 -static const Lights1 swoop_seg6_lights_06006938 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06006950 static const Vtx swoop_seg6_vertex_06006950[] = { @@ -249,8 +233,8 @@ const Gfx swoop_seg6_dl_06006A10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, swoop_seg6_texture_06005270), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&swoop_seg6_lights_06006938.l, 1), - gsSPLight(&swoop_seg6_lights_06006938.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(swoop_seg6_vertex_06006950, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/actors/test_platform/model.inc.c b/actors/test_platform/model.inc.c index b0111608..76bca485 100644 --- a/actors/test_platform/model.inc.c +++ b/actors/test_platform/model.inc.c @@ -1,10 +1,6 @@ // Test Platform (small tiny platform 1/4th the size of a box. Probably used in early modeling tests?) // 0x08026008 -static const Lights1 unknown_seg8_lights_08026008 = gdSPDefLights1( - 0x32, 0x32, 0x07, - 0xc8, 0xc8, 0x1e, 0x28, 0x28, 0x28 -); // 0x08026020 static const Vtx unknown_seg8_vertex_08026020[] = { @@ -56,7 +52,8 @@ static const Vtx unknown_seg8_vertex_08026200[] = { // 0x08026260 - 0x080262F8 const Gfx unknown_seg8_dl_08026260[] = { - gsSPSetLights1(unknown_seg8_lights_08026008), + gsSPLightColor(LIGHT_1, 0xc8c81eff), + gsSPLightColor(LIGHT_2, 0x323207ff), gsSPVertex(unknown_seg8_vertex_08026020, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/thwomp/model.inc.c b/actors/thwomp/model.inc.c index 2dee226e..7e72ec17 100644 --- a/actors/thwomp/model.inc.c +++ b/actors/thwomp/model.inc.c @@ -1,10 +1,6 @@ // Thwomp // 0x050098E8 -static const Lights1 thwomp_seg5_lights_050098E8 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x05009900 ALIGNED8 static const Texture thwomp_seg5_texture_05009900[] = { @@ -116,8 +112,8 @@ const Gfx thwomp_seg5_dl_0500B570[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, thwomp_seg5_texture_0500A900), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thwomp_seg5_lights_050098E8.l, 1), - gsSPLight(&thwomp_seg5_lights_050098E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thwomp_seg5_vertex_0500B100, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 0, 4, 5, 0x0), diff --git a/actors/toad/model.inc.c b/actors/toad/model.inc.c index b9c0ddd3..714019e9 100644 --- a/actors/toad/model.inc.c +++ b/actors/toad/model.inc.c @@ -1,10 +1,6 @@ // Toad // 0x06005908 -static const Lights1 toad_seg6_lights_06005908 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06005920 ALIGNED8 static const Texture toad_seg6_texture_06005920[] = { @@ -223,8 +219,8 @@ const Gfx toad_seg6_dl_06007300[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, toad_seg6_texture_06005920), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&toad_seg6_lights_06005908.l, 1), - gsSPLight(&toad_seg6_lights_06005908.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(toad_seg6_vertex_06006920, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 2, 4, 0, 0x0, 0, 5, 6, 0x0), @@ -348,10 +344,6 @@ const Gfx toad_seg6_us_dl_06007788[] = { }; // 0x06007788 -static const Lights1 toad_seg6_lights_06007788 = gdSPDefLights1( - 0x21, 0x13, 0x5a, - 0x42, 0x27, 0xb5, 0x28, 0x28, 0x28 -); // 0x060077A0 static const Vtx toad_seg6_vertex_060077A0[] = { @@ -391,8 +383,8 @@ static const Vtx toad_seg6_vertex_060078A0[] = { // 0x06007960 - 0x06007A48 const Gfx toad_seg6_dl_06007960[] = { - gsSPLight(&toad_seg6_lights_06007788.l, 1), - gsSPLight(&toad_seg6_lights_06007788.a, 2), + gsSPLightColor(LIGHT_1, 0x4227b5ff), + gsSPLightColor(LIGHT_2, 0x21135aff), gsSPVertex(toad_seg6_vertex_060077A0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 8, 0x0), @@ -431,16 +423,8 @@ const Gfx toad_seg6_us_dl_06007B00[] = { }; // 0x06007A80 -static const Lights1 toad_seg6_lights_06007A80 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06007A98 -static const Lights1 toad_seg6_lights_06007A98 = gdSPDefLights1( - 0x7f, 0x6a, 0x50, - 0xfe, 0xd5, 0xa1, 0x28, 0x28, 0x28 -); // 0x06007AB0 static const Vtx toad_seg6_vertex_06007AB0[] = { @@ -494,8 +478,8 @@ static const Vtx toad_seg6_vertex_06007C50[] = { // 0x06007D10 - 0x06007EB0 const Gfx toad_seg6_dl_06007D10[] = { - gsSPLight(&toad_seg6_lights_06007A80.l, 1), - gsSPLight(&toad_seg6_lights_06007A80.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(toad_seg6_vertex_06007AB0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 6, 7, 0x0), @@ -514,8 +498,8 @@ const Gfx toad_seg6_dl_06007D10[] = { gsSP2Triangles( 5, 9, 0, 0x0, 0, 9, 1, 0x0), gsSP2Triangles(11, 6, 0, 0x0, 11, 0, 2, 0x0), gsSP1Triangle( 0, 6, 5, 0x0), - gsSPLight(&toad_seg6_lights_06007A98.l, 1), - gsSPLight(&toad_seg6_lights_06007A98.a, 2), + gsSPLightColor(LIGHT_1, 0xfed5a1ff), + gsSPLightColor(LIGHT_2, 0x7f6a50ff), gsSPVertex(toad_seg6_vertex_06007C50, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 2, 1, 0x0, 4, 1, 5, 0x0), @@ -537,10 +521,6 @@ const Gfx toad_seg6_dl_06007EB0[] = { }; // 0x06007ED8 -static const Lights1 toad_seg6_lights_06007ED8 = gdSPDefLights1( - 0x7f, 0x6a, 0x50, - 0xfe, 0xd5, 0xa1, 0x28, 0x28, 0x28 -); // 0x06007EF0 static const Vtx toad_seg6_vertex_06007EF0[] = { @@ -581,8 +561,8 @@ static const Vtx toad_seg6_vertex_06007FF0[] = { // 0x060080C0 - 0x060081F8 const Gfx toad_seg6_dl_060080C0[] = { - gsSPLight(&toad_seg6_lights_06007ED8.l, 1), - gsSPLight(&toad_seg6_lights_06007ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xfed5a1ff), + gsSPLightColor(LIGHT_2, 0x7f6a50ff), gsSPVertex(toad_seg6_vertex_06007EF0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 4, 3, 0, 0x0), @@ -615,10 +595,6 @@ const Gfx toad_seg6_dl_060081F8[] = { }; // 0x06008220 -static const Lights1 toad_seg6_lights_06008220 = gdSPDefLights1( - 0x7f, 0x6a, 0x50, - 0xfe, 0xd5, 0xa1, 0x28, 0x28, 0x28 -); // 0x06008238 static const Vtx toad_seg6_vertex_06008238[] = { @@ -657,8 +633,8 @@ static const Vtx toad_seg6_vertex_06008338[] = { // 0x060083E8 - 0x06008520 const Gfx toad_seg6_dl_060083E8[] = { - gsSPLight(&toad_seg6_lights_06008220.l, 1), - gsSPLight(&toad_seg6_lights_06008220.a, 2), + gsSPLightColor(LIGHT_1, 0xfed5a1ff), + gsSPLightColor(LIGHT_2, 0x7f6a50ff), gsSPVertex(toad_seg6_vertex_06008238, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 5, 1, 0, 0x0, 0, 4, 6, 0x0), @@ -708,10 +684,6 @@ const Gfx toad_seg6_us_dl_06008608[] = { }; // 0x06008560 -static const Lights1 toad_seg6_lights_06008560 = gdSPDefLights1( - 0x34, 0x20, 0x0d, - 0x68, 0x40, 0x1b, 0x28, 0x28, 0x28 -); // 0x06008578 static const Vtx toad_seg6_vertex_06008578[] = { @@ -752,8 +724,8 @@ static const Vtx toad_seg6_vertex_06008678[] = { // 0x06008748 - 0x06008890 const Gfx toad_seg6_dl_06008748[] = { - gsSPLight(&toad_seg6_lights_06008560.l, 1), - gsSPLight(&toad_seg6_lights_06008560.a, 2), + gsSPLightColor(LIGHT_1, 0x68401bff), + gsSPLightColor(LIGHT_2, 0x34200dff), gsSPVertex(toad_seg6_vertex_06008578, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 6, 0x0), @@ -788,10 +760,6 @@ const Gfx toad_seg6_dl_06008890[] = { }; // 0x060088B8 -static const Lights1 toad_seg6_lights_060088B8 = gdSPDefLights1( - 0x34, 0x20, 0x0d, - 0x68, 0x40, 0x1b, 0x28, 0x28, 0x28 -); // 0x060088D0 static const Vtx toad_seg6_vertex_060088D0[] = { @@ -831,8 +799,8 @@ static const Vtx toad_seg6_vertex_060089D0[] = { // 0x06008A90 - 0x06008BD8 const Gfx toad_seg6_dl_06008A90[] = { - gsSPLight(&toad_seg6_lights_060088B8.l, 1), - gsSPLight(&toad_seg6_lights_060088B8.a, 2), + gsSPLightColor(LIGHT_1, 0x68401bff), + gsSPLightColor(LIGHT_2, 0x34200dff), gsSPVertex(toad_seg6_vertex_060088D0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 0, 2, 5, 0x0), diff --git a/actors/tornado/model.inc.c b/actors/tornado/model.inc.c index 42f3dad0..9d92f397 100644 --- a/actors/tornado/model.inc.c +++ b/actors/tornado/model.inc.c @@ -6,10 +6,6 @@ ALIGNED8 static const Texture tornado_seg5_texture_05013128[] = { }; // 0x05014128 -static const Lights1 tornado_seg5_lights_05014128 = gdSPDefLights1( - 0x3b, 0x34, 0x23, - 0xee, 0xd0, 0x8d, 0x28, 0x28, 0x28 -); // 0x05014140 static const Vtx tornado_seg5_vertex_05014140[] = { @@ -81,8 +77,8 @@ const Gfx tornado_seg5_dl_05014450[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, tornado_seg5_texture_05013128), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&tornado_seg5_lights_05014128.l, 1), - gsSPLight(&tornado_seg5_lights_05014128.a, 2), + gsSPLightColor(LIGHT_1, 0xeed08dff), + gsSPLightColor(LIGHT_2, 0x3b3423ff), gsSPVertex(tornado_seg5_vertex_05014140, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 5, 6, 0x0, 0, 6, 1, 0x0), diff --git a/actors/transparent_star/model.inc.c b/actors/transparent_star/model.inc.c index 86b5bdb1..753667c5 100644 --- a/actors/transparent_star/model.inc.c +++ b/actors/transparent_star/model.inc.c @@ -1,10 +1,6 @@ // Transparent Star // 0x0302C488 -static const Lights1 transparent_star_seg3_lights_body = gdSPDefLights1( - 0x03, 0x05, 0x17, - 0x1e, 0x32, 0xe6, 0x28, 0x28, 0x28 -); // 0x0302C4A0 static const Vtx transparent_star_seg3_vertex_body[] = { @@ -24,8 +20,8 @@ static const Vtx transparent_star_seg3_vertex_body[] = { // 0x0302C560 - 0x0302C620 const Gfx transparent_star_seg3_sub_dl_body[] = { - gsSPLight(&transparent_star_seg3_lights_body.l, 1), - gsSPLight(&transparent_star_seg3_lights_body.a, 2), + gsSPLightColor(LIGHT_1, 0x1e32e6ff), + gsSPLightColor(LIGHT_2, 0x30517ff), gsSPVertex(transparent_star_seg3_vertex_body, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 1, 3, 4, 0x0), diff --git a/actors/treasure_chest/model.inc.c b/actors/treasure_chest/model.inc.c index 3b0bb9e4..9b98c1bd 100644 --- a/actors/treasure_chest/model.inc.c +++ b/actors/treasure_chest/model.inc.c @@ -1,10 +1,6 @@ // Treasure Chest // 0x06013F90 -static const Lights1 treasure_chest_seg6_lights_06013F90 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06013FA8 ALIGNED8 static const Texture treasure_chest_seg6_texture_06013FA8[] = { @@ -154,8 +150,8 @@ const Gfx treasure_chest_seg6_dl_06016D58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, treasure_chest_seg6_texture_06013FA8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&treasure_chest_seg6_lights_06013F90.l, 1), - gsSPLight(&treasure_chest_seg6_lights_06013F90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(treasure_chest_seg6_vertex_060167A8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -377,8 +373,8 @@ const Gfx treasure_chest_seg6_dl_06017680[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, treasure_chest_seg6_texture_060147A8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&treasure_chest_seg6_lights_06013F90.l, 1), - gsSPLight(&treasure_chest_seg6_lights_06013F90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(treasure_chest_seg6_vertex_06017030, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 5, 6, 7, 0x0), diff --git a/actors/tree/model.inc.c b/actors/tree/model.inc.c index 3f89db26..914eb126 100644 --- a/actors/tree/model.inc.c +++ b/actors/tree/model.inc.c @@ -1,10 +1,6 @@ // Tree // 0x0302DE10 -static const Lights1 tree_seg3_lights_0302DE10 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0302DE28 ALIGNED8 static const Texture tree_seg3_texture_bubbly_left_side[] = { @@ -103,8 +99,8 @@ const Gfx tree_seg3_sub_dl_spiky[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, tree_seg3_texture_pine), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&tree_seg3_lights_0302DE10.l, 1), - gsSPLight(&tree_seg3_lights_0302DE10.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(tree_seg3_vertex_spiky, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), @@ -142,8 +138,8 @@ const Gfx tree_seg3_sub_dl_snowy_pine[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, tree_seg3_texture_snowy_pine), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&tree_seg3_lights_0302DE10.l, 1), - gsSPLight(&tree_seg3_lights_0302DE10.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(tree_seg3_vertex_spiky, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), @@ -189,8 +185,8 @@ const Gfx tree_seg3_sub_dl_palm[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, tree_seg3_texture_palm), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&tree_seg3_lights_0302DE10.l, 1), - gsSPLight(&tree_seg3_lights_0302DE10.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(tree_seg3_vertex_palm, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), diff --git a/actors/ukiki/model.inc.c b/actors/ukiki/model.inc.c index fdc22c14..d7730d8c 100644 --- a/actors/ukiki/model.inc.c +++ b/actors/ukiki/model.inc.c @@ -1,22 +1,10 @@ // Ukiki // Unreferenced light group -UNUSED static const Lights1 ukiki_lights_unused1 = gdSPDefLights1( - 0x1d, 0x12, 0x07, - 0x77, 0x48, 0x1f, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 ukiki_lights_unused2 = gdSPDefLights1( - 0x39, 0x24, 0x18, - 0xe7, 0x93, 0x61, 0x28, 0x28, 0x28 -); // 0x05007BA0 -static const Lights1 ukiki_seg5_lights_05007BA0 = gdSPDefLights1( - 0x39, 0x24, 0x18, - 0xe7, 0x93, 0x61, 0x28, 0x28, 0x28 -); // The hell? UNUSED static const u64 ukiki_unused_1 = 1; @@ -42,16 +30,8 @@ ALIGNED8 static const Texture ukiki_seg5_texture_0500A3C0[] = { }; // 0x0500ABC0 -static const Lights1 ukiki_seg5_lights_0500ABC0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500ABD8 -static const Lights1 ukiki_seg5_lights_0500ABD8 = gdSPDefLights1( - 0x77, 0x66, 0x45, - 0xee, 0xcd, 0x8a, 0x28, 0x28, 0x28 -); // 0x0500ABF0 static const Vtx ukiki_seg5_vertex_0500ABF0[] = { @@ -144,8 +124,8 @@ static const Vtx ukiki_seg5_vertex_0500AF60[] = { // 0x0500B040 - 0x0500B1D8 const Gfx ukiki_seg5_dl_0500B040[] = { - gsSPLight(&ukiki_seg5_lights_0500ABC0.l, 1), - gsSPLight(&ukiki_seg5_lights_0500ABC0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500ABF0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 5, 2, 4, 0x0), @@ -178,8 +158,8 @@ const Gfx ukiki_seg5_dl_0500B040[] = { // 0x0500B1D8 - 0x0500B278 const Gfx ukiki_seg5_dl_0500B1D8[] = { - gsSPLight(&ukiki_seg5_lights_0500ABD8.l, 1), - gsSPLight(&ukiki_seg5_lights_0500ABD8.a, 2), + gsSPLightColor(LIGHT_1, 0xeecd8aff), + gsSPLightColor(LIGHT_2, 0x776645ff), gsSPVertex(ukiki_seg5_vertex_0500AF60, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 4, 0, 0x0, 5, 6, 4, 0x0), @@ -233,10 +213,6 @@ const Gfx ukiki_seg5_dl_0500B310[] = { }; // 0x0500B338 -static const Lights1 ukiki_seg5_lights_0500B338 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500B350 static const Vtx ukiki_seg5_vertex_0500B350[] = { @@ -308,8 +284,8 @@ const Gfx ukiki_seg5_dl_0500B660[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500B338.l, 1), - gsSPLight(&ukiki_seg5_lights_0500B338.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500B350, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 3, 0, 4, 0x0, 3, 5, 6, 0x0), @@ -365,10 +341,6 @@ const Gfx ukiki_seg5_dl_0500B820[] = { }; // 0x0500B888 -static const Lights1 ukiki_seg5_lights_0500B888 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500B8A0 static const Vtx ukiki_seg5_vertex_0500B8A0[] = { @@ -387,8 +359,8 @@ const Gfx ukiki_seg5_dl_0500B920[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500B888.l, 1), - gsSPLight(&ukiki_seg5_lights_0500B888.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500B8A0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 4, 6, 5, 0x0), @@ -413,10 +385,6 @@ const Gfx ukiki_seg5_dl_0500B988[] = { }; // 0x0500B9E8 -static const Lights1 ukiki_seg5_lights_0500B9E8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500BA00 static const Vtx ukiki_seg5_vertex_0500BA00[] = { @@ -436,8 +404,8 @@ const Gfx ukiki_seg5_dl_0500BA90[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500B9E8.l, 1), - gsSPLight(&ukiki_seg5_lights_0500B9E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500BA00, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 1, 5, 6, 0x0, 1, 6, 2, 0x0), @@ -465,10 +433,6 @@ const Gfx ukiki_seg5_dl_0500BB28[] = { }; // 0x0500BB88 -static const Lights1 ukiki_seg5_lights_0500BB88 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500BBA0 static const Vtx ukiki_seg5_vertex_0500BBA0[] = { @@ -486,8 +450,8 @@ const Gfx ukiki_seg5_dl_0500BC10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500BB88.l, 1), - gsSPLight(&ukiki_seg5_lights_0500BB88.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500BBA0, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 2, 5, 4, 0x0), @@ -512,10 +476,6 @@ const Gfx ukiki_seg5_dl_0500BC78[] = { }; // 0x0500BCD8 -static const Lights1 ukiki_seg5_lights_0500BCD8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500BCF0 static const Vtx ukiki_seg5_vertex_0500BCF0[] = { @@ -537,8 +497,8 @@ const Gfx ukiki_seg5_dl_0500BDA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500BCD8.l, 1), - gsSPLight(&ukiki_seg5_lights_0500BCD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500BCF0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 3, 5, 0x0, 0, 2, 6, 0x0), @@ -566,10 +526,6 @@ const Gfx ukiki_seg5_dl_0500BE38[] = { }; // 0x0500BE98 -static const Lights1 ukiki_seg5_lights_0500BE98 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500BEB0 static const Vtx ukiki_seg5_vertex_0500BEB0[] = { @@ -591,8 +547,8 @@ const Gfx ukiki_seg5_dl_0500BF60[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500BE98.l, 1), - gsSPLight(&ukiki_seg5_lights_0500BE98.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500BEB0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 3, 0x0), @@ -620,10 +576,6 @@ const Gfx ukiki_seg5_dl_0500BFF8[] = { }; // 0x0500C058 -static const Lights1 ukiki_seg5_lights_0500C058 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C070 static const Vtx ukiki_seg5_vertex_0500C070[] = { @@ -645,8 +597,8 @@ const Gfx ukiki_seg5_dl_0500C120[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500C058.l, 1), - gsSPLight(&ukiki_seg5_lights_0500C058.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500C070, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0), gsSP2Triangles( 2, 1, 5, 0x0, 2, 5, 4, 0x0), @@ -674,10 +626,6 @@ const Gfx ukiki_seg5_dl_0500C1B8[] = { }; // 0x0500C218 -static const Lights1 ukiki_seg5_lights_0500C218 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C230 static const Vtx ukiki_seg5_vertex_0500C230[] = { @@ -698,8 +646,8 @@ const Gfx ukiki_seg5_dl_0500C2D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500C218.l, 1), - gsSPLight(&ukiki_seg5_lights_0500C218.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500C230, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 3, 1, 0x0, 0, 2, 5, 0x0), @@ -727,10 +675,6 @@ const Gfx ukiki_seg5_dl_0500C368[] = { }; // 0x0500C3C8 -static const Lights1 ukiki_seg5_lights_0500C3C8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C3E0 static const Vtx ukiki_seg5_vertex_0500C3E0[] = { @@ -752,8 +696,8 @@ const Gfx ukiki_seg5_dl_0500C490[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500C3C8.l, 1), - gsSPLight(&ukiki_seg5_lights_0500C3C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500C3E0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 2, 1, 5, 0x0), @@ -781,10 +725,6 @@ const Gfx ukiki_seg5_dl_0500C528[] = { }; // 0x0500C588 -static const Lights1 ukiki_seg5_lights_0500C588 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C5A0 static const Vtx ukiki_seg5_vertex_0500C5A0[] = { @@ -806,8 +746,8 @@ const Gfx ukiki_seg5_dl_0500C650[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500C588.l, 1), - gsSPLight(&ukiki_seg5_lights_0500C588.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500C5A0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 0, 5, 1, 0x0), @@ -835,10 +775,6 @@ const Gfx ukiki_seg5_dl_0500C6E8[] = { }; // 0x0500C748 -static const Lights1 ukiki_seg5_lights_0500C748 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C760 static const Vtx ukiki_seg5_vertex_0500C760[] = { @@ -859,8 +795,8 @@ const Gfx ukiki_seg5_dl_0500C800[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500C748.l, 1), - gsSPLight(&ukiki_seg5_lights_0500C748.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500C760, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 2, 4, 3, 0x0), @@ -888,10 +824,6 @@ const Gfx ukiki_seg5_dl_0500C898[] = { }; // 0x0500C8F8 -static const Lights1 ukiki_seg5_lights_0500C8F8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500C910 static const Vtx ukiki_seg5_vertex_0500C910[] = { @@ -912,8 +844,8 @@ const Gfx ukiki_seg5_dl_0500C9B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ukiki_seg5_texture_0500A3C0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ukiki_seg5_lights_0500C8F8.l, 1), - gsSPLight(&ukiki_seg5_lights_0500C8F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ukiki_seg5_vertex_0500C910, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 3, 0x0), @@ -1042,8 +974,8 @@ static const Vtx ukiki_seg5_vertex_0500CE98[] = { // 0x0500CF68 - 0x0500CFF0 const Gfx ukiki_seg5_dl_0500CF68[] = { - gsSPLight(&ukiki_seg5_lights_05007BA0.l, 1), - gsSPLight(&ukiki_seg5_lights_05007BA0.a, 2), + gsSPLightColor(LIGHT_1, 0xe79361ff), + gsSPLightColor(LIGHT_2, 0x392418ff), gsSPVertex(ukiki_seg5_vertex_0500CAA8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1057,8 +989,8 @@ const Gfx ukiki_seg5_dl_0500CF68[] = { // 0x0500CFF0 - 0x0500D078 const Gfx ukiki_seg5_dl_0500CFF0[] = { - gsSPLight(&ukiki_seg5_lights_05007BA0.l, 1), - gsSPLight(&ukiki_seg5_lights_05007BA0.a, 2), + gsSPLightColor(LIGHT_1, 0xe79361ff), + gsSPLightColor(LIGHT_2, 0x392418ff), gsSPVertex(ukiki_seg5_vertex_0500CC28, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1072,8 +1004,8 @@ const Gfx ukiki_seg5_dl_0500CFF0[] = { // 0x0500D078 - 0x0500D108 const Gfx ukiki_seg5_dl_0500D078[] = { - gsSPLight(&ukiki_seg5_lights_05007BA0.l, 1), - gsSPLight(&ukiki_seg5_lights_05007BA0.a, 2), + gsSPLightColor(LIGHT_1, 0xe79361ff), + gsSPLightColor(LIGHT_2, 0x392418ff), gsSPVertex(ukiki_seg5_vertex_0500CDA8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 2, 7, 6, 0x0), @@ -1087,8 +1019,8 @@ const Gfx ukiki_seg5_dl_0500D078[] = { // 0x0500D108 - 0x0500D198 const Gfx ukiki_seg5_dl_0500D108[] = { - gsSPLight(&ukiki_seg5_lights_05007BA0.l, 1), - gsSPLight(&ukiki_seg5_lights_05007BA0.a, 2), + gsSPLightColor(LIGHT_1, 0xe79361ff), + gsSPLightColor(LIGHT_2, 0x392418ff), gsSPVertex(ukiki_seg5_vertex_0500CE98, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 5, 0x0, 4, 5, 6, 0x0), diff --git a/actors/unagi/model.inc.c b/actors/unagi/model.inc.c index 6d0eda36..f6ce026e 100644 --- a/actors/unagi/model.inc.c +++ b/actors/unagi/model.inc.c @@ -1,52 +1,20 @@ // Unagi (Eel) // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused1 = gdSPDefLights1( - 0x2c, 0x25, 0x00, - 0xb2, 0x94, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused2 = gdSPDefLights1( - 0x35, 0x00, 0x00, - 0xd5, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused3 = gdSPDefLights1( - 0x37, 0x00, 0x00, - 0xdd, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused4 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused5 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused6 = gdSPDefLights1( - 0x34, 0x00, 0x00, - 0xd2, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused7 = gdSPDefLights1( - 0x34, 0x00, 0x00, - 0xd3, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 unagi_lights_unused8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500AF20 ALIGNED8 static const Texture unagi_seg5_texture_0500AF20[] = { diff --git a/actors/warp_pipe/model.inc.c b/actors/warp_pipe/model.inc.c index 6e6ec952..25a593eb 100644 --- a/actors/warp_pipe/model.inc.c +++ b/actors/warp_pipe/model.inc.c @@ -1,10 +1,6 @@ // Warp Pipe // 0x030079E8 -static const Lights1 warp_pipe_seg3_lights_030079E8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x03007A00 static const Vtx warp_pipe_seg3_vertex_03007A00[] = { @@ -104,8 +100,8 @@ const Gfx warp_pipe_seg3_dl_03008E40[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, warp_pipe_seg3_texture_03007E40), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&warp_pipe_seg3_lights_030079E8.l, 1), - gsSPLight(&warp_pipe_seg3_lights_030079E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(warp_pipe_seg3_vertex_03007A00, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -149,16 +145,8 @@ const Gfx warp_pipe_seg3_dl_03008F98[] = { }; // 0x03008FF8 -static const Lights1 warp_pipe_seg3_lights_03008FF8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x03009010 -static const Lights1 warp_pipe_seg3_lights_03009010 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x03009028 static const Vtx warp_pipe_seg3_vertex_03009028[] = { @@ -198,8 +186,8 @@ const Gfx warp_pipe_seg3_dl_03009968[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, warp_pipe_seg3_texture_03009168), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&warp_pipe_seg3_lights_03008FF8.l, 1), - gsSPLight(&warp_pipe_seg3_lights_03008FF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(warp_pipe_seg3_vertex_03009028, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 3, 5, 0x0), @@ -214,8 +202,8 @@ const Gfx warp_pipe_seg3_dl_03009968[] = { // 0x03009A20 - 0x03009A50 const Gfx warp_pipe_seg3_dl_03009A20[] = { - gsSPLight(&warp_pipe_seg3_lights_03009010.l, 1), - gsSPLight(&warp_pipe_seg3_lights_03009010.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(warp_pipe_seg3_vertex_03009128, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/actors/water_bubble/model.inc.c b/actors/water_bubble/model.inc.c index 512551f2..5c217334 100644 --- a/actors/water_bubble/model.inc.c +++ b/actors/water_bubble/model.inc.c @@ -1,10 +1,6 @@ // Water Bubble // 0x0500FE68 -static const Lights1 water_bubble_seg5_lights_0500FE68 = gdSPDefLights1( - 0xbf, 0xbf, 0xbf, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0500FE80 ALIGNED8 static const Texture water_bubble_seg5_texture_0500FE80[] = { @@ -148,8 +144,8 @@ static const Vtx water_bubble_seg5_vertex_05010C50[] = { // 0x05010D30 - 0x05011000 const Gfx water_bubble_seg5_dl_05010D30[] = { - gsSPLight(&water_bubble_seg5_lights_0500FE68.l, 1), - gsSPLight(&water_bubble_seg5_lights_0500FE68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0xbfbfbfff), gsSPVertex(water_bubble_seg5_vertex_05010680, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 1, 5, 3, 0x0), diff --git a/actors/water_mine/model.inc.c b/actors/water_mine/model.inc.c index 182d8e29..715ba3e9 100644 --- a/actors/water_mine/model.inc.c +++ b/actors/water_mine/model.inc.c @@ -1,10 +1,6 @@ // Water Mine (unused) // 0x0600A4E0 -static const Lights1 water_mine_seg6_lights_0600A4E0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0600A4F8 ALIGNED8 static const Texture water_mine_seg6_texture_0600A4F8[] = { @@ -173,8 +169,8 @@ const Gfx water_mine_seg6_dl_0600D2E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_mine_seg6_texture_0600C4F8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&water_mine_seg6_lights_0600A4E0.l, 1), - gsSPLight(&water_mine_seg6_lights_0600A4E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(water_mine_seg6_vertex_0600CD78, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/actors/water_ring/model.inc.c b/actors/water_ring/model.inc.c index 3c772931..2c710132 100644 --- a/actors/water_ring/model.inc.c +++ b/actors/water_ring/model.inc.c @@ -1,10 +1,6 @@ // Water Ring // 0x06012368 -static const Lights1 water_ring_seg6_lights_06012368 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x06012380 ALIGNED8 static const Texture water_ring_seg6_texture_06012380[] = { @@ -166,8 +162,8 @@ const Gfx water_ring_seg6_dl_06013AC0[] = { gsDPSetCombineMode(G_CC_DECALFADE, G_CC_DECALFADE), gsDPLoadTextureBlock(water_ring_seg6_texture_06012380, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 6, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPTexture(0x1800, 0x07C0, 0, G_TX_RENDERTILE, G_ON), - gsSPLight(&water_ring_seg6_lights_06012368.l, 1), - gsSPLight(&water_ring_seg6_lights_06012368.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(water_ring_seg6_vertex_06013380, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/whomp/model.inc.c b/actors/whomp/model.inc.c index a359d0f3..a883d108 100644 --- a/actors/whomp/model.inc.c +++ b/actors/whomp/model.inc.c @@ -25,10 +25,6 @@ ALIGNED8 static const Texture whomp_seg6_texture_0601EB60[] = { }; // 0x0601F360 -static const Lights1 whomp_seg6_lights_0601F360 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0601F378 static const Vtx whomp_seg6_vertex_0601F378[] = { @@ -71,8 +67,8 @@ const Gfx whomp_seg6_dl_0601F4F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, whomp_seg6_texture_0601EB60), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&whomp_seg6_lights_0601F360.l, 1), - gsSPLight(&whomp_seg6_lights_0601F360.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(whomp_seg6_vertex_0601F378, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -125,10 +121,6 @@ const Gfx whomp_seg6_dl_0601F5E0[] = { }; // 0x0601F678 -static const Lights1 whomp_seg6_lights_0601F678 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0601F690 static const Vtx whomp_seg6_vertex_0601F690[] = { @@ -165,8 +157,8 @@ const Gfx whomp_seg6_dl_0601F7F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, whomp_seg6_texture_0601EB60), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&whomp_seg6_lights_0601F678.l, 1), - gsSPLight(&whomp_seg6_lights_0601F678.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(whomp_seg6_vertex_0601F690, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -195,10 +187,6 @@ const Gfx whomp_seg6_dl_0601F880[] = { }; // 0x0601F8E0 -static const Lights1 whomp_seg6_lights_0601F8E0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0601F8F8 static const Vtx whomp_seg6_vertex_0601F8F8[] = { @@ -235,8 +223,8 @@ const Gfx whomp_seg6_dl_0601FA58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, whomp_seg6_texture_0601EB60), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&whomp_seg6_lights_0601F8E0.l, 1), - gsSPLight(&whomp_seg6_lights_0601F8E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(whomp_seg6_vertex_0601F8F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -337,10 +325,6 @@ const Gfx whomp_seg6_dl_0601FCA8[] = { }; // 0x0601FD18 -static const Lights1 whomp_seg6_lights_0601FD18 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0601FD30 static const Vtx whomp_seg6_vertex_0601FD30[] = { @@ -365,8 +349,8 @@ const Gfx whomp_seg6_dl_0601FE10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, whomp_seg6_texture_0601EB60), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&whomp_seg6_lights_0601FD18.l, 1), - gsSPLight(&whomp_seg6_lights_0601FD18.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(whomp_seg6_vertex_0601FD30, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 4, 3, 2, 0x0), @@ -394,10 +378,6 @@ const Gfx whomp_seg6_dl_0601FEA8[] = { }; // 0x0601FF08 -static const Lights1 whomp_seg6_lights_0601FF08 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0601FF20 static const Vtx whomp_seg6_vertex_0601FF20[] = { @@ -416,8 +396,8 @@ const Gfx whomp_seg6_dl_0601FFA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, whomp_seg6_texture_0601EB60), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&whomp_seg6_lights_0601FF08.l, 1), - gsSPLight(&whomp_seg6_lights_0601FF08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(whomp_seg6_vertex_0601FF20, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 2, 1, 0x0, 1, 5, 4, 0x0), diff --git a/actors/wiggler_body/model.inc.c b/actors/wiggler_body/model.inc.c index ed1efc8e..87d997f5 100644 --- a/actors/wiggler_body/model.inc.c +++ b/actors/wiggler_body/model.inc.c @@ -36,22 +36,10 @@ ALIGNED8 static const Texture wiggler_seg5_texture_0500A230[] = { }; // 0x0500B230 -static const Lights1 wiggler_seg5_lights_0500B230 = gdSPDefLights1( - 0x37, 0x00, 0x00, - 0xdf, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0500B248 -static const Lights1 wiggler_seg5_lights_0500B248 = gdSPDefLights1( - 0x39, 0x11, 0x00, - 0xe7, 0x47, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 wiggler_body_lights_unused = gdSPDefLights1( - 0x3a, 0x22, 0x05, - 0xea, 0x8b, 0x16, 0x28, 0x28, 0x28 -); // 0x0500B278 static const Vtx wiggler_seg5_vertex_0500B278[] = { @@ -267,8 +255,8 @@ static const Vtx wiggler_seg5_vertex_0500BBC8[] = { // 0x0500BCB8 - 0x0500BE10 const Gfx wiggler_seg5_dl_0500BCB8[] = { - gsSPLight(&wiggler_seg5_lights_0500B230.l, 1), - gsSPLight(&wiggler_seg5_lights_0500B230.a, 2), + gsSPLightColor(LIGHT_1, 0xdf0000ff), + gsSPLightColor(LIGHT_2, 0x370000ff), gsSPVertex(wiggler_seg5_vertex_0500B278, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -296,8 +284,8 @@ const Gfx wiggler_seg5_dl_0500BCB8[] = { // 0x0500BE10 - 0x0500BE98 const Gfx wiggler_seg5_dl_0500BE10[] = { - gsSPLight(&wiggler_seg5_lights_0500B248.l, 1), - gsSPLight(&wiggler_seg5_lights_0500B248.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500B5B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -311,8 +299,8 @@ const Gfx wiggler_seg5_dl_0500BE10[] = { // 0x0500BE98 - 0x0500BF20 const Gfx wiggler_seg5_dl_0500BE98[] = { - gsSPLight(&wiggler_seg5_lights_0500B248.l, 1), - gsSPLight(&wiggler_seg5_lights_0500B248.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500B6A8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -326,8 +314,8 @@ const Gfx wiggler_seg5_dl_0500BE98[] = { // 0x0500BF20 - 0x0500C078 const Gfx wiggler_seg5_dl_0500BF20[] = { - gsSPLight(&wiggler_seg5_lights_0500B230.l, 1), - gsSPLight(&wiggler_seg5_lights_0500B230.a, 2), + gsSPLightColor(LIGHT_1, 0xdf0000ff), + gsSPLightColor(LIGHT_2, 0x370000ff), gsSPVertex(wiggler_seg5_vertex_0500B798, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -355,8 +343,8 @@ const Gfx wiggler_seg5_dl_0500BF20[] = { // 0x0500C078 - 0x0500C100 const Gfx wiggler_seg5_dl_0500C078[] = { - gsSPLight(&wiggler_seg5_lights_0500B248.l, 1), - gsSPLight(&wiggler_seg5_lights_0500B248.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500BAD8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -370,8 +358,8 @@ const Gfx wiggler_seg5_dl_0500C078[] = { // 0x0500C100 - 0x0500C188 const Gfx wiggler_seg5_dl_0500C100[] = { - gsSPLight(&wiggler_seg5_lights_0500B248.l, 1), - gsSPLight(&wiggler_seg5_lights_0500B248.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500BBC8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/wiggler_head/model.inc.c b/actors/wiggler_head/model.inc.c index 99f93b48..2462baa9 100644 --- a/actors/wiggler_head/model.inc.c +++ b/actors/wiggler_head/model.inc.c @@ -1,28 +1,12 @@ // Wiggler Head // 0x0500C878 -static const Lights1 wiggler_seg5_lights_0500C878 = gdSPDefLights1( - 0x37, 0x00, 0x00, - 0xdf, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0500C890 -static const Lights1 wiggler_seg5_lights_0500C890 = gdSPDefLights1( - 0x39, 0x11, 0x00, - 0xe7, 0x47, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 wiggler_head_lights_unused1 = gdSPDefLights1( - 0x1b, 0x06, 0x00, - 0x6d, 0x1a, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 wiggler_head_lights_unused2 = gdSPDefLights1( - 0x3a, 0x22, 0x05, - 0xea, 0x8b, 0x16, 0x28, 0x28, 0x28 -); // 0x0500C8D8 static const Vtx wiggler_seg5_vertex_0500C8D8[] = { @@ -238,8 +222,8 @@ static const Vtx wiggler_seg5_vertex_0500D228[] = { // 0x0500DC18 - 0x0500DD70 const Gfx wiggler_seg5_dl_0500DC18[] = { - gsSPLight(&wiggler_seg5_lights_0500C878.l, 1), - gsSPLight(&wiggler_seg5_lights_0500C878.a, 2), + gsSPLightColor(LIGHT_1, 0xdf0000ff), + gsSPLightColor(LIGHT_2, 0x370000ff), gsSPVertex(wiggler_seg5_vertex_0500C8D8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -267,8 +251,8 @@ const Gfx wiggler_seg5_dl_0500DC18[] = { // 0x0500DD70 - 0x0500DDF8 const Gfx wiggler_seg5_dl_0500DD70[] = { - gsSPLight(&wiggler_seg5_lights_0500C890.l, 1), - gsSPLight(&wiggler_seg5_lights_0500C890.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500CC18, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -282,8 +266,8 @@ const Gfx wiggler_seg5_dl_0500DD70[] = { // 0x0500DDF8 - 0x0500DE80 const Gfx wiggler_seg5_dl_0500DDF8[] = { - gsSPLight(&wiggler_seg5_lights_0500C890.l, 1), - gsSPLight(&wiggler_seg5_lights_0500C890.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500CD08, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -297,8 +281,8 @@ const Gfx wiggler_seg5_dl_0500DDF8[] = { // 0x0500DE80 - 0x0500DFD8 const Gfx wiggler_seg5_dl_0500DE80[] = { - gsSPLight(&wiggler_seg5_lights_0500C878.l, 1), - gsSPLight(&wiggler_seg5_lights_0500C878.a, 2), + gsSPLightColor(LIGHT_1, 0xdf0000ff), + gsSPLightColor(LIGHT_2, 0x370000ff), gsSPVertex(wiggler_seg5_vertex_0500CDF8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -326,8 +310,8 @@ const Gfx wiggler_seg5_dl_0500DE80[] = { // 0x0500DFD8 - 0x0500E060 const Gfx wiggler_seg5_dl_0500DFD8[] = { - gsSPLight(&wiggler_seg5_lights_0500C890.l, 1), - gsSPLight(&wiggler_seg5_lights_0500C890.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500D138, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -341,8 +325,8 @@ const Gfx wiggler_seg5_dl_0500DFD8[] = { // 0x0500E060 - 0x0500E0E8 const Gfx wiggler_seg5_dl_0500E060[] = { - gsSPLight(&wiggler_seg5_lights_0500C890.l, 1), - gsSPLight(&wiggler_seg5_lights_0500C890.a, 2), + gsSPLightColor(LIGHT_1, 0xe74700ff), + gsSPLightColor(LIGHT_2, 0x391100ff), gsSPVertex(wiggler_seg5_vertex_0500D228, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/actors/wooden_signpost/model.inc.c b/actors/wooden_signpost/model.inc.c index a0889e81..c6b3d72f 100644 --- a/actors/wooden_signpost/model.inc.c +++ b/actors/wooden_signpost/model.inc.c @@ -1,10 +1,6 @@ // Signpost // 0x0302C940 -static const Lights1 wooden_signpost_seg3_lights_0302C940 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0302C958 static const Vtx wooden_signpost_seg3_vertex_0302C958[] = { @@ -32,8 +28,8 @@ const Gfx wooden_signpost_seg3_dl_0302D9C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wooden_signpost_seg3_texture_0302C9C8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wooden_signpost_seg3_lights_0302C940.l, 1), - gsSPLight(&wooden_signpost_seg3_lights_0302C940.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(wooden_signpost_seg3_vertex_0302C958, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 0, 3, 1, 0x0, 4, 1, 3, 0x0), @@ -60,10 +56,6 @@ const Gfx wooden_signpost_seg3_dl_0302DA48[] = { }; // 0x0302DAA8 -static const Lights1 wooden_signpost_seg3_lights_0302DAA8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0302DAC0 static const Vtx wooden_signpost_seg3_vertex_0302DAC0[] = { @@ -106,8 +98,8 @@ const Gfx wooden_signpost_seg3_dl_0302DC40[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wooden_signpost_seg3_texture_0302C9C8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wooden_signpost_seg3_lights_0302DAA8.l, 1), - gsSPLight(&wooden_signpost_seg3_lights_0302DAA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(wooden_signpost_seg3_vertex_0302DAC0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), diff --git a/actors/yoshi/model.inc.c b/actors/yoshi/model.inc.c index f5c9514e..601e6ef6 100644 --- a/actors/yoshi/model.inc.c +++ b/actors/yoshi/model.inc.c @@ -1,22 +1,10 @@ // Yoshi // 0x0501C458 -static const Lights1 yoshi_seg5_lights_0501C458 = gdSPDefLights1( - 0x00, 0x7c, 0x00, - 0x00, 0xf9, 0x00, 0x28, 0x28, 0x28 -); // 0x0501C470 -static const Lights1 yoshi_seg5_lights_0501C470 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0501C488 -static const Lights1 yoshi_seg5_lights_0501C488 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0501C4A0 ALIGNED8 static const Texture yoshi_seg5_texture_0501C4A0[] = { @@ -244,8 +232,8 @@ const Gfx yoshi_seg5_dl_0501D440[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, yoshi_seg5_texture_0501C8A0), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&yoshi_seg5_lights_0501C458.l, 1), - gsSPLight(&yoshi_seg5_lights_0501C458.a, 2), + gsSPLightColor(LIGHT_1, 0xf900ff), + gsSPLightColor(LIGHT_2, 0x7c00ff), gsSPVertex(yoshi_seg5_vertex_0501CAA0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -253,8 +241,8 @@ const Gfx yoshi_seg5_dl_0501D440[] = { // 0x0501D488 - 0x0501D4E0 const Gfx yoshi_seg5_dl_0501D488[] = { - gsSPLight(&yoshi_seg5_lights_0501C470.l, 1), - gsSPLight(&yoshi_seg5_lights_0501C470.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(yoshi_seg5_vertex_0501CB00, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 3, 4, 5, 0x0, 5, 0, 3, 0x0), @@ -265,13 +253,13 @@ const Gfx yoshi_seg5_dl_0501D488[] = { // 0x0501D4E0 - 0x0501D8F8 const Gfx yoshi_seg5_dl_0501D4E0[] = { - gsSPLight(&yoshi_seg5_lights_0501C488.l, 1), - gsSPLight(&yoshi_seg5_lights_0501C488.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(yoshi_seg5_vertex_0501CBB0, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 1, 3, 0x0, 2, 1, 4, 0x0), - gsSPLight(&yoshi_seg5_lights_0501C458.l, 1), - gsSPLight(&yoshi_seg5_lights_0501C458.a, 2), + gsSPLightColor(LIGHT_1, 0xf900ff), + gsSPLightColor(LIGHT_2, 0x7c00ff), gsSPVertex(yoshi_seg5_vertex_0501CC00, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 3, 0x0, 3, 5, 6, 0x0), @@ -331,8 +319,8 @@ const Gfx yoshi_seg5_dl_0501D4E0[] = { gsSPVertex(yoshi_seg5_vertex_0501D2C0, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 3, 5, 6, 0x0), - gsSPLight(&yoshi_seg5_lights_0501C470.l, 1), - gsSPLight(&yoshi_seg5_lights_0501C470.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(yoshi_seg5_vertex_0501D330, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 4, 8, 0x0), @@ -386,40 +374,16 @@ const Gfx yoshi_seg5_dl_0501D998[] = { }; // 0x0501D9C0 -static const Lights1 yoshi_seg5_lights_0501D9C0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0501D9D8 -static const Lights1 yoshi_seg5_lights_0501D9D8 = gdSPDefLights1( - 0x00, 0x7b, 0x00, - 0x00, 0xf7, 0x00, 0x28, 0x28, 0x28 -); // 0x0501D9F0 -static const Lights1 yoshi_seg5_lights_0501D9F0 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 yoshi_lights_unused1 = gdSPDefLights1( - 0x59, 0x59, 0x59, - 0xb2, 0xb2, 0xb2, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 yoshi_lights_unused2 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0501DA38 -static const Lights1 yoshi_seg5_lights_0501DA38 = gdSPDefLights1( - 0x45, 0x00, 0x00, - 0x8b, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0501DA50 static const Vtx yoshi_seg5_vertex_0501DA50[] = { @@ -1585,8 +1549,8 @@ static const Vtx yoshi_seg5_vertex_050211D0[] = { // 0x050212B0 - 0x05021490 const Gfx yoshi_seg5_dl_050212B0[] = { - gsSPLight(&yoshi_seg5_lights_0501D9C0.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(yoshi_seg5_vertex_0501DA50, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1628,8 +1592,8 @@ const Gfx yoshi_seg5_dl_050212B0[] = { // 0x05021490 - 0x050215D8 const Gfx yoshi_seg5_dl_05021490[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501E1E0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1658,8 +1622,8 @@ const Gfx yoshi_seg5_dl_05021490[] = { // 0x050215D8 - 0x05021678 const Gfx yoshi_seg5_dl_050215D8[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501E530, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 2, 6, 7, 0x0), @@ -1674,8 +1638,8 @@ const Gfx yoshi_seg5_dl_050215D8[] = { // 0x05021678 - 0x05021718 const Gfx yoshi_seg5_dl_05021678[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501E5D0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 6, 7, 0x0, 4, 8, 1, 0x0), @@ -1690,8 +1654,8 @@ const Gfx yoshi_seg5_dl_05021678[] = { // 0x05021718 - 0x05021860 const Gfx yoshi_seg5_dl_05021718[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501E680, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1720,8 +1684,8 @@ const Gfx yoshi_seg5_dl_05021718[] = { // 0x05021860 - 0x05021900 const Gfx yoshi_seg5_dl_05021860[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501E9D0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 4, 5, 1, 0x0, 6, 7, 0, 0x0), @@ -1736,8 +1700,8 @@ const Gfx yoshi_seg5_dl_05021860[] = { // 0x05021900 - 0x050219A0 const Gfx yoshi_seg5_dl_05021900[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501EA70, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 2, 0x0, 1, 8, 4, 0x0), @@ -1752,8 +1716,8 @@ const Gfx yoshi_seg5_dl_05021900[] = { // 0x050219A0 - 0x05021B90 const Gfx yoshi_seg5_dl_050219A0[] = { - gsSPLight(&yoshi_seg5_lights_0501D9F0.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9F0.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(yoshi_seg5_vertex_0501EB20, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), @@ -1794,8 +1758,8 @@ const Gfx yoshi_seg5_dl_050219A0[] = { // 0x05021B90 - 0x05021CD8 const Gfx yoshi_seg5_dl_05021B90[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501F180, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 6, 1, 0x0, 3, 7, 4, 0x0), @@ -1823,8 +1787,8 @@ const Gfx yoshi_seg5_dl_05021B90[] = { // 0x05021CD8 - 0x05021E38 const Gfx yoshi_seg5_dl_05021CD8[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501F540, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1854,8 +1818,8 @@ const Gfx yoshi_seg5_dl_05021CD8[] = { // 0x05021E38 - 0x05021F70 const Gfx yoshi_seg5_dl_05021E38[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_0501FA00, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 5, 3, 0x0, 6, 7, 8, 0x0), @@ -1867,8 +1831,8 @@ const Gfx yoshi_seg5_dl_05021E38[] = { gsSP2Triangles(10, 8, 7, 0x0, 3, 9, 12, 0x0), gsSP2Triangles( 2, 1, 11, 0x0, 8, 11, 6, 0x0), gsSP1Triangle( 5, 0, 3, 0x0), - gsSPLight(&yoshi_seg5_lights_0501D9C0.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(yoshi_seg5_vertex_0501FAF0, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 7, 6, 8, 0x0), @@ -1882,8 +1846,8 @@ const Gfx yoshi_seg5_dl_05021E38[] = { // 0x05021F70 - 0x05022160 const Gfx yoshi_seg5_dl_05021F70[] = { - gsSPLight(&yoshi_seg5_lights_0501D9F0.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9F0.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(yoshi_seg5_vertex_0501FBA0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -1924,8 +1888,8 @@ const Gfx yoshi_seg5_dl_05021F70[] = { // 0x05022160 - 0x050222A8 const Gfx yoshi_seg5_dl_05022160[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_05020200, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 1, 6, 2, 0x0, 4, 7, 5, 0x0), @@ -1953,8 +1917,8 @@ const Gfx yoshi_seg5_dl_05022160[] = { // 0x050222A8 - 0x05022408 const Gfx yoshi_seg5_dl_050222A8[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_050205C0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1984,8 +1948,8 @@ const Gfx yoshi_seg5_dl_050222A8[] = { // 0x05022408 - 0x05022608 const Gfx yoshi_seg5_dl_05022408[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_05020A80, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -2006,8 +1970,8 @@ const Gfx yoshi_seg5_dl_05022408[] = { gsSP1Triangle( 4, 14, 15, 0x0), gsSPVertex(yoshi_seg5_vertex_05020E60, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&yoshi_seg5_lights_0501D9C0.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(yoshi_seg5_vertex_05020E90, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 5, 9, 3, 0x0), @@ -2018,8 +1982,8 @@ const Gfx yoshi_seg5_dl_05022408[] = { gsSP2Triangles(14, 15, 8, 0x0, 3, 10, 12, 0x0), gsSP2Triangles(12, 4, 3, 0x0, 12, 14, 7, 0x0), gsSP2Triangles( 8, 7, 14, 0x0, 7, 4, 12, 0x0), - gsSPLight(&yoshi_seg5_lights_0501D9F0.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9F0.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(yoshi_seg5_vertex_05020F90, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 6, 5, 0x0), @@ -2028,8 +1992,8 @@ const Gfx yoshi_seg5_dl_05022408[] = { // 0x05022608 - 0x050227D8 const Gfx yoshi_seg5_dl_05022608[] = { - gsSPLight(&yoshi_seg5_lights_0501D9D8.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9D8.a, 2), + gsSPLightColor(LIGHT_1, 0xf700ff), + gsSPLightColor(LIGHT_2, 0x7b00ff), gsSPVertex(yoshi_seg5_vertex_05021010, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -2039,8 +2003,8 @@ const Gfx yoshi_seg5_dl_05022608[] = { gsSP2Triangles(14, 7, 3, 0x0, 13, 9, 12, 0x0), gsSP2Triangles(11, 12, 9, 0x0, 7, 14, 8, 0x0), gsSP2Triangles( 3, 13, 4, 0x0, 1, 15, 2, 0x0), - gsSPLight(&yoshi_seg5_lights_0501DA38.l, 1), - gsSPLight(&yoshi_seg5_lights_0501DA38.a, 2), + gsSPLightColor(LIGHT_1, 0x8b0000ff), + gsSPLightColor(LIGHT_2, 0x450000ff), gsSPVertex(yoshi_seg5_vertex_05021110, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 2, 1, 0x0, 6, 7, 4, 0x0), @@ -2049,8 +2013,8 @@ const Gfx yoshi_seg5_dl_05022608[] = { gsSP2Triangles( 4, 1, 6, 0x0, 2, 9, 10, 0x0), gsSP2Triangles( 5, 11, 3, 0x0, 2, 10, 0, 0x0), gsSP2Triangles(11, 8, 3, 0x0, 1, 4, 3, 0x0), - gsSPLight(&yoshi_seg5_lights_0501D9C0.l, 1), - gsSPLight(&yoshi_seg5_lights_0501D9C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(yoshi_seg5_vertex_050211D0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 7, 6, 0x0), diff --git a/bin/debug_level_select.c b/bin/debug_level_select.c index 345203a6..8e58b4c3 100644 --- a/bin/debug_level_select.c +++ b/bin/debug_level_select.c @@ -4,10 +4,6 @@ #include "make_const_nonconst.h" // 0x07000000 - 0x07000018 -static const Lights1 debug_level_select_lights_07000000 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x50 -); // 0x07000018 - 0x07000108 static const Vtx debug_level_select_vertex_07000018[] = { @@ -180,7 +176,8 @@ static const Vtx debug_level_select_vertex_07000798[] = { // 0x07000858 - 0x07000A28 const Gfx debug_level_select_dl_07000858[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_07000000), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(debug_level_select_vertex_07000018, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -220,10 +217,6 @@ const Gfx debug_level_select_dl_07000858[] = { }; // 0x07000A28 - 0x07000A40 -static const Lights1 debug_level_select_lights_07000A28 = gdSPDefLights1( - 0x00, 0x00, 0x7f, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x50 -); // 0x07000A40 - 0x07000B30 static const Vtx debug_level_select_vertex_07000A40[] = { @@ -368,7 +361,8 @@ static const Vtx debug_level_select_vertex_070010D0[] = { // 0x07001100 - 0x07001288 const Gfx debug_level_select_dl_07001100[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_07000A28), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPVertex(debug_level_select_vertex_07000A40, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -403,10 +397,6 @@ const Gfx debug_level_select_dl_07001100[] = { }; // 0x07001288 - 0x070012A0 -static const Lights1 debug_level_select_lights_07001288 = gdSPDefLights1( - 0x00, 0x56, 0x00, - 0x00, 0xad, 0x00, 0x00, 0x00, 0x50 -); // 0x070012A0 - 0x07001390 static const Vtx debug_level_select_vertex_070012A0[] = { @@ -595,7 +585,8 @@ static const Vtx debug_level_select_vertex_07001B10[] = { // 0x07001BA0 - 0x07001D98 const Gfx debug_level_select_dl_07001BA0[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_07001288), + gsSPLightColor(LIGHT_1, 0xad00ff), + gsSPLightColor(LIGHT_2, 0x5600ff), gsSPVertex(debug_level_select_vertex_070012A0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -639,10 +630,6 @@ const Gfx debug_level_select_dl_07001BA0[] = { }; // 0x07001D98 - 0x07001DB0 -static const Lights1 debug_level_select_lights_07001D98 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x50 -); // 0x07001DB0 - 0x07001EA0 static const Vtx debug_level_select_vertex_07001DB0[] = { @@ -815,7 +802,8 @@ static const Vtx debug_level_select_vertex_07002530[] = { // 0x070025F0 - 0x070027C0 const Gfx debug_level_select_dl_070025F0[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_07001D98), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(debug_level_select_vertex_07001DB0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -855,10 +843,6 @@ const Gfx debug_level_select_dl_070025F0[] = { }; // 0x070027C0 - 0x070027D8 -static const Lights1 debug_level_select_lights_070027C0 = gdSPDefLights1( - 0x00, 0x00, 0x7f, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x50 -); // 0x070027D8 - 0x070028C8 static const Vtx debug_level_select_vertex_070027D8[] = { @@ -1079,7 +1063,8 @@ static const Vtx debug_level_select_vertex_07003228[] = { // 0x07003258 - 0x070034A0 const Gfx debug_level_select_dl_07003258[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_070027C0), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPVertex(debug_level_select_vertex_070027D8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1130,10 +1115,6 @@ const Gfx debug_level_select_dl_07003258[] = { }; // 0x070034A0 - 0x070034B8 -static const Lights1 debug_level_select_lights_070034A0 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x50 -); // 0x070034B8 - 0x070035A8 static const Vtx debug_level_select_vertex_070034B8[] = { @@ -1322,7 +1303,8 @@ static const Vtx debug_level_select_vertex_07003D28[] = { // 0x07003DB8 - 0x07003FB0 const Gfx debug_level_select_dl_07003DB8[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_070034A0), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(debug_level_select_vertex_070034B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1366,10 +1348,6 @@ const Gfx debug_level_select_dl_07003DB8[] = { }; // 0x07003FB0 - 0x07003FC8 -static const Lights1 debug_level_select_lights_07003FB0 = gdSPDefLights1( - 0x00, 0x00, 0x7f, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x50 -); // 0x07003FC8 - 0x070040B8 static const Vtx debug_level_select_vertex_07003FC8[] = { @@ -1558,7 +1536,8 @@ static const Vtx debug_level_select_vertex_07004838[] = { // 0x070048C8 - 0x07004AC0 const Gfx debug_level_select_dl_070048C8[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_07003FB0), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPVertex(debug_level_select_vertex_07003FC8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1602,10 +1581,6 @@ const Gfx debug_level_select_dl_070048C8[] = { }; // 0x07004AC0 - 0x07004AD8 -static const Lights1 debug_level_select_lights_07004AC0 = gdSPDefLights1( - 0x00, 0x59, 0x00, - 0x00, 0xb2, 0x00, 0x00, 0x00, 0x50 -); // 0x07004AD8 - 0x07004BC8 static const Vtx debug_level_select_vertex_07004AD8[] = { @@ -1826,7 +1801,8 @@ static const Vtx debug_level_select_vertex_07005528[] = { // 0x07005558 - 0x070057A0 const Gfx debug_level_select_dl_07005558[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_07004AC0), + gsSPLightColor(LIGHT_1, 0xb200ff), + gsSPLightColor(LIGHT_2, 0x5900ff), gsSPVertex(debug_level_select_vertex_07004AD8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1877,10 +1853,6 @@ const Gfx debug_level_select_dl_07005558[] = { }; // 0x070057A0 - 0x070057B8 -static const Lights1 debug_level_select_lights_070057A0 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x50 -); // 0x070057B8 - 0x070058A8 static const Vtx debug_level_select_vertex_070057B8[] = { @@ -1933,7 +1905,8 @@ static const Vtx debug_level_select_vertex_07005998[] = { // 0x070059F8 - 0x07005A98 const Gfx debug_level_select_dl_070059F8[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_070057A0), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(debug_level_select_vertex_070057B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1948,10 +1921,6 @@ const Gfx debug_level_select_dl_070059F8[] = { }; // 0x07005A98 - 0x07005AB0 -static const Lights1 debug_level_select_lights_07005A98 = gdSPDefLights1( - 0x00, 0x00, 0x7f, - 0x00, 0x00, 0xff, 0x00, 0x00, 0x50 -); // 0x07005AB0 - 0x07005BA0 static const Vtx debug_level_select_vertex_07005AB0[] = { @@ -2140,7 +2109,8 @@ static const Vtx debug_level_select_vertex_07006320[] = { // 0x070063B0 - 0x070065A8 const Gfx debug_level_select_dl_070063B0[] = { gsDPPipeSync(), - gsSPSetLights1(debug_level_select_lights_07005A98), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x7fff), gsSPVertex(debug_level_select_vertex_07005AB0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/bin/segment2.c b/bin/segment2.c index ba72215c..203109c7 100644 --- a/bin/segment2.c +++ b/bin/segment2.c @@ -2581,10 +2581,6 @@ const Texture texture_waterbox_lava[] = { }; // Unreferenced light group -UNUSED static const Lights1 segment2_lights_unused = gdSPDefLights1( - 0x40, 0x40, 0x40, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x02014470 - 0x020144B0 static const Mtx matrix_identity = { @@ -2835,18 +2831,14 @@ const Gfx dl_ia8_up_arrow_end[] = { }; // 0x02014958 - 0x02014960 -static const Lights1 seg2_lights_02014958 = gdSPDefLights1( - 0x50, 0x50, 0x50, - 0xff, 0xff, 0xff, 0x32, 0x32, 0x32 -); // 0x02014970 - 0x020149A8 const Gfx dl_paintings_rippling_begin[] = { gsDPPipeSync(), gsSPSetGeometryMode(G_LIGHTING | G_SHADING_SMOOTH), gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA), - gsSPLight(&seg2_lights_02014958.l, 1), - gsSPLight(&seg2_lights_02014958.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x505050ff), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), gsSPEndDisplayList(), }; @@ -2864,8 +2856,8 @@ const Gfx dl_paintings_env_mapped_begin[] = { gsDPPipeSync(), gsSPSetGeometryMode(G_LIGHTING | G_TEXTURE_GEN), gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB), - gsSPLight(&seg2_lights_02014958.l, 1), - gsSPLight(&seg2_lights_02014958.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x505050ff), gsSPTexture(0x4000, 0x4000, 0, G_TX_RENDERTILE, G_ON), gsSPEndDisplayList(), }; diff --git a/include/color_presets.h b/include/color_presets.h index 3c01189f..fd033f7a 100644 --- a/include/color_presets.h +++ b/include/color_presets.h @@ -157,12 +157,12 @@ // Debug box #define COLOR_RGBA32_DEBUG_DEFAULT 0x00FF0000 // 0 255 0 0 #define COLOR_RGBA32_DEBUG_ALPHA 0x0000007F // 0 0 0 127 -#define COLOR_RGBA32_DEBUG_POSITION 0x80FFFFFF // 128 255 255 255 -#define COLOR_RGBA32_DEBUG_HITBOX 0x800000FF // 128 0 0 255 -#define COLOR_RGBA32_DEBUG_HURTBOX 0x8FF00000 // 143 240 0 0 -#define COLOR_RGBA32_DEBUG_WARP 0x80FFA500 // 128 255 165 0 -#define COLOR_RGBA32_DEBUG_PUPPYVOLUME 0x0000FF00 // 0 0 255 0 -#define COLOR_RGBA32_DEBUG_LIGHT 0x08FF00FF // 8 255 0 255 +#define COLOR_RGBA32_DEBUG_POSITION 0xFFFFFF80 // 255 255 255 128 +#define COLOR_RGBA32_DEBUG_HITBOX 0x0000FF80 // 0 0 255 128 +#define COLOR_RGBA32_DEBUG_HURTBOX 0xF000008F // 240 0 0 143 +#define COLOR_RGBA32_DEBUG_WARP 0xFFA50080 // 255 165 0 128 +#define COLOR_RGBA32_DEBUG_PUPPYVOLUME 0x00FF0000 // 0 255 0 0 +#define COLOR_RGBA32_DEBUG_LIGHT 0xFF00FF08 // 255 0 255 8 // Color RGB(A) Arrays: diff --git a/include/config/config_debug.h b/include/config/config_debug.h index fc5ac8e9..376c66bd 100644 --- a/include/config/config_debug.h +++ b/include/config/config_debug.h @@ -12,7 +12,7 @@ // Enables a comprehensive standalone profiler. Automatically enabled by PUPPYPRINT_DEBUG. // If not using PUPPYPRINT_DEBUG, press L to toggle the profiler. -// #define USE_PROFILER +#define USE_PROFILER // TEST LEVEL // Uncomment this define and set a test level in order to boot straight into said level. diff --git a/levels/bbh/areas/1/1/model.inc.c b/levels/bbh/areas/1/1/model.inc.c index f504896a..33c20824 100644 --- a/levels/bbh/areas/1/1/model.inc.c +++ b/levels/bbh/areas/1/1/model.inc.c @@ -1,14 +1,6 @@ // 0x07004800 - 0x07004818 -static const Lights1 bbh_seg7_lights_07004800 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x07004818 - 0x07004830 -static const Lights1 bbh_seg7_lights_07004818 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004830 - 0x07004920 static const Vtx bbh_seg7_vertex_07004830[] = { @@ -731,8 +723,8 @@ static const Gfx bbh_seg7_dl_07006AF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07004800.l, 1), - gsSPLight(&bbh_seg7_lights_07004800.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_07004830, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -742,8 +734,8 @@ static const Gfx bbh_seg7_dl_07006AF0[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP1Triangle( 0, 10, 1, 0x0), - gsSPLight(&bbh_seg7_lights_07004818.l, 1), - gsSPLight(&bbh_seg7_lights_07004818.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_070049D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 4, 0, 0x0, 4, 3, 5, 0x0), diff --git a/levels/bbh/areas/1/12/model.inc.c b/levels/bbh/areas/1/12/model.inc.c index 5474a878..a384ce53 100644 --- a/levels/bbh/areas/1/12/model.inc.c +++ b/levels/bbh/areas/1/12/model.inc.c @@ -1,14 +1,6 @@ // 0x0700BC68 - 0x0700BC80 -static const Lights1 bbh_seg7_lights_0700BC68 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x0700BC80 - 0x0700BC98 -static const Lights1 bbh_seg7_lights_0700BC80 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BC98 - 0x0700BD18 static const Vtx bbh_seg7_vertex_0700BC98[] = { @@ -323,13 +315,13 @@ static const Gfx bbh_seg7_dl_0700CB58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0700BC68.l, 1), - gsSPLight(&bbh_seg7_lights_0700BC68.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_0700BC98, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&bbh_seg7_lights_0700BC80.l, 1), - gsSPLight(&bbh_seg7_lights_0700BC80.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0700BD18, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 5, 3, 0x0, 6, 7, 8, 0x0), diff --git a/levels/bbh/areas/1/14/model.inc.c b/levels/bbh/areas/1/14/model.inc.c index d93eb547..d4dd74bf 100644 --- a/levels/bbh/areas/1/14/model.inc.c +++ b/levels/bbh/areas/1/14/model.inc.c @@ -1,8 +1,4 @@ // 0x0700D350 - 0x0700D368 -static const Lights1 bbh_seg7_lights_0700D350 = gdSPDefLights1( - 0x3f, 0x51, 0x66, - 0x9e, 0xcc, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D368 - 0x0700D428 static const Vtx bbh_seg7_vertex_0700D368[] = { @@ -25,8 +21,8 @@ static const Gfx bbh_seg7_dl_0700D428[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0700D350.l, 1), - gsSPLight(&bbh_seg7_lights_0700D350.a, 2), + gsSPLightColor(LIGHT_1, 0x9eccffff), + gsSPLightColor(LIGHT_2, 0x3f5166ff), gsSPVertex(bbh_seg7_vertex_0700D368, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/bbh/areas/1/16/model.inc.c b/levels/bbh/areas/1/16/model.inc.c index 0b1c055b..3a9d0a91 100644 --- a/levels/bbh/areas/1/16/model.inc.c +++ b/levels/bbh/areas/1/16/model.inc.c @@ -1,20 +1,8 @@ // 0x0700D850 - 0x0700D868 -static const Lights1 bbh_seg7_lights_0700D850 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x0700D868 - 0x0700D880 -static const Lights1 bbh_seg7_lights_0700D868 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x96, 0x96, 0x96, 0x28, 0x28, 0x28 -); // 0x0700D880 - 0x0700D898 -static const Lights1 bbh_seg7_lights_0700D880 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D898 - 0x0700D918 static const Vtx bbh_seg7_vertex_0700D898[] = { @@ -473,19 +461,19 @@ static const Gfx bbh_seg7_dl_0700EE98[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0700D850.l, 1), - gsSPLight(&bbh_seg7_lights_0700D850.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_0700D898, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&bbh_seg7_lights_0700D868.l, 1), - gsSPLight(&bbh_seg7_lights_0700D868.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(bbh_seg7_vertex_0700D918, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 2, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), - gsSPLight(&bbh_seg7_lights_0700D880.l, 1), - gsSPLight(&bbh_seg7_lights_0700D880.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0700D9B8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 4, 5, 0, 0x0, 0, 2, 3, 0x0), diff --git a/levels/bbh/areas/1/18/model.inc.c b/levels/bbh/areas/1/18/model.inc.c index dd7b78e8..5e2a08e7 100644 --- a/levels/bbh/areas/1/18/model.inc.c +++ b/levels/bbh/areas/1/18/model.inc.c @@ -1,26 +1,10 @@ // 0x0700F8B8 - 0x0700F8D0 -static const Lights1 bbh_seg7_lights_0700F8B8 = gdSPDefLights1( - 0x65, 0x65, 0x38, - 0xfe, 0xfe, 0x8c, 0x28, 0x28, 0x28 -); // 0x0700F8D0 - 0x0700F8E8 -static const Lights1 bbh_seg7_lights_0700F8D0 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x0700F8E8 - 0x0700F900 -static const Lights1 bbh_seg7_lights_0700F8E8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F900 - 0x0700F918 -static const Lights1 bbh_seg7_lights_0700F900 = gdSPDefLights1( - 0x33, 0x2c, 0x20, - 0x80, 0x70, 0x52, 0x28, 0x28, 0x28 -); // 0x0700F918 - 0x0700F9F8 static const Vtx bbh_seg7_vertex_0700F918[] = { @@ -394,8 +378,8 @@ static const Gfx bbh_seg7_dl_07010A48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0700F8B8.l, 1), - gsSPLight(&bbh_seg7_lights_0700F8B8.a, 2), + gsSPLightColor(LIGHT_1, 0xfefe8cff), + gsSPLightColor(LIGHT_2, 0x656538ff), gsSPVertex(bbh_seg7_vertex_0700F918, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 5, 7, 8, 0x0), @@ -404,13 +388,13 @@ static const Gfx bbh_seg7_dl_07010A48[] = { gsSPVertex(bbh_seg7_vertex_0700F9F8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 0, 6, 1, 0x0), - gsSPLight(&bbh_seg7_lights_0700F8D0.l, 1), - gsSPLight(&bbh_seg7_lights_0700F8D0.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_0700FA68, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&bbh_seg7_lights_0700F8E8.l, 1), - gsSPLight(&bbh_seg7_lights_0700F8E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0700FAE8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -423,18 +407,18 @@ static const Gfx bbh_seg7_dl_07010B58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0700F8B8.l, 1), - gsSPLight(&bbh_seg7_lights_0700F8B8.a, 2), + gsSPLightColor(LIGHT_1, 0xfefe8cff), + gsSPLightColor(LIGHT_2, 0x656538ff), gsSPVertex(bbh_seg7_vertex_0700FBA8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&bbh_seg7_lights_0700F8E8.l, 1), - gsSPLight(&bbh_seg7_lights_0700F8E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0700FBE8, 12, 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, 10, 11, 0x0), - gsSPLight(&bbh_seg7_lights_0700F900.l, 1), - gsSPLight(&bbh_seg7_lights_0700F900.a, 2), + gsSPLightColor(LIGHT_1, 0x807052ff), + gsSPLightColor(LIGHT_2, 0x332c20ff), gsSPVertex(bbh_seg7_vertex_0700FCA8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -447,14 +431,14 @@ static const Gfx bbh_seg7_dl_07010C30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0700F8B8.l, 1), - gsSPLight(&bbh_seg7_lights_0700F8B8.a, 2), + gsSPLightColor(LIGHT_1, 0xfefe8cff), + gsSPLightColor(LIGHT_2, 0x656538ff), gsSPVertex(bbh_seg7_vertex_0700FD68, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), - gsSPLight(&bbh_seg7_lights_0700F8E8.l, 1), - gsSPLight(&bbh_seg7_lights_0700F8E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0700FE28, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 4, 1, 0x0), diff --git a/levels/bbh/areas/1/19/model.inc.c b/levels/bbh/areas/1/19/model.inc.c index 577f5337..ff84af20 100644 --- a/levels/bbh/areas/1/19/model.inc.c +++ b/levels/bbh/areas/1/19/model.inc.c @@ -1,8 +1,4 @@ // 0x07011228 - 0x07011240 -static const Lights1 bbh_seg7_lights_07011228 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011240 - 0x070112C0 static const Vtx bbh_seg7_vertex_07011240[] = { @@ -252,8 +248,8 @@ static const Gfx bbh_seg7_dl_07011DF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07011228.l, 1), - gsSPLight(&bbh_seg7_lights_07011228.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07011240, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/bbh/areas/1/20/model.inc.c b/levels/bbh/areas/1/20/model.inc.c index be26cd06..ff63cd51 100644 --- a/levels/bbh/areas/1/20/model.inc.c +++ b/levels/bbh/areas/1/20/model.inc.c @@ -1,8 +1,4 @@ // 0x07012318 - 0x07012330 -static const Lights1 bbh_seg7_lights_07012318 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07012330 - 0x07012430 static const Vtx bbh_seg7_vertex_07012330[] = { @@ -37,8 +33,8 @@ static const Gfx bbh_seg7_dl_07012470[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07012318.l, 1), - gsSPLight(&bbh_seg7_lights_07012318.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07012330, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 6, 2, 0x0), diff --git a/levels/bbh/areas/1/22/model.inc.c b/levels/bbh/areas/1/22/model.inc.c index f20a6871..45d9b3c6 100644 --- a/levels/bbh/areas/1/22/model.inc.c +++ b/levels/bbh/areas/1/22/model.inc.c @@ -1,14 +1,6 @@ // 0x07012758 - 0x07012770 -static const Lights1 bbh_seg7_lights_07012758 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x96, 0x96, 0x96, 0x28, 0x28, 0x28 -); // 0x07012770 - 0x07012788 -static const Lights1 bbh_seg7_lights_07012770 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07012788 - 0x070127C8 static const Vtx bbh_seg7_vertex_07012788[] = { @@ -303,8 +295,8 @@ static const Gfx bbh_seg7_dl_07013508[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07012758.l, 1), - gsSPLight(&bbh_seg7_lights_07012758.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(bbh_seg7_vertex_07012788, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -315,8 +307,8 @@ static const Gfx bbh_seg7_dl_07013550[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07012770.l, 1), - gsSPLight(&bbh_seg7_lights_07012770.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_070127C8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/bbh/areas/1/24/model.inc.c b/levels/bbh/areas/1/24/model.inc.c index 4692f501..254cb93a 100644 --- a/levels/bbh/areas/1/24/model.inc.c +++ b/levels/bbh/areas/1/24/model.inc.c @@ -1,14 +1,6 @@ // 0x07013C58 - 0x07013C70 -static const Lights1 bbh_seg7_lights_07013C58 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x07013C70 - 0x07013C88 -static const Lights1 bbh_seg7_lights_07013C70 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07013C88 - 0x07013D08 static const Vtx bbh_seg7_vertex_07013C88[] = { @@ -321,13 +313,13 @@ static const Gfx bbh_seg7_dl_07014B28[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07013C58.l, 1), - gsSPLight(&bbh_seg7_lights_07013C58.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_07013C88, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&bbh_seg7_lights_07013C70.l, 1), - gsSPLight(&bbh_seg7_lights_07013C70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07013D08, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -340,8 +332,8 @@ static const Gfx bbh_seg7_dl_07014BC8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07013C58.l, 1), - gsSPLight(&bbh_seg7_lights_07013C58.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_07013DC8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -352,8 +344,8 @@ static const Gfx bbh_seg7_dl_07014C10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07013C70.l, 1), - gsSPLight(&bbh_seg7_lights_07013C70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07013E08, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/bbh/areas/1/28/model.inc.c b/levels/bbh/areas/1/28/model.inc.c index 437165eb..d6800bcf 100644 --- a/levels/bbh/areas/1/28/model.inc.c +++ b/levels/bbh/areas/1/28/model.inc.c @@ -1,8 +1,4 @@ // 0x07015A90 - 0x07015AA8 -static const Lights1 bbh_seg7_lights_07015A90 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07015AA8 - 0x07015B98 static const Vtx bbh_seg7_vertex_07015AA8[] = { @@ -394,8 +390,8 @@ static const Gfx bbh_seg7_dl_07016D38[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07015A90.l, 1), - gsSPLight(&bbh_seg7_lights_07015A90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07015AA8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bbh/areas/1/29/model.inc.c b/levels/bbh/areas/1/29/model.inc.c index f76f7fc9..447a9f8a 100644 --- a/levels/bbh/areas/1/29/model.inc.c +++ b/levels/bbh/areas/1/29/model.inc.c @@ -1,8 +1,4 @@ // 0x07017480 - 0x07017498 -static const Lights1 bbh_seg7_lights_07017480 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07017498 - 0x07017518 static const Vtx bbh_seg7_vertex_07017498[] = { @@ -21,8 +17,8 @@ static const Gfx bbh_seg7_dl_07017518[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07017480.l, 1), - gsSPLight(&bbh_seg7_lights_07017480.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07017498, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/bbh/areas/1/3/model.inc.c b/levels/bbh/areas/1/3/model.inc.c index 7bcc13f8..63e110ef 100644 --- a/levels/bbh/areas/1/3/model.inc.c +++ b/levels/bbh/areas/1/3/model.inc.c @@ -1,14 +1,6 @@ // 0x070079B0 - 0x070079C8 -static const Lights1 bbh_seg7_lights_070079B0 = gdSPDefLights1( - 0x3f, 0x51, 0x66, - 0x9e, 0xcc, 0xff, 0x28, 0x28, 0x28 -); // 0x070079C8 - 0x070079E0 -static const Lights1 bbh_seg7_lights_070079C8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070079E0 - 0x07007AA0 static const Vtx bbh_seg7_vertex_070079E0[] = { @@ -39,8 +31,8 @@ static const Gfx bbh_seg7_dl_07007AE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_070079B0.l, 1), - gsSPLight(&bbh_seg7_lights_070079B0.a, 2), + gsSPLightColor(LIGHT_1, 0x9eccffff), + gsSPLightColor(LIGHT_2, 0x3f5166ff), gsSPVertex(bbh_seg7_vertex_070079E0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -53,8 +45,8 @@ static const Gfx bbh_seg7_dl_07007B48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_070079C8.l, 1), - gsSPLight(&bbh_seg7_lights_070079C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07007AA0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/bbh/areas/1/31/model.inc.c b/levels/bbh/areas/1/31/model.inc.c index fb295fd5..5324aac5 100644 --- a/levels/bbh/areas/1/31/model.inc.c +++ b/levels/bbh/areas/1/31/model.inc.c @@ -1,14 +1,6 @@ // 0x070177F8 - 0x07017810 -static const Lights1 bbh_seg7_lights_070177F8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07017810 - 0x07017828 -static const Lights1 bbh_seg7_lights_07017810 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07017828 - 0x07017918 static const Vtx bbh_seg7_vertex_07017828[] = { @@ -623,8 +615,8 @@ static const Gfx bbh_seg7_dl_070195A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_070177F8.l, 1), - gsSPLight(&bbh_seg7_lights_070177F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07017828, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -836,8 +828,8 @@ static const Gfx bbh_seg7_dl_07019E60[] = { // 0x07019EA8 - 0x07019EF8 static const Gfx bbh_seg7_dl_07019EA8[] = { - gsSPLight(&bbh_seg7_lights_07017810.l, 1), - gsSPLight(&bbh_seg7_lights_07017810.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(bbh_seg7_vertex_07019508, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 1, 5, 0x0, 6, 7, 2, 0x0), diff --git a/levels/bbh/areas/1/33/model.inc.c b/levels/bbh/areas/1/33/model.inc.c index 1330cb53..ab7fdab4 100644 --- a/levels/bbh/areas/1/33/model.inc.c +++ b/levels/bbh/areas/1/33/model.inc.c @@ -1,14 +1,6 @@ // 0x0701A0F0 - 0x0701A108 -static const Lights1 bbh_seg7_lights_0701A0F0 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x0701A108 - 0x0701A120 -static const Lights1 bbh_seg7_lights_0701A108 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701A120 - 0x0701A160 static const Vtx bbh_seg7_vertex_0701A120[] = { @@ -119,8 +111,8 @@ static const Gfx bbh_seg7_dl_0701A620[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701A0F0.l, 1), - gsSPLight(&bbh_seg7_lights_0701A0F0.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_0701A120, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -131,8 +123,8 @@ static const Gfx bbh_seg7_dl_0701A668[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701A108.l, 1), - gsSPLight(&bbh_seg7_lights_0701A108.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701A160, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bbh/areas/1/34/model.inc.c b/levels/bbh/areas/1/34/model.inc.c index d4e7e57e..bd579a1e 100644 --- a/levels/bbh/areas/1/34/model.inc.c +++ b/levels/bbh/areas/1/34/model.inc.c @@ -1,20 +1,8 @@ // 0x0701A920 - 0x0701A938 -static const Lights1 bbh_seg7_lights_0701A920 = gdSPDefLights1( - 0x10, 0x11, 0x16, - 0x2a, 0x2c, 0x37, 0x28, 0x28, 0x28 -); // 0x0701A938 - 0x0701A950 -static const Lights1 bbh_seg7_lights_0701A938 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x96, 0x96, 0x96, 0x28, 0x28, 0x28 -); // 0x0701A950 - 0x0701A968 -static const Lights1 bbh_seg7_lights_0701A950 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701A968 - 0x0701A9C8 static const Vtx bbh_seg7_vertex_0701A968[] = { @@ -229,8 +217,8 @@ static const Gfx bbh_seg7_dl_0701B328[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701A920.l, 1), - gsSPLight(&bbh_seg7_lights_0701A920.a, 2), + gsSPLightColor(LIGHT_1, 0x2a2c37ff), + gsSPLightColor(LIGHT_2, 0x101116ff), gsSPVertex(bbh_seg7_vertex_0701A968, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 2, 0x0), @@ -242,12 +230,12 @@ static const Gfx bbh_seg7_dl_0701B380[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701A938.l, 1), - gsSPLight(&bbh_seg7_lights_0701A938.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(bbh_seg7_vertex_0701A9C8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&bbh_seg7_lights_0701A950.l, 1), - gsSPLight(&bbh_seg7_lights_0701A950.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701AA08, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bbh/areas/1/35/model.inc.c b/levels/bbh/areas/1/35/model.inc.c index a1394160..a28b7dc4 100644 --- a/levels/bbh/areas/1/35/model.inc.c +++ b/levels/bbh/areas/1/35/model.inc.c @@ -1,44 +1,16 @@ // 0x0701B7A8 - 0x0701B7C0 -static const Lights1 bbh_seg7_lights_0701B7A8 = gdSPDefLights1( - 0x24, 0x11, 0x0b, - 0x5a, 0x2c, 0x1d, 0x28, 0x28, 0x28 -); // 0x0701B7C0 - 0x0701B7D8 -static const Lights1 bbh_seg7_lights_0701B7C0 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x0701B7D8 - 0x0701B7F0 -static const Lights1 bbh_seg7_lights_0701B7D8 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x96, 0x96, 0x96, 0x28, 0x28, 0x28 -); // 0x0701B7F0 - 0x0701B808 -static const Lights1 bbh_seg7_lights_0701B7F0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701B808 - 0x0701B820 -static const Lights1 bbh_seg7_lights_0701B808 = gdSPDefLights1( - 0x24, 0x07, 0x00, - 0x5a, 0x13, 0x00, 0x28, 0x28, 0x28 -); // 0x0701B820 - 0x0701B838 -static const Lights1 bbh_seg7_lights_0701B820 = gdSPDefLights1( - 0x44, 0x1c, 0x0c, - 0xaa, 0x46, 0x1e, 0x28, 0x28, 0x28 -); // 0x0701B838 - 0x0701B850 -static const Lights1 bbh_seg7_lights_0701B838 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0701B850 - 0x0701B940 static const Vtx bbh_seg7_vertex_0701B850[] = { @@ -736,8 +708,8 @@ static const Gfx bbh_seg7_dl_0701D9C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701B7A8.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7A8.a, 2), + gsSPLightColor(LIGHT_1, 0x5a2c1dff), + gsSPLightColor(LIGHT_2, 0x24110bff), gsSPVertex(bbh_seg7_vertex_0701B850, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -754,8 +726,8 @@ static const Gfx bbh_seg7_dl_0701DA50[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701B7C0.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7C0.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_0701B9B0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 8, 9, 0x0), @@ -775,15 +747,15 @@ static const Gfx bbh_seg7_dl_0701DB20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701B7D8.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7D8.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(bbh_seg7_vertex_0701BAF0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 13, 14, 0x0, 0, 15, 1, 0x0), - gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701BBF0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -797,15 +769,15 @@ static const Gfx bbh_seg7_dl_0701DBF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701B7A8.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7A8.a, 2), + gsSPLightColor(LIGHT_1, 0x5a2c1dff), + gsSPLightColor(LIGHT_2, 0x24110bff), gsSPVertex(bbh_seg7_vertex_0701BCF0, 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(12, 14, 13, 0x0, 0, 15, 1, 0x0), - gsSPLight(&bbh_seg7_lights_0701B808.l, 1), - gsSPLight(&bbh_seg7_lights_0701B808.a, 2), + gsSPLightColor(LIGHT_1, 0x5a1300ff), + gsSPLightColor(LIGHT_2, 0x240700ff), gsSPVertex(bbh_seg7_vertex_0701BDF0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -851,8 +823,8 @@ static const Gfx bbh_seg7_dl_0701DBF0[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0), - gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701C730, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -862,8 +834,8 @@ static const Gfx bbh_seg7_dl_0701DBF0[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP1Triangle( 0, 2, 10, 0x0), - gsSPLight(&bbh_seg7_lights_0701B820.l, 1), - gsSPLight(&bbh_seg7_lights_0701B820.a, 2), + gsSPLightColor(LIGHT_1, 0xaa461eff), + gsSPLightColor(LIGHT_2, 0x441c0cff), gsSPVertex(bbh_seg7_vertex_0701C8D0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -876,8 +848,8 @@ static const Gfx bbh_seg7_dl_0701DFA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701B7C0.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7C0.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_0701C990, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -920,8 +892,8 @@ static const Gfx bbh_seg7_dl_0701E188[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701D030, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 3, 8, 0x0), @@ -936,13 +908,13 @@ static const Gfx bbh_seg7_dl_0701E210[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701B7D8.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7D8.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(bbh_seg7_vertex_0701D130, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&bbh_seg7_lights_0701B7F0.l, 1), - gsSPLight(&bbh_seg7_lights_0701B7F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701D1B0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 3, 9, 4, 0x0), @@ -996,8 +968,8 @@ static const Gfx bbh_seg7_dl_0701E430[] = { // 0x0701E4B0 - 0x0701E4E0 static const Gfx bbh_seg7_dl_0701E4B0[] = { - gsSPLight(&bbh_seg7_lights_0701B838.l, 1), - gsSPLight(&bbh_seg7_lights_0701B838.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(bbh_seg7_vertex_0701D980, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/bbh/areas/1/36/model.inc.c b/levels/bbh/areas/1/36/model.inc.c index d6501ead..da18bff9 100644 --- a/levels/bbh/areas/1/36/model.inc.c +++ b/levels/bbh/areas/1/36/model.inc.c @@ -1,8 +1,4 @@ // 0x0701E5D8 - 0x0701E5F0 -static const Lights1 bbh_seg7_lights_0701E5D8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701E5F0 - 0x0701E6E0 static const Vtx bbh_seg7_vertex_0701E5F0[] = { @@ -55,8 +51,8 @@ static const Gfx bbh_seg7_dl_0701E810[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701E5D8.l, 1), - gsSPLight(&bbh_seg7_lights_0701E5D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(bbh_seg7_vertex_0701E5F0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bbh/areas/1/37/model.inc.c b/levels/bbh/areas/1/37/model.inc.c index 3810ed45..0b7ed4c3 100644 --- a/levels/bbh/areas/1/37/model.inc.c +++ b/levels/bbh/areas/1/37/model.inc.c @@ -1,14 +1,6 @@ // 0x0701E948 - 0x0701E960 -static const Lights1 bbh_seg7_lights_0701E948 = gdSPDefLights1( - 0x24, 0x11, 0x0b, - 0x5a, 0x2c, 0x1d, 0x28, 0x28, 0x28 -); // 0x0701E960 - 0x0701E978 -static const Lights1 bbh_seg7_lights_0701E960 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x96, 0x96, 0x96, 0x28, 0x28, 0x28 -); // 0x0701E978 - 0x0701E9F8 static const Vtx bbh_seg7_vertex_0701E978[] = { @@ -73,13 +65,13 @@ static const Gfx bbh_seg7_dl_0701EC18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701E948.l, 1), - gsSPLight(&bbh_seg7_lights_0701E948.a, 2), + gsSPLightColor(LIGHT_1, 0x5a2c1dff), + gsSPLightColor(LIGHT_2, 0x24110bff), gsSPVertex(bbh_seg7_vertex_0701E978, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&bbh_seg7_lights_0701E960.l, 1), - gsSPLight(&bbh_seg7_lights_0701E960.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(bbh_seg7_vertex_0701E9F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bbh/areas/1/7/model.inc.c b/levels/bbh/areas/1/7/model.inc.c index af6faf5c..cbb05621 100644 --- a/levels/bbh/areas/1/7/model.inc.c +++ b/levels/bbh/areas/1/7/model.inc.c @@ -1,20 +1,8 @@ // 0x07008F18 - 0x07008F30 -static const Lights1 bbh_seg7_lights_07008F18 = gdSPDefLights1( - 0x20, 0x20, 0x20, - 0x50, 0x50, 0x50, 0x28, 0x28, 0x28 -); // 0x07008F30 - 0x07008F48 -static const Lights1 bbh_seg7_lights_07008F30 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x96, 0x96, 0x96, 0x28, 0x28, 0x28 -); // 0x07008F48 - 0x07008F60 -static const Lights1 bbh_seg7_lights_07008F48 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07008F60 - 0x07008FE0 static const Vtx bbh_seg7_vertex_07008F60[] = { @@ -531,21 +519,21 @@ static const Gfx bbh_seg7_dl_0700A800[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07008F18.l, 1), - gsSPLight(&bbh_seg7_lights_07008F18.a, 2), + gsSPLightColor(LIGHT_1, 0x505050ff), + gsSPLightColor(LIGHT_2, 0x202020ff), gsSPVertex(bbh_seg7_vertex_07008F60, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&bbh_seg7_lights_07008F30.l, 1), - gsSPLight(&bbh_seg7_lights_07008F30.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(bbh_seg7_vertex_07008FE0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 4, 0x0), gsSP2Triangles( 9, 10, 8, 0x0, 10, 0, 8, 0x0), gsSP2Triangles( 0, 2, 11, 0x0, 12, 5, 13, 0x0), gsSP2Triangles( 7, 14, 8, 0x0, 12, 13, 15, 0x0), - gsSPLight(&bbh_seg7_lights_07008F48.l, 1), - gsSPLight(&bbh_seg7_lights_07008F48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_070090E0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bbh/areas/1/8/model.inc.c b/levels/bbh/areas/1/8/model.inc.c index abc5a6ab..d47f4e9d 100644 --- a/levels/bbh/areas/1/8/model.inc.c +++ b/levels/bbh/areas/1/8/model.inc.c @@ -1,8 +1,4 @@ // 0x0700B0D8 - 0x0700B0F0 -static const Lights1 bbh_seg7_lights_0700B0D8 = gdSPDefLights1( - 0x3f, 0x51, 0x66, - 0x9e, 0xcc, 0xff, 0x28, 0x28, 0x28 -); // 0x0700B0F0 - 0x0700B170 static const Vtx bbh_seg7_vertex_0700B0F0[] = { @@ -21,8 +17,8 @@ static const Gfx bbh_seg7_dl_0700B170[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0700B0D8.l, 1), - gsSPLight(&bbh_seg7_lights_0700B0D8.a, 2), + gsSPLightColor(LIGHT_1, 0x9eccffff), + gsSPLightColor(LIGHT_2, 0x3f5166ff), gsSPVertex(bbh_seg7_vertex_0700B0F0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/bbh/coffin/model.inc.c b/levels/bbh/coffin/model.inc.c index 147b833c..069406fc 100644 --- a/levels/bbh/coffin/model.inc.c +++ b/levels/bbh/coffin/model.inc.c @@ -1,8 +1,4 @@ // 0x07020368 - 0x07020380 -static const Lights1 bbh_seg7_lights_07020368 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07020380 - 0x07020480 static const Vtx bbh_seg7_vertex_07020380[] = { @@ -61,8 +57,8 @@ static const Gfx bbh_seg7_dl_070205C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07004400), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 16 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07020368.l, 1), - gsSPLight(&bbh_seg7_lights_07020368.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07020380, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/bbh/merry_go_round/model.inc.c b/levels/bbh/merry_go_round/model.inc.c index 0647beca..d1a0f69d 100644 --- a/levels/bbh/merry_go_round/model.inc.c +++ b/levels/bbh/merry_go_round/model.inc.c @@ -1,8 +1,4 @@ // 0x07020058 - 0x07020070 -static const Lights1 bbh_seg7_lights_07020058 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07020070 - 0x07020130 static const Vtx bbh_seg7_vertex_07020070[] = { @@ -45,8 +41,8 @@ static const Gfx bbh_seg7_dl_07020230[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_07020058.l, 1), - gsSPLight(&bbh_seg7_lights_07020058.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_07020070, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/bbh/moving_bookshelf/model.inc.c b/levels/bbh/moving_bookshelf/model.inc.c index f20df1eb..b293bdb0 100644 --- a/levels/bbh/moving_bookshelf/model.inc.c +++ b/levels/bbh/moving_bookshelf/model.inc.c @@ -1,8 +1,4 @@ // 0x0701FB20 - 0x0701FB38 -static const Lights1 bbh_seg7_lights_0701FB20 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701FB38 - 0x0701FB78 static const Vtx bbh_seg7_vertex_0701FB38[] = { @@ -37,8 +33,8 @@ static const Gfx bbh_seg7_dl_0701FC78[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701FB20.l, 1), - gsSPLight(&bbh_seg7_lights_0701FB20.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701FB38, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bbh/staircase_step/model.inc.c b/levels/bbh/staircase_step/model.inc.c index 9b0a917b..fbf7914c 100644 --- a/levels/bbh/staircase_step/model.inc.c +++ b/levels/bbh/staircase_step/model.inc.c @@ -1,8 +1,4 @@ // 0x0701F0E0 - 0x0701F0F8 -static const Lights1 bbh_seg7_lights_0701F0E0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701F0F8 - 0x0701F138 static const Vtx bbh_seg7_vertex_0701F0F8[] = { @@ -37,8 +33,8 @@ static const Gfx bbh_seg7_dl_0701F238[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701F0E0.l, 1), - gsSPLight(&bbh_seg7_lights_0701F0E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701F0F8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bbh/tilting_trap_platform/model.inc.c b/levels/bbh/tilting_trap_platform/model.inc.c index 5d07d918..e7ba1889 100644 --- a/levels/bbh/tilting_trap_platform/model.inc.c +++ b/levels/bbh/tilting_trap_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x0701F378 - 0x0701F390 -static const Lights1 bbh_seg7_lights_0701F378 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701F390 - 0x0701F3D0 static const Vtx bbh_seg7_vertex_0701F390[] = { @@ -45,8 +41,8 @@ static const Gfx bbh_seg7_dl_0701F510[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701F378.l, 1), - gsSPLight(&bbh_seg7_lights_0701F378.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701F390, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bbh/tumbling_platform_far/model.inc.c b/levels/bbh/tumbling_platform_far/model.inc.c index 9e523ee7..8d5f7acc 100644 --- a/levels/bbh/tumbling_platform_far/model.inc.c +++ b/levels/bbh/tumbling_platform_far/model.inc.c @@ -1,8 +1,4 @@ // 0x0701F6A8 - 0x0701F6C0 -static const Lights1 bbh_seg7_lights_0701F6A8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701F6C0 - 0x0701F780 static const Vtx bbh_seg7_vertex_0701F6C0[] = { @@ -25,8 +21,8 @@ static const Gfx bbh_seg7_dl_0701F780[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701F6A8.l, 1), - gsSPLight(&bbh_seg7_lights_0701F6A8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701F6C0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/bbh/tumbling_platform_near/model.inc.c b/levels/bbh/tumbling_platform_near/model.inc.c index f5ab8dcb..119beb77 100644 --- a/levels/bbh/tumbling_platform_near/model.inc.c +++ b/levels/bbh/tumbling_platform_near/model.inc.c @@ -1,8 +1,4 @@ // 0x0701F858 - 0x0701F870 -static const Lights1 bbh_seg7_lights_0701F858 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701F870 - 0x0701F960 static const Vtx bbh_seg7_vertex_0701F870[] = { @@ -43,8 +39,8 @@ static const Gfx bbh_seg7_dl_0701FA10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bbh_seg7_lights_0701F858.l, 1), - gsSPLight(&bbh_seg7_lights_0701F858.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bbh_seg7_vertex_0701F870, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bitdw/ferris_wheel_axle/model.inc.c b/levels/bitdw/ferris_wheel_axle/model.inc.c index 9370404d..cb065b6f 100644 --- a/levels/bitdw/ferris_wheel_axle/model.inc.c +++ b/levels/bitdw/ferris_wheel_axle/model.inc.c @@ -1,8 +1,4 @@ // 0x0700B4F0 - 0x0700B508 -static const Lights1 bitdw_seg7_lights_0700B4F0 = gdSPDefLights1( - 0x39, 0x6f, 0x5d, - 0x79, 0xeb, 0xc5, 0x28, 0x28, 0x28 -); // 0x0700B508 - 0x0700B5F8 static const Vtx bitdw_seg7_vertex_0700B508[] = { @@ -73,8 +69,8 @@ static const Gfx bitdw_seg7_dl_0700B808[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bitdw_seg7_lights_0700B4F0.l, 1), - gsSPLight(&bitdw_seg7_lights_0700B4F0.a, 2), + gsSPLightColor(LIGHT_1, 0x79ebc5ff), + gsSPLightColor(LIGHT_2, 0x396f5dff), gsSPVertex(bitdw_seg7_vertex_0700B508, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/bitfs/areas/1/18/model.inc.c b/levels/bitfs/areas/1/18/model.inc.c index 44b913db..86b99477 100644 --- a/levels/bitfs/areas/1/18/model.inc.c +++ b/levels/bitfs/areas/1/18/model.inc.c @@ -1,38 +1,14 @@ // 0x0700C430 - 0x0700C448 -static const Lights1 bitfs_seg7_lights_0700C430 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x0700C448 - 0x0700C460 -static const Lights1 bitfs_seg7_lights_0700C448 = gdSPDefLights1( - 0x64, 0x64, 0x64, - 0xc8, 0xc8, 0xc8, 0x28, 0x28, 0x28 -); // 0x0700C460 - 0x0700C478 -static const Lights1 bitfs_seg7_lights_0700C460 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700C478 - 0x0700C490 -static const Lights1 bitfs_seg7_lights_0700C478 = gdSPDefLights1( - 0x32, 0x32, 0x32, - 0x64, 0x64, 0x64, 0x28, 0x28, 0x28 -); // 0x0700C490 - 0x0700C4A8 -static const Lights1 bitfs_seg7_lights_0700C490 = gdSPDefLights1( - 0x62, 0x7f, 0x7f, - 0xc4, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700C4A8 - 0x0700C4C0 -static const Lights1 bitfs_seg7_lights_0700C4A8 = gdSPDefLights1( - 0x32, 0x7f, 0x59, - 0x65, 0xff, 0xb2, 0x28, 0x28, 0x28 -); // 0x0700C4C0 - 0x0700C540 static const Vtx bitfs_seg7_vertex_0700C4C0[] = { @@ -693,21 +669,21 @@ static const Gfx bitfs_seg7_dl_0700E460[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bitfs_seg7_lights_0700C430.l, 1), - gsSPLight(&bitfs_seg7_lights_0700C430.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(bitfs_seg7_vertex_0700C4C0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&bitfs_seg7_lights_0700C448.l, 1), - gsSPLight(&bitfs_seg7_lights_0700C448.a, 2), + gsSPLightColor(LIGHT_1, 0xc8c8c8ff), + gsSPLightColor(LIGHT_2, 0x646464ff), gsSPVertex(bitfs_seg7_vertex_0700C540, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&bitfs_seg7_lights_0700C460.l, 1), - gsSPLight(&bitfs_seg7_lights_0700C460.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(bitfs_seg7_vertex_0700C580, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&bitfs_seg7_lights_0700C478.l, 1), - gsSPLight(&bitfs_seg7_lights_0700C478.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x323232ff), gsSPVertex(bitfs_seg7_vertex_0700C5C0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -718,8 +694,8 @@ static const Gfx bitfs_seg7_dl_0700E530[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bitfs_seg7_lights_0700C490.l, 1), - gsSPLight(&bitfs_seg7_lights_0700C490.a, 2), + gsSPLightColor(LIGHT_1, 0xc4ffffff), + gsSPLightColor(LIGHT_2, 0x627f7fff), gsSPVertex(bitfs_seg7_vertex_0700C600, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), @@ -818,8 +794,8 @@ static const Gfx bitfs_seg7_dl_0700E530[] = { gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), gsSP2Triangles( 9, 12, 10, 0x0, 6, 13, 7, 0x0), gsSP1Triangle( 3, 14, 4, 0x0), - gsSPLight(&bitfs_seg7_lights_0700C4A8.l, 1), - gsSPLight(&bitfs_seg7_lights_0700C4A8.a, 2), + gsSPLightColor(LIGHT_1, 0x65ffb2ff), + gsSPLightColor(LIGHT_2, 0x327f59ff), gsSPVertex(bitfs_seg7_vertex_0700DCE0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 0, 2, 9, 0x0), diff --git a/levels/bits/areas/1/22/model.inc.c b/levels/bits/areas/1/22/model.inc.c index 9d0b8964..7d5b973b 100644 --- a/levels/bits/areas/1/22/model.inc.c +++ b/levels/bits/areas/1/22/model.inc.c @@ -1,20 +1,8 @@ // 0x07012DB0 - 0x07012DC8 -static const Lights1 bits_seg7_lights_07012DB0 = gdSPDefLights1( - 0x58, 0x5f, 0x7d, - 0xb1, 0xbf, 0xfa, 0x28, 0x28, 0x28 -); // 0x07012DC8 - 0x07012DE0 -static const Lights1 bits_seg7_lights_07012DC8 = gdSPDefLights1( - 0x4c, 0x46, 0x6c, - 0x98, 0x8c, 0xd8, 0x28, 0x28, 0x28 -); // 0x07012DE0 - 0x07012DF8 -static const Lights1 bits_seg7_lights_07012DE0 = gdSPDefLights1( - 0x59, 0x32, 0x7f, - 0xb2, 0x65, 0xff, 0x28, 0x28, 0x28 -); // 0x07012DF8 - 0x07012E78 static const Vtx bits_seg7_vertex_07012DF8[] = { @@ -141,14 +129,14 @@ static const Gfx bits_seg7_dl_070133B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bits_seg7_lights_07012DB0.l, 1), - gsSPLight(&bits_seg7_lights_07012DB0.a, 2), + gsSPLightColor(LIGHT_1, 0xb1bffaff), + gsSPLightColor(LIGHT_2, 0x585f7dff), gsSPVertex(bits_seg7_vertex_07012DF8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 0, 5, 6, 0x0), gsSP2Triangles( 0, 7, 1, 0x0, 0, 4, 5, 0x0), - gsSPLight(&bits_seg7_lights_07012DC8.l, 1), - gsSPLight(&bits_seg7_lights_07012DC8.a, 2), + gsSPLightColor(LIGHT_1, 0x988cd8ff), + gsSPLightColor(LIGHT_2, 0x4c466cff), gsSPVertex(bits_seg7_vertex_07012E78, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 3, 5, 9, 0x0), @@ -160,8 +148,8 @@ static const Gfx bits_seg7_dl_070133B8[] = { gsSPVertex(bits_seg7_vertex_07013058, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), - gsSPLight(&bits_seg7_lights_07012DE0.l, 1), - gsSPLight(&bits_seg7_lights_07012DE0.a, 2), + gsSPLightColor(LIGHT_1, 0xb265ffff), + gsSPLightColor(LIGHT_2, 0x59327fff), gsSPVertex(bits_seg7_vertex_070130F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bits/areas/1/24/model.inc.c b/levels/bits/areas/1/24/model.inc.c index 0e0d2ac8..fb13ef3c 100644 --- a/levels/bits/areas/1/24/model.inc.c +++ b/levels/bits/areas/1/24/model.inc.c @@ -1,8 +1,4 @@ // 0x07013890 - 0x070138A8 -static const Lights1 bits_seg7_lights_07013890 = gdSPDefLights1( - 0x14, 0x2f, 0x29, - 0x50, 0xbf, 0xa7, 0x28, 0x28, 0x28 -); // 0x070138A8 - 0x07013998 static const Vtx bits_seg7_vertex_070138A8[] = { @@ -73,8 +69,8 @@ static const Gfx bits_seg7_dl_07013BA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bits_seg7_lights_07013890.l, 1), - gsSPLight(&bits_seg7_lights_07013890.a, 2), + gsSPLightColor(LIGHT_1, 0x50bfa7ff), + gsSPLightColor(LIGHT_2, 0x142f29ff), gsSPVertex(bits_seg7_vertex_070138A8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/bob/areas/1/1/model.inc.c b/levels/bob/areas/1/1/model.inc.c index 97807418..498fa948 100644 --- a/levels/bob/areas/1/1/model.inc.c +++ b/levels/bob/areas/1/1/model.inc.c @@ -1,8 +1,4 @@ // 0x07002800 - 0x07002818 -static const Lights1 bob_seg7_lights_07002800 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002818 - 0x07002908 static const Vtx bob_seg7_vertex_07002818[] = { @@ -430,8 +426,8 @@ static const Gfx bob_seg7_dl_07003CA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bob_seg7_lights_07002800.l, 1), - gsSPLight(&bob_seg7_lights_07002800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bob_seg7_vertex_07002818, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0), gsSP2Triangles( 3, 0, 2, 0x0, 2, 1, 4, 0x0), diff --git a/levels/bob/areas/1/2/model.inc.c b/levels/bob/areas/1/2/model.inc.c index ac0ed4b9..019659b3 100644 --- a/levels/bob/areas/1/2/model.inc.c +++ b/levels/bob/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07004478 - 0x07004490 -static const Lights1 bob_seg7_lights_07004478 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004490 - 0x07004590 static const Vtx bob_seg7_vertex_07004490[] = { @@ -1451,8 +1447,8 @@ static const Gfx bob_seg7_dl_07008AF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bob_seg7_lights_07004478.l, 1), - gsSPLight(&bob_seg7_lights_07004478.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(bob_seg7_vertex_07004490, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/bob/areas/1/5/model.inc.c b/levels/bob/areas/1/5/model.inc.c index 48a9dcdf..53793c9b 100644 --- a/levels/bob/areas/1/5/model.inc.c +++ b/levels/bob/areas/1/5/model.inc.c @@ -1,14 +1,6 @@ // 0x0700A9E0 - 0x0700A9F8 -static const Lights1 bob_seg7_lights_0700A9E0 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A9F8 - 0x0700AA10 -static const Lights1 bob_seg7_lights_0700A9F8 = gdSPDefLights1( - 0x14, 0x14, 0x14, - 0x64, 0x64, 0x64, 0x28, 0x28, 0x28 -); // 0x0700AA10 - 0x0700AAF0 static const Vtx bob_seg7_vertex_0700AA10[] = { @@ -790,8 +782,8 @@ static const Gfx bob_seg7_dl_0700CFC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bob_seg7_lights_0700A9E0.l, 1), - gsSPLight(&bob_seg7_lights_0700A9E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(bob_seg7_vertex_0700AA10, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 1, 5, 2, 0x0), @@ -925,8 +917,8 @@ static const Gfx bob_seg7_dl_0700CFC0[] = { gsSPVertex(bob_seg7_vertex_0700BF30, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 4, 3, 5, 0x0), - gsSPLight(&bob_seg7_lights_0700A9F8.l, 1), - gsSPLight(&bob_seg7_lights_0700A9F8.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x141414ff), gsSPVertex(bob_seg7_vertex_0700BF90, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -945,8 +937,8 @@ static const Gfx bob_seg7_dl_0700D7D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bob_seg7_lights_0700A9E0.l, 1), - gsSPLight(&bob_seg7_lights_0700A9E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(bob_seg7_vertex_0700C170, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 5, 6, 3, 0x0), diff --git a/levels/bob/areas/1/6/model.inc.c b/levels/bob/areas/1/6/model.inc.c index ca18c57b..c1d0781e 100644 --- a/levels/bob/areas/1/6/model.inc.c +++ b/levels/bob/areas/1/6/model.inc.c @@ -1,8 +1,4 @@ // 0x0700DE30 - 0x0700DE48 -static const Lights1 bob_seg7_lights_0700DE30 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700DE48 - 0x0700DF38 static const Vtx bob_seg7_vertex_0700DE48[] = { @@ -83,8 +79,8 @@ static const Gfx bob_seg7_dl_0700E1E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bob_seg7_lights_0700DE30.l, 1), - gsSPLight(&bob_seg7_lights_0700DE30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(bob_seg7_vertex_0700DE48, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 5, 4, 7, 0x0), diff --git a/levels/bob/seesaw_platform/model.inc.c b/levels/bob/seesaw_platform/model.inc.c index 0271ad42..afe0b79e 100644 --- a/levels/bob/seesaw_platform/model.inc.c +++ b/levels/bob/seesaw_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x0700E510 - 0x0700E528 -static const Lights1 bob_seg7_lights_0700E510 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700E528 - 0x0700E628 static const Vtx bob_seg7_vertex_0700E528[] = { @@ -43,8 +39,8 @@ static const Gfx bob_seg7_dl_0700E6C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bob_seg7_lights_0700E510.l, 1), - gsSPLight(&bob_seg7_lights_0700E510.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bob_seg7_vertex_0700E528, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 0, 2, 0x0), diff --git a/levels/bowser_1/areas/1/1/model.inc.c b/levels/bowser_1/areas/1/1/model.inc.c index a5a85e2d..52ca0f29 100644 --- a/levels/bowser_1/areas/1/1/model.inc.c +++ b/levels/bowser_1/areas/1/1/model.inc.c @@ -1,8 +1,4 @@ // 0x07002000 - 0x07002018 -static const Lights1 bowser_1_seg7_lights_07002000 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002018 - 0x07002108 static const Vtx bowser_1_seg7_vertex_07002018[] = { @@ -127,8 +123,8 @@ static const Gfx bowser_1_seg7_dl_07002578[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_1_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_1_seg7_lights_07002000.l, 1), - gsSPLight(&bowser_1_seg7_lights_07002000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_1_seg7_vertex_07002018, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 5, 1, 6, 0x0, 7, 1, 8, 0x0), diff --git a/levels/bowser_3/areas/1/1/model.inc.c b/levels/bowser_3/areas/1/1/model.inc.c index 1947ba51..7abf36d6 100644 --- a/levels/bowser_3/areas/1/1/model.inc.c +++ b/levels/bowser_3/areas/1/1/model.inc.c @@ -1,14 +1,6 @@ // 0x07004030 - 0x07004048 -static const Lights1 bowser_3_seg7_lights_07004030 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07004048 - 0x07004060 -static const Lights1 bowser_3_seg7_lights_07004048 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004060 - 0x07004160 static const Vtx bowser_3_seg7_vertex_07004060[] = { @@ -113,16 +105,16 @@ static const Gfx bowser_3_seg7_dl_07004500[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07004030.l, 1), - gsSPLight(&bowser_3_seg7_lights_07004030.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_07004060, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), gsSP2Triangles( 6, 8, 12, 0x0, 13, 14, 15, 0x0), gsSPVertex(bowser_3_seg7_vertex_07004160, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07004048.l, 1), - gsSPLight(&bowser_3_seg7_lights_07004048.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_070041C0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 2, 3, 5, 0x0), diff --git a/levels/bowser_3/areas/1/bomb_stand/model.inc.c b/levels/bowser_3/areas/1/bomb_stand/model.inc.c index ca9e8a67..612a1446 100644 --- a/levels/bowser_3/areas/1/bomb_stand/model.inc.c +++ b/levels/bowser_3/areas/1/bomb_stand/model.inc.c @@ -1,8 +1,4 @@ // 0x07004740 - 0x07004758 -static const Lights1 bowser_3_seg7_lights_07004740 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004758 - 0x07004848 static const Vtx bowser_3_seg7_vertex_07004758[] = { @@ -41,8 +37,8 @@ static const Gfx bowser_3_seg7_dl_070048D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07004740.l, 1), - gsSPLight(&bowser_3_seg7_lights_07004740.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07004758, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/bowser_3/falling_platform_1/model.inc.c b/levels/bowser_3/falling_platform_1/model.inc.c index 10fe587c..630f8e0c 100644 --- a/levels/bowser_3/falling_platform_1/model.inc.c +++ b/levels/bowser_3/falling_platform_1/model.inc.c @@ -1,14 +1,6 @@ // 0x07002000 - 0x07002018 -static const Lights1 bowser_3_seg7_lights_07002000 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07002018 - 0x07002030 -static const Lights1 bowser_3_seg7_lights_07002018 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002030 - 0x07002090 static const Vtx bowser_3_seg7_vertex_07002030[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_070021D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07002000.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002000.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_07002030, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07002018.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002018.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07002090, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_10/model.inc.c b/levels/bowser_3/falling_platform_10/model.inc.c index 9d0ebe1b..2d951f87 100644 --- a/levels/bowser_3/falling_platform_10/model.inc.c +++ b/levels/bowser_3/falling_platform_10/model.inc.c @@ -1,14 +1,6 @@ // 0x07003CF8 - 0x07003D10 -static const Lights1 bowser_3_seg7_lights_07003CF8 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07003D10 - 0x07003D28 -static const Lights1 bowser_3_seg7_lights_07003D10 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07003D28 - 0x07003D88 static const Vtx bowser_3_seg7_vertex_07003D28[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07003EC8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07003CF8.l, 1), - gsSPLight(&bowser_3_seg7_lights_07003CF8.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_07003D28, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07003D10.l, 1), - gsSPLight(&bowser_3_seg7_lights_07003D10.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07003D88, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_2/model.inc.c b/levels/bowser_3/falling_platform_2/model.inc.c index 70a4f916..27139ada 100644 --- a/levels/bowser_3/falling_platform_2/model.inc.c +++ b/levels/bowser_3/falling_platform_2/model.inc.c @@ -1,14 +1,6 @@ // 0x07002338 - 0x07002350 -static const Lights1 bowser_3_seg7_lights_07002338 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07002350 - 0x07002368 -static const Lights1 bowser_3_seg7_lights_07002350 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002368 - 0x070023C8 static const Vtx bowser_3_seg7_vertex_07002368[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07002508[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07002338.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002338.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_07002368, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07002350.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002350.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_070023C8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_3/model.inc.c b/levels/bowser_3/falling_platform_3/model.inc.c index bd14560b..0d986035 100644 --- a/levels/bowser_3/falling_platform_3/model.inc.c +++ b/levels/bowser_3/falling_platform_3/model.inc.c @@ -1,14 +1,6 @@ // 0x07002670 - 0x07002688 -static const Lights1 bowser_3_seg7_lights_07002670 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07002688 - 0x070026A0 -static const Lights1 bowser_3_seg7_lights_07002688 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070026A0 - 0x07002700 static const Vtx bowser_3_seg7_vertex_070026A0[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07002840[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07002670.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002670.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_070026A0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07002688.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002688.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07002700, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_4/model.inc.c b/levels/bowser_3/falling_platform_4/model.inc.c index fad8f63c..1fae2442 100644 --- a/levels/bowser_3/falling_platform_4/model.inc.c +++ b/levels/bowser_3/falling_platform_4/model.inc.c @@ -1,14 +1,6 @@ // 0x070029A8 - 0x070029C0 -static const Lights1 bowser_3_seg7_lights_070029A8 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x070029C0 - 0x070029D8 -static const Lights1 bowser_3_seg7_lights_070029C0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070029D8 - 0x07002A38 static const Vtx bowser_3_seg7_vertex_070029D8[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07002B78[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_070029A8.l, 1), - gsSPLight(&bowser_3_seg7_lights_070029A8.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_070029D8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_070029C0.l, 1), - gsSPLight(&bowser_3_seg7_lights_070029C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07002A38, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_5/model.inc.c b/levels/bowser_3/falling_platform_5/model.inc.c index c4b34905..b300f72a 100644 --- a/levels/bowser_3/falling_platform_5/model.inc.c +++ b/levels/bowser_3/falling_platform_5/model.inc.c @@ -1,14 +1,6 @@ // 0x07002CE0 - 0x07002CF8 -static const Lights1 bowser_3_seg7_lights_07002CE0 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07002CF8 - 0x07002D10 -static const Lights1 bowser_3_seg7_lights_07002CF8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002D10 - 0x07002D70 static const Vtx bowser_3_seg7_vertex_07002D10[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07002EB0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07002CE0.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002CE0.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_07002D10, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07002CF8.l, 1), - gsSPLight(&bowser_3_seg7_lights_07002CF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07002D70, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_6/model.inc.c b/levels/bowser_3/falling_platform_6/model.inc.c index 4238aaeb..70dd6b41 100644 --- a/levels/bowser_3/falling_platform_6/model.inc.c +++ b/levels/bowser_3/falling_platform_6/model.inc.c @@ -1,14 +1,6 @@ // 0x07003018 - 0x07003030 -static const Lights1 bowser_3_seg7_lights_07003018 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07003030 - 0x07003048 -static const Lights1 bowser_3_seg7_lights_07003030 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07003048 - 0x070030A8 static const Vtx bowser_3_seg7_vertex_07003048[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_070031E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07003018.l, 1), - gsSPLight(&bowser_3_seg7_lights_07003018.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_07003048, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07003030.l, 1), - gsSPLight(&bowser_3_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_070030A8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_7/model.inc.c b/levels/bowser_3/falling_platform_7/model.inc.c index fd2802a5..1aac9670 100644 --- a/levels/bowser_3/falling_platform_7/model.inc.c +++ b/levels/bowser_3/falling_platform_7/model.inc.c @@ -1,14 +1,6 @@ // 0x07003350 - 0x07003368 -static const Lights1 bowser_3_seg7_lights_07003350 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07003368 - 0x07003380 -static const Lights1 bowser_3_seg7_lights_07003368 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07003380 - 0x070033E0 static const Vtx bowser_3_seg7_vertex_07003380[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07003520[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07003350.l, 1), - gsSPLight(&bowser_3_seg7_lights_07003350.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_07003380, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_07003368.l, 1), - gsSPLight(&bowser_3_seg7_lights_07003368.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_070033E0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_8/model.inc.c b/levels/bowser_3/falling_platform_8/model.inc.c index 7d4364b5..f3226dec 100644 --- a/levels/bowser_3/falling_platform_8/model.inc.c +++ b/levels/bowser_3/falling_platform_8/model.inc.c @@ -1,14 +1,6 @@ // 0x07003688 - 0x070036A0 -static const Lights1 bowser_3_seg7_lights_07003688 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x070036A0 - 0x070036B8 -static const Lights1 bowser_3_seg7_lights_070036A0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070036B8 - 0x07003718 static const Vtx bowser_3_seg7_vertex_070036B8[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07003858[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_07003688.l, 1), - gsSPLight(&bowser_3_seg7_lights_07003688.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_070036B8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_070036A0.l, 1), - gsSPLight(&bowser_3_seg7_lights_070036A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07003718, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/bowser_3/falling_platform_9/model.inc.c b/levels/bowser_3/falling_platform_9/model.inc.c index e64104fa..e3ea1251 100644 --- a/levels/bowser_3/falling_platform_9/model.inc.c +++ b/levels/bowser_3/falling_platform_9/model.inc.c @@ -1,14 +1,6 @@ // 0x070039C0 - 0x070039D8 -static const Lights1 bowser_3_seg7_lights_070039C0 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x070039D8 - 0x070039F0 -static const Lights1 bowser_3_seg7_lights_070039D8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070039F0 - 0x07003A50 static const Vtx bowser_3_seg7_vertex_070039F0[] = { @@ -53,12 +45,12 @@ static const Gfx bowser_3_seg7_dl_07003B90[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&bowser_3_seg7_lights_070039C0.l, 1), - gsSPLight(&bowser_3_seg7_lights_070039C0.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(bowser_3_seg7_vertex_070039F0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&bowser_3_seg7_lights_070039D8.l, 1), - gsSPLight(&bowser_3_seg7_lights_070039D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(bowser_3_seg7_vertex_07003A50, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_grounds/areas/1/11/model.inc.c b/levels/castle_grounds/areas/1/11/model.inc.c index a1b3a81b..c441943f 100644 --- a/levels/castle_grounds/areas/1/11/model.inc.c +++ b/levels/castle_grounds/areas/1/11/model.inc.c @@ -2,16 +2,8 @@ UNUSED static const u64 castle_grounds_unused_0 = 0; // 0x0700C4C8 - 0x0700C4E0 -static const Lights1 castle_grounds_seg7_lights_0700C4C8 = gdSPDefLights1( - 0x66, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0700C4E0 - 0x0700C4F8 -static const Lights1 castle_grounds_seg7_lights_0700C4E0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // TODO: what is this? 0700C4F8-0700C500 [8,8] UNUSED static const u64 castle_grounds_unused_1 = 0; @@ -66,8 +58,8 @@ static const Vtx castle_grounds_seg7_vertex_0700C640[] = { // 0x0700C670 - 0x0700C6A8 const Gfx castle_grounds_seg7_dl_0700C670[] = { gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x660000ff), gsSPVertex(castle_grounds_seg7_vertex_0700C500, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPSetGeometryMode(G_CULL_BACK), @@ -77,8 +69,8 @@ const Gfx castle_grounds_seg7_dl_0700C670[] = { // 0x0700C6A8 - 0x0700C6E8 const Gfx castle_grounds_seg7_dl_0700C6A8[] = { gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x660000ff), gsSPVertex(castle_grounds_seg7_vertex_0700C530, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPSetGeometryMode(G_CULL_BACK), @@ -88,8 +80,8 @@ const Gfx castle_grounds_seg7_dl_0700C6A8[] = { // 0x0700C6E8 - 0x0700C728 const Gfx castle_grounds_seg7_dl_0700C6E8[] = { gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x660000ff), gsSPVertex(castle_grounds_seg7_vertex_0700C570, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPSetGeometryMode(G_CULL_BACK), @@ -99,8 +91,8 @@ const Gfx castle_grounds_seg7_dl_0700C6E8[] = { // 0x0700C728 - 0x0700C768 const Gfx castle_grounds_seg7_dl_0700C728[] = { gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x660000ff), gsSPVertex(castle_grounds_seg7_vertex_0700C5B0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPSetGeometryMode(G_CULL_BACK), @@ -110,12 +102,12 @@ const Gfx castle_grounds_seg7_dl_0700C728[] = { // 0x0700C768 - 0x0700C7C8 const Gfx castle_grounds_seg7_dl_0700C768[] = { gsSPClearGeometryMode(G_CULL_BACK), - gsSPLight(&castle_grounds_seg7_lights_0700C4E0.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700C4E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_0700C5F0, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700C4C8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x660000ff), gsSPVertex(castle_grounds_seg7_vertex_0700C640, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPSetGeometryMode(G_CULL_BACK), diff --git a/levels/castle_grounds/areas/1/2/model.inc.c b/levels/castle_grounds/areas/1/2/model.inc.c index d778edd3..4b7805e7 100644 --- a/levels/castle_grounds/areas/1/2/model.inc.c +++ b/levels/castle_grounds/areas/1/2/model.inc.c @@ -1,50 +1,18 @@ // 0x07006ED8 - 0x07006EF0 -static const Lights1 castle_grounds_seg7_lights_07006ED8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07006EF0 - 0x07006F08 -static const Lights1 castle_grounds_seg7_lights_07006EF0 = gdSPDefLights1( - 0x4e, 0x4e, 0x53, - 0xc4, 0xc4, 0xd0, 0x28, 0x28, 0x28 -); // 0x07006F08 - 0x07006F20 -static const Lights1 castle_grounds_seg7_lights_07006F08 = gdSPDefLights1( - 0x36, 0x36, 0x37, - 0x89, 0x89, 0x8a, 0x28, 0x28, 0x28 -); // 0x07006F20 - 0x07006F38 -static const Lights1 castle_grounds_seg7_lights_07006F20 = gdSPDefLights1( - 0x2d, 0x2d, 0x38, - 0x72, 0x72, 0x8c, 0x28, 0x28, 0x28 -); // 0x07006F38 - 0x07006F50 -static const Lights1 castle_grounds_seg7_lights_07006F38 = gdSPDefLights1( - 0x29, 0x29, 0x2a, - 0x67, 0x67, 0x69, 0x28, 0x28, 0x28 -); // 0x07006F50 - 0x07006F68 -static const Lights1 castle_grounds_seg7_lights_07006F50 = gdSPDefLights1( - 0x56, 0x56, 0x56, - 0xd8, 0xd8, 0xd8, 0x28, 0x28, 0x28 -); // 0x07006F68 - 0x07006F80 -static const Lights1 castle_grounds_seg7_lights_07006F68 = gdSPDefLights1( - 0x23, 0x23, 0x27, - 0x58, 0x58, 0x62, 0x28, 0x28, 0x28 -); // 0x07006F80 - 0x07006F98 -static const Lights1 castle_grounds_seg7_lights_07006F80 = gdSPDefLights1( - 0x13, 0x57, 0x00, - 0x30, 0xdb, 0x02, 0x28, 0x28, 0x28 -); // 0x07006F98 - 0x07006FD8 static const Vtx castle_grounds_seg7_vertex_07006F98[] = { @@ -625,12 +593,12 @@ static const Gfx castle_grounds_seg7_dl_070089F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 16 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_07006F98, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006EF0.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006EF0.a, 2), + gsSPLightColor(LIGHT_1, 0xc4c4d0ff), + gsSPLightColor(LIGHT_2, 0x4e4e53ff), gsSPVertex(castle_grounds_seg7_vertex_07006FD8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), gsSPEndDisplayList(), @@ -641,8 +609,8 @@ static const Gfx castle_grounds_seg7_dl_07008A68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_07007018, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 6, 0x0), @@ -709,8 +677,8 @@ static const Gfx castle_grounds_seg7_dl_07008D70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_07006F08.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F08.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x363637ff), gsSPVertex(castle_grounds_seg7_vertex_070077B8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 3, 4, 2, 0x0, 5, 0, 2, 0x0), @@ -724,8 +692,8 @@ static const Gfx castle_grounds_seg7_dl_07008DE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09009800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_07007858, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 1, 3, 5, 0x0), @@ -734,12 +702,12 @@ static const Gfx castle_grounds_seg7_dl_07008DE8[] = { gsSP2Triangles( 8, 9, 10, 0x0, 10, 11, 3, 0x0), gsSP2Triangles( 3, 8, 10, 0x0, 8, 3, 0, 0x0), gsSP1Triangle( 4, 7, 12, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006F08.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F08.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x363637ff), gsSPVertex(castle_grounds_seg7_vertex_07007928, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_07007968, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 3, 1, 4, 0x0, 3, 4, 5, 0x0), @@ -753,8 +721,8 @@ static const Gfx castle_grounds_seg7_dl_07008EE8[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsSPVertex(castle_grounds_seg7_vertex_070079C8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006F20.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F20.a, 2), + gsSPLightColor(LIGHT_1, 0x72728cff), + gsSPLightColor(LIGHT_2, 0x2d2d38ff), gsSPVertex(castle_grounds_seg7_vertex_07007A08, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSPEndDisplayList(), @@ -765,8 +733,8 @@ static const Gfx castle_grounds_seg7_dl_07008F48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_07007A48, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 4, 5, 2, 0x0), @@ -791,19 +759,19 @@ static const Gfx castle_grounds_seg7_dl_07009010[] = { gsSP2Triangles( 4, 5, 6, 0x0, 5, 4, 7, 0x0), gsSP2Triangles( 8, 5, 7, 0x0, 9, 10, 11, 0x0), gsSP1Triangle(10, 12, 11, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006F38.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F38.a, 2), + gsSPLightColor(LIGHT_1, 0x676769ff), + gsSPLightColor(LIGHT_2, 0x29292aff), gsSPVertex(castle_grounds_seg7_vertex_07007C98, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 5, 6, 7, 0x0), gsSP2Triangles( 5, 7, 8, 0x0, 7, 9, 8, 0x0), gsSP2Triangles( 3, 10, 4, 0x0, 8, 9, 11, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006F50.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F50.a, 2), + gsSPLightColor(LIGHT_1, 0xd8d8d8ff), + gsSPLightColor(LIGHT_2, 0x565656ff), gsSPVertex(castle_grounds_seg7_vertex_07007D58, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_07007D98, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 3, 0x0, 4, 7, 5, 0x0), @@ -835,18 +803,18 @@ static const Gfx castle_grounds_seg7_dl_07009010[] = { gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0), gsSP2Triangles( 8, 14, 13, 0x0, 12, 8, 13, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006F68.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F68.a, 2), + gsSPLightColor(LIGHT_1, 0x585862ff), + gsSPLightColor(LIGHT_2, 0x232327ff), gsSPVertex(castle_grounds_seg7_vertex_07008268, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 3, 4, 5, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006F08.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F08.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x363637ff), gsSPVertex(castle_grounds_seg7_vertex_070082C8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 5, 4, 6, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006ED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_07008338, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), @@ -857,8 +825,8 @@ static const Gfx castle_grounds_seg7_dl_07009330[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_07006F80.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F80.a, 2), + gsSPLightColor(LIGHT_1, 0x30db02ff), + gsSPLightColor(LIGHT_2, 0x135700ff), gsSPVertex(castle_grounds_seg7_vertex_07008368, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 7, 4, 0x0), @@ -904,14 +872,14 @@ static const Gfx castle_grounds_seg7_dl_07009568[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_07006F38.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F38.a, 2), + gsSPLightColor(LIGHT_1, 0x676769ff), + gsSPLightColor(LIGHT_2, 0x29292aff), gsSPVertex(castle_grounds_seg7_vertex_07008908, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP1Triangle( 0, 2, 10, 0x0), - gsSPLight(&castle_grounds_seg7_lights_07006F08.l, 1), - gsSPLight(&castle_grounds_seg7_lights_07006F08.a, 2), + gsSPLightColor(LIGHT_1, 0x89898aff), + gsSPLightColor(LIGHT_2, 0x363637ff), gsSPVertex(castle_grounds_seg7_vertex_070089B8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_grounds/areas/1/9/model.inc.c b/levels/castle_grounds/areas/1/9/model.inc.c index 7a70ade9..143ccf4c 100644 --- a/levels/castle_grounds/areas/1/9/model.inc.c +++ b/levels/castle_grounds/areas/1/9/model.inc.c @@ -1,32 +1,12 @@ // 0x0700BCD8 - 0x0700BCE0 -static const Lights1 castle_grounds_seg7_lights_0700BCD8 = gdSPDefLights1( - 0x3d, 0x3d, 0x44, - 0x99, 0x99, 0xac, 0x28, 0x28, 0x28 -); // 0x0700BCF0 - 0x0700BD08 -static const Lights1 castle_grounds_seg7_lights_0700BCF0 = gdSPDefLights1( - 0x58, 0x58, 0x5a, - 0xdc, 0xdc, 0xe3, 0x28, 0x28, 0x28 -); // 0x0700BD08 - 0x0700BD20 -static const Lights1 castle_grounds_seg7_lights_0700BD08 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BD20 - 0x0700BD38 -static const Lights1 castle_grounds_seg7_lights_0700BD20 = gdSPDefLights1( - 0x4e, 0x4e, 0x53, - 0xc4, 0xc4, 0xd0, 0x28, 0x28, 0x28 -); // 0x0700BD38 - 0x0700BD50 -static const Lights1 castle_grounds_seg7_lights_0700BD38 = gdSPDefLights1( - 0x45, 0x45, 0x4b, - 0xad, 0xad, 0xbc, 0x28, 0x28, 0x28 -); // 0x0700BD50 - 0x0700BE10 static const Vtx castle_grounds_seg7_vertex_0700BD50[] = { @@ -107,14 +87,14 @@ static const Gfx castle_grounds_seg7_dl_0700C070[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_0700BCD8.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700BCD8.a, 2), + gsSPLightColor(LIGHT_1, 0x9999acff), + gsSPLightColor(LIGHT_2, 0x3d3d44ff), gsSPVertex(castle_grounds_seg7_vertex_0700BD50, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0), - gsSPLight(&castle_grounds_seg7_lights_0700BCF0.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700BCF0.a, 2), + gsSPLightColor(LIGHT_1, 0xdcdce3ff), + gsSPLightColor(LIGHT_2, 0x58585aff), gsSPVertex(castle_grounds_seg7_vertex_0700BE10, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -126,24 +106,24 @@ static const Gfx castle_grounds_seg7_dl_0700C110[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&castle_grounds_seg7_lights_0700BD08.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700BD08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(castle_grounds_seg7_vertex_0700BE90, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 0, 2, 5, 0x0), gsSP2Triangles( 6, 4, 7, 0x0, 6, 3, 4, 0x0), gsSP2Triangles( 2, 6, 7, 0x0, 5, 2, 7, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0), - gsSPLight(&castle_grounds_seg7_lights_0700BD20.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700BD20.a, 2), + gsSPLightColor(LIGHT_1, 0xc4c4d0ff), + gsSPLightColor(LIGHT_2, 0x4e4e53ff), gsSPVertex(castle_grounds_seg7_vertex_0700BF50, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&castle_grounds_seg7_lights_0700BD38.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700BD38.a, 2), + gsSPLightColor(LIGHT_1, 0xadadbcff), + gsSPLightColor(LIGHT_2, 0x45454bff), gsSPVertex(castle_grounds_seg7_vertex_0700BFB0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&castle_grounds_seg7_lights_0700BCF0.l, 1), - gsSPLight(&castle_grounds_seg7_lights_0700BCF0.a, 2), + gsSPLightColor(LIGHT_1, 0xdcdce3ff), + gsSPLightColor(LIGHT_2, 0x58585aff), gsSPVertex(castle_grounds_seg7_vertex_0700C010, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/1/10/model.inc.c b/levels/castle_inside/areas/1/10/model.inc.c index 319bcbb4..83859a63 100644 --- a/levels/castle_inside/areas/1/10/model.inc.c +++ b/levels/castle_inside/areas/1/10/model.inc.c @@ -1,8 +1,4 @@ // 0x0702FDD8 - 0x0702FDF0 -static const Lights1 inside_castle_seg7_lights_0702FDD8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0702FDF0 - 0x0702FE70 static const Vtx inside_castle_seg7_vertex_0702FDF0[] = { @@ -389,8 +385,8 @@ static const Gfx inside_castle_seg7_dl_07031070[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0702FDD8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702FDD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0702FDF0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 2, 6, 0x0), diff --git a/levels/castle_inside/areas/1/12/model.inc.c b/levels/castle_inside/areas/1/12/model.inc.c index 0dbcfe05..20a90e78 100644 --- a/levels/castle_inside/areas/1/12/model.inc.c +++ b/levels/castle_inside/areas/1/12/model.inc.c @@ -1,8 +1,4 @@ // 0x07031790 - 0x070317A8 -static const Lights1 inside_castle_seg7_lights_07031790 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070317A8 - 0x070317E8 static const Vtx inside_castle_seg7_vertex_070317A8[] = { @@ -17,8 +13,8 @@ static const Gfx inside_castle_seg7_dl_070317E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07031790.l, 1), - gsSPLight(&inside_castle_seg7_lights_07031790.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070317A8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/1/13/model.inc.c b/levels/castle_inside/areas/1/13/model.inc.c index 334d0f57..770b79d5 100644 --- a/levels/castle_inside/areas/1/13/model.inc.c +++ b/levels/castle_inside/areas/1/13/model.inc.c @@ -1,14 +1,6 @@ // 0x070318A0 - 0x070318B8 -static const Lights1 inside_castle_seg7_lights_070318A0 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x070318B8 - 0x070318D0 -static const Lights1 inside_castle_seg7_lights_070318B8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070318D0 - 0x070319D0 static const Vtx inside_castle_seg7_vertex_070318D0[] = { @@ -370,15 +362,15 @@ static const Gfx inside_castle_seg7_dl_07032A00[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070318A0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070318A0.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_070318D0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 13, 14, 0x0, 0, 2, 15, 0x0), - gsSPLight(&inside_castle_seg7_lights_070318B8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070318B8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070319D0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 3, 2, 4, 0x0, 5, 3, 4, 0x0), diff --git a/levels/castle_inside/areas/1/14/model.inc.c b/levels/castle_inside/areas/1/14/model.inc.c index 1401bd72..98fc2349 100644 --- a/levels/castle_inside/areas/1/14/model.inc.c +++ b/levels/castle_inside/areas/1/14/model.inc.c @@ -1,8 +1,4 @@ // 0x07033068 - 0x07033080 -static const Lights1 inside_castle_seg7_lights_07033068 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07033080 - 0x07033100 static const Vtx inside_castle_seg7_vertex_07033080[] = { @@ -21,8 +17,8 @@ static const Gfx inside_castle_seg7_dl_07033100[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07033068.l, 1), - gsSPLight(&inside_castle_seg7_lights_07033068.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07033080, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/castle_inside/areas/1/15/model.inc.c b/levels/castle_inside/areas/1/15/model.inc.c index 34e10852..d80879a5 100644 --- a/levels/castle_inside/areas/1/15/model.inc.c +++ b/levels/castle_inside/areas/1/15/model.inc.c @@ -1,14 +1,6 @@ // 0x070331C8 - 0x070331E0 -static const Lights1 inside_castle_seg7_lights_070331C8 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x070331E0 - 0x070331F8 -static const Lights1 inside_castle_seg7_lights_070331E0 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070331F8 - 0x070332F8 static const Vtx inside_castle_seg7_vertex_070331F8[] = { @@ -440,15 +432,15 @@ static const Gfx inside_castle_seg7_dl_07034688[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070331C8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070331C8.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_070331F8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 14, 12, 0x0, 0, 2, 15, 0x0), - gsSPLight(&inside_castle_seg7_lights_070331E0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070331E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070332F8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/castle_inside/areas/1/17/model.inc.c b/levels/castle_inside/areas/1/17/model.inc.c index 7a280e59..4e38dc25 100644 --- a/levels/castle_inside/areas/1/17/model.inc.c +++ b/levels/castle_inside/areas/1/17/model.inc.c @@ -1,8 +1,4 @@ // 0x070351E8 - 0x07035200 -static const Lights1 inside_castle_seg7_lights_070351E8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07035200 - 0x07035240 static const Vtx inside_castle_seg7_vertex_07035200[] = { @@ -17,8 +13,8 @@ static const Gfx inside_castle_seg7_dl_07035240[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070351E8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070351E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07035200, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/1/18/model.inc.c b/levels/castle_inside/areas/1/18/model.inc.c index ebddea09..1c384f13 100644 --- a/levels/castle_inside/areas/1/18/model.inc.c +++ b/levels/castle_inside/areas/1/18/model.inc.c @@ -1,26 +1,10 @@ // 0x070352F8 - 0x07035310 -static const Lights1 inside_castle_seg7_lights_070352F8 = gdSPDefLights1( - 0x19, 0x19, 0x19, - 0x44, 0x44, 0x44, 0x28, 0x28, 0x28 -); // 0x07035310 - 0x07035328 -static const Lights1 inside_castle_seg7_lights_07035310 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07035328 - 0x07035340 -static const Lights1 inside_castle_seg7_lights_07035328 = gdSPDefLights1( - 0x1f, 0x1f, 0x1f, - 0x55, 0x55, 0x55, 0x28, 0x28, 0x28 -); // 0x07035340 - 0x07035358 -static const Lights1 inside_castle_seg7_lights_07035340 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07035358 - 0x07035458 static const Vtx inside_castle_seg7_vertex_07035358[] = { @@ -427,15 +411,15 @@ static const Gfx inside_castle_seg7_dl_07036698[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070352F8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070352F8.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(inside_castle_seg7_vertex_07035358, 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, 2, 15, 0x0), - gsSPLight(&inside_castle_seg7_lights_07035310.l, 1), - gsSPLight(&inside_castle_seg7_lights_07035310.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(inside_castle_seg7_vertex_07035458, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -452,8 +436,8 @@ static const Gfx inside_castle_seg7_dl_07036780[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07035328.l, 1), - gsSPLight(&inside_castle_seg7_lights_07035328.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x1f1f1fff), gsSPVertex(inside_castle_seg7_vertex_070355B8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -464,8 +448,8 @@ static const Gfx inside_castle_seg7_dl_070367C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07035310.l, 1), - gsSPLight(&inside_castle_seg7_lights_07035310.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(inside_castle_seg7_vertex_070355F8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 3, 2, 0x0, 5, 4, 2, 0x0), @@ -512,14 +496,14 @@ static const Gfx inside_castle_seg7_dl_070369B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07035328.l, 1), - gsSPLight(&inside_castle_seg7_lights_07035328.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x1f1f1fff), gsSPVertex(inside_castle_seg7_vertex_07035AF8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 5, 6, 7, 0x0), gsSP2Triangles( 5, 8, 6, 0x0, 5, 7, 9, 0x0), - gsSPLight(&inside_castle_seg7_lights_07035310.l, 1), - gsSPLight(&inside_castle_seg7_lights_07035310.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(inside_castle_seg7_vertex_07035B98, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -572,8 +556,8 @@ static const Gfx inside_castle_seg7_dl_070369B8[] = { // 0x07036CB8 - 0x07036D88 static const Gfx inside_castle_seg7_dl_07036CB8[] = { - gsSPLight(&inside_castle_seg7_lights_07035340.l, 1), - gsSPLight(&inside_castle_seg7_lights_07035340.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(inside_castle_seg7_vertex_070363D8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/1/19/model.inc.c b/levels/castle_inside/areas/1/19/model.inc.c index 73e6bcc8..9cb1e640 100644 --- a/levels/castle_inside/areas/1/19/model.inc.c +++ b/levels/castle_inside/areas/1/19/model.inc.c @@ -1,8 +1,4 @@ // 0x07036E68 - 0x07036E80 -static const Lights1 inside_castle_seg7_lights_07036E68 = gdSPDefLights1( - 0xcc, 0xcc, 0xcc, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07036E80 - 0x07036F70 static const Vtx inside_castle_seg7_vertex_07036E80[] = { @@ -182,8 +178,8 @@ static const Gfx inside_castle_seg7_dl_07037710[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07036E68.l, 1), - gsSPLight(&inside_castle_seg7_lights_07036E68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0xccccccff), gsSPVertex(inside_castle_seg7_vertex_07036E80, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/1/2/model.inc.c b/levels/castle_inside/areas/1/2/model.inc.c index 3c52d6d6..ffcea005 100644 --- a/levels/castle_inside/areas/1/2/model.inc.c +++ b/levels/castle_inside/areas/1/2/model.inc.c @@ -1,20 +1,8 @@ // 0x07023FE0 - 0x07023FF8 -static const Lights1 inside_castle_seg7_lights_07023FE0 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x07023FF8 - 0x07024010 -static const Lights1 inside_castle_seg7_lights_07023FF8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07024010 - 0x07024028 -static const Lights1 inside_castle_seg7_lights_07024010 = gdSPDefLights1( - 0x2c, 0x2c, 0x2c, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x07024028 - 0x07024118 static const Vtx inside_castle_seg7_vertex_07024028[] = { @@ -1285,8 +1273,8 @@ static const Gfx inside_castle_seg7_dl_07027DE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07023FE0.l, 1), - gsSPLight(&inside_castle_seg7_lights_07023FE0.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_07024028, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1339,8 +1327,8 @@ static const Gfx inside_castle_seg7_dl_07027DE8[] = { gsSP1Triangle( 0, 14, 1, 0x0), gsSPVertex(inside_castle_seg7_vertex_07024988, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_07023FF8.l, 1), - gsSPLight(&inside_castle_seg7_lights_07023FF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070249C8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1493,13 +1481,13 @@ static const Gfx inside_castle_seg7_dl_070287C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07024010.l, 1), - gsSPLight(&inside_castle_seg7_lights_07024010.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x2c2c2cff), gsSPVertex(inside_castle_seg7_vertex_07026108, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&inside_castle_seg7_lights_07023FF8.l, 1), - gsSPLight(&inside_castle_seg7_lights_07023FF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07026188, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1548,14 +1536,14 @@ static const Gfx inside_castle_seg7_dl_07028A38[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07024010.l, 1), - gsSPLight(&inside_castle_seg7_lights_07024010.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x2c2c2cff), gsSPVertex(inside_castle_seg7_vertex_070269E8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 5, 6, 7, 0x0), gsSP2Triangles( 5, 8, 9, 0x0, 5, 9, 6, 0x0), - gsSPLight(&inside_castle_seg7_lights_07023FF8.l, 1), - gsSPLight(&inside_castle_seg7_lights_07023FF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07026A88, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/1/20/model.inc.c b/levels/castle_inside/areas/1/20/model.inc.c index a55d2238..13734b98 100644 --- a/levels/castle_inside/areas/1/20/model.inc.c +++ b/levels/castle_inside/areas/1/20/model.inc.c @@ -1,8 +1,4 @@ // 0x070379F8 - 0x07037A10 -static const Lights1 inside_castle_seg7_lights_070379F8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07037A10 - 0x07037B10 static const Vtx inside_castle_seg7_vertex_07037A10[] = { @@ -29,8 +25,8 @@ static const Gfx inside_castle_seg7_dl_07037B10[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070379F8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070379F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07037A10, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 3, 0x0, 6, 7, 4, 0x0), diff --git a/levels/castle_inside/areas/1/21/model.inc.c b/levels/castle_inside/areas/1/21/model.inc.c index 3346e8ce..9eeb026a 100644 --- a/levels/castle_inside/areas/1/21/model.inc.c +++ b/levels/castle_inside/areas/1/21/model.inc.c @@ -1,8 +1,4 @@ // 0x07037C58 - 0x07037C70 -static const Lights1 inside_castle_seg7_lights_07037C58 = gdSPDefLights1( - 0x37, 0x37, 0x37, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x07037C70 - 0x07037D70 static const Vtx inside_castle_seg7_vertex_07037C70[] = { @@ -29,8 +25,8 @@ static const Gfx inside_castle_seg7_dl_07037D70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07037C58.l, 1), - gsSPLight(&inside_castle_seg7_lights_07037C58.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x373737ff), gsSPVertex(inside_castle_seg7_vertex_07037C70, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/1/23/model.inc.c b/levels/castle_inside/areas/1/23/model.inc.c index 692d7757..6e188c13 100644 --- a/levels/castle_inside/areas/1/23/model.inc.c +++ b/levels/castle_inside/areas/1/23/model.inc.c @@ -1,8 +1,4 @@ // 0x070382B0 - 0x070382C8 -static const Lights1 inside_castle_seg7_lights_070382B0 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070382C8 - 0x07038308 static const Vtx inside_castle_seg7_vertex_070382C8[] = { @@ -17,8 +13,8 @@ static const Gfx inside_castle_seg7_dl_07038308[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070382B0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070382B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070382C8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/1/24/model.inc.c b/levels/castle_inside/areas/1/24/model.inc.c index e6ffdb1a..606bb338 100644 --- a/levels/castle_inside/areas/1/24/model.inc.c +++ b/levels/castle_inside/areas/1/24/model.inc.c @@ -1,20 +1,8 @@ // 0x070383C0 - 0x070383D8 -static const Lights1 inside_castle_seg7_lights_070383C0 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x070383D8 - 0x070383F0 -static const Lights1 inside_castle_seg7_lights_070383D8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070383F0 - 0x07038408 -static const Lights1 inside_castle_seg7_lights_070383F0 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07038408 - 0x070384F8 static const Vtx inside_castle_seg7_vertex_07038408[] = { @@ -569,8 +557,8 @@ static const Gfx inside_castle_seg7_dl_07039EC8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070383C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070383C0.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_07038408, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -583,8 +571,8 @@ static const Gfx inside_castle_seg7_dl_07039EC8[] = { gsSP1Triangle( 0, 14, 1, 0x0), gsSPVertex(inside_castle_seg7_vertex_070385E8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_070383D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070383D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07038628, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -711,8 +699,8 @@ static const Gfx inside_castle_seg7_dl_0703A540[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070383F0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070383F0.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(inside_castle_seg7_vertex_070399F8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 3, 8, 0x0), diff --git a/levels/castle_inside/areas/1/25/model.inc.c b/levels/castle_inside/areas/1/25/model.inc.c index 1fc3b944..ab5ad5c6 100644 --- a/levels/castle_inside/areas/1/25/model.inc.c +++ b/levels/castle_inside/areas/1/25/model.inc.c @@ -1,8 +1,4 @@ // 0x0703A768 - 0x0703A780 -static const Lights1 inside_castle_seg7_lights_0703A768 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0703A780 - 0x0703A7C0 static const Vtx inside_castle_seg7_vertex_0703A780[] = { @@ -17,8 +13,8 @@ static const Gfx inside_castle_seg7_dl_0703A7C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0703A768.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703A768.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0703A780, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/1/26/model.inc.c b/levels/castle_inside/areas/1/26/model.inc.c index 2785f003..6a66eb14 100644 --- a/levels/castle_inside/areas/1/26/model.inc.c +++ b/levels/castle_inside/areas/1/26/model.inc.c @@ -1,14 +1,6 @@ // 0x0703A878 - 0x0703A890 -static const Lights1 inside_castle_seg7_lights_0703A878 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x0703A890 - 0x0703A8A8 -static const Lights1 inside_castle_seg7_lights_0703A890 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0703A8A8 - 0x0703A998 static const Vtx inside_castle_seg7_vertex_0703A8A8[] = { @@ -284,8 +276,8 @@ static const Gfx inside_castle_seg7_dl_0703B5B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0703A878.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703A878.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(inside_castle_seg7_vertex_0703A8A8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -300,8 +292,8 @@ static const Gfx inside_castle_seg7_dl_0703B5B8[] = { gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0), gsSP1Triangle(11, 13, 14, 0x0), - gsSPLight(&inside_castle_seg7_lights_0703A890.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703A890.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0703AB88, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/1/4/model.inc.c b/levels/castle_inside/areas/1/4/model.inc.c index c0cbb997..9f5fa2d5 100644 --- a/levels/castle_inside/areas/1/4/model.inc.c +++ b/levels/castle_inside/areas/1/4/model.inc.c @@ -1,38 +1,14 @@ // 0x070295E8 - 0x07029600 -static const Lights1 inside_castle_seg7_lights_070295E8 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07029600 - 0x07029618 -static const Lights1 inside_castle_seg7_lights_07029600 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x07029618 - 0x07029630 -static const Lights1 inside_castle_seg7_lights_07029618 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07029630 - 0x07029648 -static const Lights1 inside_castle_seg7_lights_07029630 = gdSPDefLights1( - 0x1f, 0x1f, 0x1f, - 0x55, 0x55, 0x55, 0x28, 0x28, 0x28 -); // 0x07029648 - 0x07029660 -static const Lights1 inside_castle_seg7_lights_07029648 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x07029660 - 0x07029678 -static const Lights1 inside_castle_seg7_lights_07029660 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x07029678 - 0x070296D8 static const Vtx inside_castle_seg7_vertex_07029678[] = { @@ -288,16 +264,16 @@ static const Gfx inside_castle_seg7_dl_0702A188[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070295E8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070295E8.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(inside_castle_seg7_vertex_07029678, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&inside_castle_seg7_lights_07029600.l, 1), - gsSPLight(&inside_castle_seg7_lights_07029600.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(inside_castle_seg7_vertex_070296D8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07029618.l, 1), - gsSPLight(&inside_castle_seg7_lights_07029618.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07029718, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0), @@ -324,28 +300,28 @@ static const Gfx inside_castle_seg7_dl_0702A300[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07029630.l, 1), - gsSPLight(&inside_castle_seg7_lights_07029630.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x1f1f1fff), gsSPVertex(inside_castle_seg7_vertex_07029938, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_070295E8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070295E8.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(inside_castle_seg7_vertex_07029978, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07029600.l, 1), - gsSPLight(&inside_castle_seg7_lights_07029600.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(inside_castle_seg7_vertex_070299B8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07029648.l, 1), - gsSPLight(&inside_castle_seg7_lights_07029648.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(inside_castle_seg7_vertex_070299F8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07029660.l, 1), - gsSPLight(&inside_castle_seg7_lights_07029660.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(inside_castle_seg7_vertex_07029A38, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_07029618.l, 1), - gsSPLight(&inside_castle_seg7_lights_07029618.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07029A78, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 0, 2, 0x0, 4, 2, 5, 0x0), diff --git a/levels/castle_inside/areas/1/6/model.inc.c b/levels/castle_inside/areas/1/6/model.inc.c index 1f4c7b97..3668518b 100644 --- a/levels/castle_inside/areas/1/6/model.inc.c +++ b/levels/castle_inside/areas/1/6/model.inc.c @@ -1,8 +1,4 @@ // 0x0702A8F0 - 0x0702A908 -static const Lights1 inside_castle_seg7_lights_0702A8F0 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0702A908 - 0x0702A998 static const Vtx inside_castle_seg7_vertex_0702A908[] = { @@ -22,8 +18,8 @@ static const Gfx inside_castle_seg7_dl_0702A998[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0702A8F0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702A8F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0702A908, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 3, 6, 0x0), diff --git a/levels/castle_inside/areas/1/7/model.inc.c b/levels/castle_inside/areas/1/7/model.inc.c index c1730b38..d9376300 100644 --- a/levels/castle_inside/areas/1/7/model.inc.c +++ b/levels/castle_inside/areas/1/7/model.inc.c @@ -1,8 +1,4 @@ // 0x0702AA80 - 0x0702AA98 -static const Lights1 inside_castle_seg7_lights_0702AA80 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0702AA98 - 0x0702AAD8 static const Vtx inside_castle_seg7_vertex_0702AA98[] = { @@ -17,8 +13,8 @@ static const Gfx inside_castle_seg7_dl_0702AAD8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0702AA80.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702AA80.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0702AA98, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/1/8/model.inc.c b/levels/castle_inside/areas/1/8/model.inc.c index 04021e8f..77e240d5 100644 --- a/levels/castle_inside/areas/1/8/model.inc.c +++ b/levels/castle_inside/areas/1/8/model.inc.c @@ -1,14 +1,6 @@ // 0x0702AB90 - 0x0702ABA8 -static const Lights1 inside_castle_seg7_lights_0702AB90 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0702ABA8 - 0x0702ABC0 -static const Lights1 inside_castle_seg7_lights_0702ABA8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0702ABC0 - 0x0702ACB0 static const Vtx inside_castle_seg7_vertex_0702ABC0[] = { @@ -906,8 +898,8 @@ static const Gfx inside_castle_seg7_dl_0702D770[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0702AB90.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702AB90.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(inside_castle_seg7_vertex_0702ABC0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -962,8 +954,8 @@ static const Gfx inside_castle_seg7_dl_0702D770[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0), - gsSPLight(&inside_castle_seg7_lights_0702ABA8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702ABA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0702B5E0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/1/9/model.inc.c b/levels/castle_inside/areas/1/9/model.inc.c index a83ef7c7..d232256a 100644 --- a/levels/castle_inside/areas/1/9/model.inc.c +++ b/levels/castle_inside/areas/1/9/model.inc.c @@ -1,32 +1,12 @@ // 0x0702E490 - 0x0702E4A8 -static const Lights1 inside_castle_seg7_lights_0702E490 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x0702E4A8 - 0x0702E4C0 -static const Lights1 inside_castle_seg7_lights_0702E4A8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0702E4C0 - 0x0702E4D8 -static const Lights1 inside_castle_seg7_lights_0702E4C0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0702E4D8 - 0x0702E4F0 -static const Lights1 inside_castle_seg7_lights_0702E4D8 = gdSPDefLights1( - 0x07, 0x07, 0x07, - 0x13, 0x13, 0x13, 0x28, 0x28, 0x28 -); // 0x0702E4F0 - 0x0702E508 -static const Lights1 inside_castle_seg7_lights_0702E4F0 = gdSPDefLights1( - 0x0f, 0x0f, 0x0f, - 0x29, 0x29, 0x29, 0x28, 0x28, 0x28 -); // 0x0702E508 - 0x0702E608 static const Vtx inside_castle_seg7_vertex_0702E508[] = { @@ -412,8 +392,8 @@ static const Gfx inside_castle_seg7_dl_0702F738[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0702E490.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702E490.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_0702E508, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -424,8 +404,8 @@ static const Gfx inside_castle_seg7_dl_0702F738[] = { gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(10, 9, 14, 0x0, 15, 12, 11, 0x0), - gsSPLight(&inside_castle_seg7_lights_0702E4A8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702E4A8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0702E708, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), @@ -536,17 +516,17 @@ static const Gfx inside_castle_seg7_dl_0702FA80[] = { // 0x0702FC90 - 0x0702FD30 static const Gfx inside_castle_seg7_dl_0702FC90[] = { - gsSPLight(&inside_castle_seg7_lights_0702E4C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702E4C0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(inside_castle_seg7_vertex_0702F5F8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_0702E4D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702E4D8.a, 2), + gsSPLightColor(LIGHT_1, 0x131313ff), + gsSPLightColor(LIGHT_2, 0x70707ff), gsSPVertex(inside_castle_seg7_vertex_0702F638, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&inside_castle_seg7_lights_0702E4F0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0702E4F0.a, 2), + gsSPLightColor(LIGHT_1, 0x292929ff), + gsSPLightColor(LIGHT_2, 0xf0f0fff), gsSPVertex(inside_castle_seg7_vertex_0702F6B8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/castle_inside/areas/2/1/model.inc.c b/levels/castle_inside/areas/2/1/model.inc.c index 00f456d4..689ed74e 100644 --- a/levels/castle_inside/areas/2/1/model.inc.c +++ b/levels/castle_inside/areas/2/1/model.inc.c @@ -1,14 +1,6 @@ // 0x0703C040 - 0x0703C058 -static const Lights1 inside_castle_seg7_lights_0703C040 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x0703C058 - 0x0703C070 -static const Lights1 inside_castle_seg7_lights_0703C058 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0703C070 - 0x0703C160 static const Vtx inside_castle_seg7_vertex_0703C070[] = { @@ -624,8 +616,8 @@ static const Gfx inside_castle_seg7_dl_0703DE40[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0703C040.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703C040.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(inside_castle_seg7_vertex_0703C070, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 6, 1, 0x0, 3, 5, 7, 0x0), @@ -640,8 +632,8 @@ static const Gfx inside_castle_seg7_dl_0703DE40[] = { gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0), gsSP1Triangle(11, 13, 14, 0x0), - gsSPLight(&inside_castle_seg7_lights_0703C058.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703C058.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0703C350, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 3, 2, 0x0, 4, 5, 3, 0x0), diff --git a/levels/castle_inside/areas/2/12/model.inc.c b/levels/castle_inside/areas/2/12/model.inc.c index 04346e17..3a707233 100644 --- a/levels/castle_inside/areas/2/12/model.inc.c +++ b/levels/castle_inside/areas/2/12/model.inc.c @@ -1,8 +1,4 @@ // 0x07051A38 - 0x07051A50 -static const Lights1 inside_castle_seg7_lights_07051A38 = gdSPDefLights1( - 0x47, 0x3f, 0x17, - 0xbf, 0xaa, 0x3f, 0x28, 0x28, 0x28 -); // 0x07051A50 - 0x07051B10 static const Vtx inside_castle_seg7_vertex_07051A50[] = { @@ -22,8 +18,8 @@ static const Vtx inside_castle_seg7_vertex_07051A50[] = { // 0x07051B10 - 0x07051B60 static const Gfx inside_castle_seg7_dl_07051B10[] = { - gsSPLight(&inside_castle_seg7_lights_07051A38.l, 1), - gsSPLight(&inside_castle_seg7_lights_07051A38.a, 2), + gsSPLightColor(LIGHT_1, 0xbfaa3fff), + gsSPLightColor(LIGHT_2, 0x473f17ff), gsSPVertex(inside_castle_seg7_vertex_07051A50, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/castle_inside/areas/2/13/model.inc.c b/levels/castle_inside/areas/2/13/model.inc.c index e8eac082..38572cd2 100644 --- a/levels/castle_inside/areas/2/13/model.inc.c +++ b/levels/castle_inside/areas/2/13/model.inc.c @@ -1,20 +1,8 @@ // 0x07051B88 - 0x07051BA0 -static const Lights1 inside_castle_seg7_lights_07051B88 = gdSPDefLights1( - 0x51, 0x34, 0x42, - 0xd8, 0x8c, 0xb2, 0x28, 0x28, 0x28 -); // 0x07051BA0 - 0x07051BB8 -static const Lights1 inside_castle_seg7_lights_07051BA0 = gdSPDefLights1( - 0x40, 0x1e, 0x2f, - 0xac, 0x52, 0x7f, 0x28, 0x28, 0x28 -); // 0x07051BB8 - 0x07051BD0 -static const Lights1 inside_castle_seg7_lights_07051BB8 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07051BD0 - 0x07051C70 static const Vtx inside_castle_seg7_vertex_07051BD0[] = { @@ -987,8 +975,8 @@ static const Gfx inside_castle_seg7_dl_07054AF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07051B88.l, 1), - gsSPLight(&inside_castle_seg7_lights_07051B88.a, 2), + gsSPLightColor(LIGHT_1, 0xd88cb2ff), + gsSPLightColor(LIGHT_2, 0x513442ff), gsSPVertex(inside_castle_seg7_vertex_07051BD0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 5, 2, 1, 0x0), @@ -1105,8 +1093,8 @@ static const Gfx inside_castle_seg7_dl_07054B78[] = { gsSP1Triangle( 0, 14, 1, 0x0), gsSPVertex(inside_castle_seg7_vertex_07052F30, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07051BA0.l, 1), - gsSPLight(&inside_castle_seg7_lights_07051BA0.a, 2), + gsSPLightColor(LIGHT_1, 0xac527fff), + gsSPLightColor(LIGHT_2, 0x401e2fff), gsSPVertex(inside_castle_seg7_vertex_07052F70, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1218,8 +1206,8 @@ static const Gfx inside_castle_seg7_dl_070555E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07051B88.l, 1), - gsSPLight(&inside_castle_seg7_lights_07051B88.a, 2), + gsSPLightColor(LIGHT_1, 0xd88cb2ff), + gsSPLightColor(LIGHT_2, 0x513442ff), gsSPVertex(inside_castle_seg7_vertex_070542B0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1277,8 +1265,8 @@ static const Gfx inside_castle_seg7_dl_070557A8[] = { // 0x070558A0 - 0x070558D0 static const Gfx inside_castle_seg7_dl_070558A0[] = { - gsSPLight(&inside_castle_seg7_lights_07051BB8.l, 1), - gsSPLight(&inside_castle_seg7_lights_07051BB8.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(inside_castle_seg7_vertex_07054AB0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/2/14/model.inc.c b/levels/castle_inside/areas/2/14/model.inc.c index 0e564b5e..32d9e0ed 100644 --- a/levels/castle_inside/areas/2/14/model.inc.c +++ b/levels/castle_inside/areas/2/14/model.inc.c @@ -1,14 +1,6 @@ // 0x070559C0 - 0x070559D8 -static const Lights1 inside_castle_seg7_lights_070559C0 = gdSPDefLights1( - 0x40, 0x24, 0x1e, - 0xac, 0x61, 0x52, 0x28, 0x28, 0x28 -); // 0x070559D8 - 0x070559F0 -static const Lights1 inside_castle_seg7_lights_070559D8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070559F0 - 0x07055AE0 static const Vtx inside_castle_seg7_vertex_070559F0[] = { @@ -415,8 +407,8 @@ static const Gfx inside_castle_seg7_dl_07056BF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559C0.a, 2), + gsSPLightColor(LIGHT_1, 0xac6152ff), + gsSPLightColor(LIGHT_2, 0x40241eff), gsSPVertex(inside_castle_seg7_vertex_070559F0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -429,8 +421,8 @@ static const Gfx inside_castle_seg7_dl_07056BF0[] = { gsSP1Triangle( 0, 2, 14, 0x0), gsSPVertex(inside_castle_seg7_vertex_07055BD0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_070559D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07055C10, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -441,8 +433,8 @@ static const Gfx inside_castle_seg7_dl_07056CE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_right), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559C0.a, 2), + gsSPLightColor(LIGHT_1, 0xac6152ff), + gsSPLightColor(LIGHT_2, 0x40241eff), gsSPVertex(inside_castle_seg7_vertex_07055C50, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -455,8 +447,8 @@ static const Gfx inside_castle_seg7_dl_07056CE0[] = { gsSP1Triangle( 0, 2, 14, 0x0), gsSPVertex(inside_castle_seg7_vertex_07055E30, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_070559D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07055E70, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -467,8 +459,8 @@ static const Gfx inside_castle_seg7_dl_07056DD0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559C0.a, 2), + gsSPLightColor(LIGHT_1, 0xac6152ff), + gsSPLightColor(LIGHT_2, 0x40241eff), gsSPVertex(inside_castle_seg7_vertex_07055EB0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -481,8 +473,8 @@ static const Gfx inside_castle_seg7_dl_07056DD0[] = { gsSP1Triangle( 0, 2, 14, 0x0), gsSPVertex(inside_castle_seg7_vertex_07056090, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_070559D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070560D0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -493,8 +485,8 @@ static const Gfx inside_castle_seg7_dl_07056EC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_bottom_right), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559C0.a, 2), + gsSPLightColor(LIGHT_1, 0xac6152ff), + gsSPLightColor(LIGHT_2, 0x40241eff), gsSPVertex(inside_castle_seg7_vertex_07056110, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -507,8 +499,8 @@ static const Gfx inside_castle_seg7_dl_07056EC0[] = { gsSP1Triangle( 0, 2, 14, 0x0), gsSPVertex(inside_castle_seg7_vertex_070562F0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_070559D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07056330, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -519,8 +511,8 @@ static const Gfx inside_castle_seg7_dl_07056FB0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_peach_top_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070559C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070559C0.a, 2), + gsSPLightColor(LIGHT_1, 0xac6152ff), + gsSPLightColor(LIGHT_2, 0x40241eff), gsSPVertex(inside_castle_seg7_vertex_07056370, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/2/15/model.inc.c b/levels/castle_inside/areas/2/15/model.inc.c index 7baf47c5..3ae6baad 100644 --- a/levels/castle_inside/areas/2/15/model.inc.c +++ b/levels/castle_inside/areas/2/15/model.inc.c @@ -1,14 +1,6 @@ // 0x07057380 - 0x07057398 -static const Lights1 inside_castle_seg7_lights_07057380 = gdSPDefLights1( - 0x51, 0x34, 0x42, - 0xd8, 0x8c, 0xb2, 0x28, 0x28, 0x28 -); // 0x07057398 - 0x070573B0 -static const Lights1 inside_castle_seg7_lights_07057398 = gdSPDefLights1( - 0x40, 0x24, 0x1e, - 0xac, 0x61, 0x52, 0x28, 0x28, 0x28 -); // 0x070573B0 - 0x070573F0 static const Vtx inside_castle_seg7_vertex_070573B0[] = { @@ -187,8 +179,8 @@ static const Gfx inside_castle_seg7_dl_07057B70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07057380.l, 1), - gsSPLight(&inside_castle_seg7_lights_07057380.a, 2), + gsSPLightColor(LIGHT_1, 0xd88cb2ff), + gsSPLightColor(LIGHT_2, 0x513442ff), gsSPVertex(inside_castle_seg7_vertex_070573B0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -238,8 +230,8 @@ static const Gfx inside_castle_seg7_dl_07057D30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_bowser_top_left), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07057398.l, 1), - gsSPLight(&inside_castle_seg7_lights_07057398.a, 2), + gsSPLightColor(LIGHT_1, 0xac6152ff), + gsSPLightColor(LIGHT_2, 0x40241eff), gsSPVertex(inside_castle_seg7_vertex_070577D0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -284,8 +276,8 @@ static const Gfx inside_castle_seg7_dl_07057E60[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07057380.l, 1), - gsSPLight(&inside_castle_seg7_lights_07057380.a, 2), + gsSPLightColor(LIGHT_1, 0xd88cb2ff), + gsSPLightColor(LIGHT_2, 0x513442ff), gsSPVertex(inside_castle_seg7_vertex_070579D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), diff --git a/levels/castle_inside/areas/2/2/model.inc.c b/levels/castle_inside/areas/2/2/model.inc.c index 57fffda7..8cdcc932 100644 --- a/levels/castle_inside/areas/2/2/model.inc.c +++ b/levels/castle_inside/areas/2/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0703E798 - 0x0703E7B0 -static const Lights1 inside_castle_seg7_lights_0703E798 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0703E7B0 - 0x0703E8A0 static const Vtx inside_castle_seg7_vertex_0703E7B0[] = { @@ -1137,8 +1133,8 @@ static const Gfx inside_castle_seg7_dl_07041F30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0703E798.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703E798.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0703E7B0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/2/3/model.inc.c b/levels/castle_inside/areas/2/3/model.inc.c index bbcc3e62..7298a77f 100644 --- a/levels/castle_inside/areas/2/3/model.inc.c +++ b/levels/castle_inside/areas/2/3/model.inc.c @@ -1,14 +1,6 @@ // 0x070430F8 - 0x07043110 -static const Lights1 inside_castle_seg7_lights_070430F8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07043110 - 0x07043128 -static const Lights1 inside_castle_seg7_lights_07043110 = gdSPDefLights1( - 0x40, 0x3a, 0x1e, - 0xac, 0x9d, 0x52, 0x28, 0x28, 0x28 -); // 0x07043128 - 0x070431A8 static const Vtx inside_castle_seg7_vertex_07043128[] = { @@ -177,8 +169,8 @@ static const Gfx inside_castle_seg7_dl_070437C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070430F8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070430F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07043128, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 4, 6, 0x0), @@ -190,8 +182,8 @@ static const Gfx inside_castle_seg7_dl_07043820[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07043110.l, 1), - gsSPLight(&inside_castle_seg7_lights_07043110.a, 2), + gsSPLightColor(LIGHT_1, 0xac9d52ff), + gsSPLightColor(LIGHT_2, 0x403a1eff), gsSPVertex(inside_castle_seg7_vertex_070431A8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -217,8 +209,8 @@ static const Gfx inside_castle_seg7_dl_07043930[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070430F8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070430F8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07043568, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 3, 0, 0x0, 4, 5, 3, 0x0), diff --git a/levels/castle_inside/areas/2/4/model.inc.c b/levels/castle_inside/areas/2/4/model.inc.c index c4e958ce..2e4338fa 100644 --- a/levels/castle_inside/areas/2/4/model.inc.c +++ b/levels/castle_inside/areas/2/4/model.inc.c @@ -1,8 +1,4 @@ // 0x07043C38 - 0x07043C50 -static const Lights1 inside_castle_seg7_lights_07043C38 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07043C50 - 0x07043C90 static const Vtx inside_castle_seg7_vertex_07043C50[] = { @@ -17,8 +13,8 @@ static const Gfx inside_castle_seg7_dl_07043C90[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07043C38.l, 1), - gsSPLight(&inside_castle_seg7_lights_07043C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07043C50, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/2/6/model.inc.c b/levels/castle_inside/areas/2/6/model.inc.c index e28c39b5..f63e93c5 100644 --- a/levels/castle_inside/areas/2/6/model.inc.c +++ b/levels/castle_inside/areas/2/6/model.inc.c @@ -1,8 +1,4 @@ // 0x0704A1B8 - 0x0704A1D0 -static const Lights1 inside_castle_seg7_lights_0704A1B8 = gdSPDefLights1( - 0x3d, 0x3d, 0x3f, - 0xf5, 0xf5, 0xff, 0x28, 0x28, 0x28 -); // 0x0704A1D0 - 0x0704A290 static const Vtx inside_castle_seg7_vertex_0704A1D0[] = { @@ -22,8 +18,8 @@ static const Vtx inside_castle_seg7_vertex_0704A1D0[] = { // 0x0704A290 - 0x0704A2E0 static const Gfx inside_castle_seg7_dl_0704A290[] = { - gsSPLight(&inside_castle_seg7_lights_0704A1B8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704A1B8.a, 2), + gsSPLightColor(LIGHT_1, 0xf5f5ffff), + gsSPLightColor(LIGHT_2, 0x3d3d3fff), gsSPVertex(inside_castle_seg7_vertex_0704A1D0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/castle_inside/areas/2/8/model.inc.c b/levels/castle_inside/areas/2/8/model.inc.c index d84a05ec..b96288b8 100644 --- a/levels/castle_inside/areas/2/8/model.inc.c +++ b/levels/castle_inside/areas/2/8/model.inc.c @@ -1,20 +1,8 @@ // 0x0704AB80 - 0x0704AB98 -static const Lights1 inside_castle_seg7_lights_0704AB80 = gdSPDefLights1( - 0x38, 0x3c, 0x4c, - 0x97, 0xa0, 0xcd, 0x28, 0x28, 0x28 -); // 0x0704AB98 - 0x0704ABB0 -static const Lights1 inside_castle_seg7_lights_0704AB98 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0704ABB0 - 0x0704ABC8 -static const Lights1 inside_castle_seg7_lights_0704ABB0 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x0704ABC8 - 0x0704ACA8 static const Vtx inside_castle_seg7_vertex_0704ABC8[] = { @@ -456,8 +444,8 @@ static const Gfx inside_castle_seg7_dl_0704C078[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0704AB80.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704AB80.a, 2), + gsSPLightColor(LIGHT_1, 0x97a0cdff), + gsSPLightColor(LIGHT_2, 0x383c4cff), gsSPVertex(inside_castle_seg7_vertex_0704ABC8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 5, 0, 2, 0x0, 0, 5, 4, 0x0), @@ -480,8 +468,8 @@ static const Gfx inside_castle_seg7_dl_0704C078[] = { gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704AB98.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704AB98.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0704AF88, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 4, 7, 8, 0x0), @@ -520,8 +508,8 @@ static const Gfx inside_castle_seg7_dl_0704C378[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0704ABB0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704ABB0.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_0704B498, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -531,8 +519,8 @@ static const Gfx inside_castle_seg7_dl_0704C378[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), gsSP1Triangle( 0, 10, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704AB98.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704AB98.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0704B638, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 1, 5, 4, 0x0), diff --git a/levels/castle_inside/areas/2/9/model.inc.c b/levels/castle_inside/areas/2/9/model.inc.c index b62fc80a..3535f3ee 100644 --- a/levels/castle_inside/areas/2/9/model.inc.c +++ b/levels/castle_inside/areas/2/9/model.inc.c @@ -1,68 +1,24 @@ // 0x0704C8B0 - 0x0704C8C8 -static const Lights1 inside_castle_seg7_lights_0704C8B0 = gdSPDefLights1( - 0x2d, 0x3b, 0x58, - 0x79, 0x9f, 0xeb, 0x28, 0x28, 0x28 -); // 0x0704C8C8 - 0x0704C8E0 -static const Lights1 inside_castle_seg7_lights_0704C8C8 = gdSPDefLights1( - 0x25, 0x39, 0x5f, - 0x65, 0x98, 0xff, 0x28, 0x28, 0x28 -); // 0x0704C8E0 - 0x0704C8F8 -static const Lights1 inside_castle_seg7_lights_0704C8E0 = gdSPDefLights1( - 0x1e, 0x2a, 0x40, - 0x52, 0x70, 0xac, 0x28, 0x28, 0x28 -); // 0x0704C8F8 - 0x0704C910 -static const Lights1 inside_castle_seg7_lights_0704C8F8 = gdSPDefLights1( - 0x17, 0x27, 0x47, - 0x3f, 0x6a, 0xbf, 0x28, 0x28, 0x28 -); // 0x0704C910 - 0x0704C928 -static const Lights1 inside_castle_seg7_lights_0704C910 = gdSPDefLights1( - 0x0b, 0x23, 0x53, - 0x1f, 0x5f, 0xdf, 0x28, 0x28, 0x28 -); // 0x0704C928 - 0x0704C940 -static const Lights1 inside_castle_seg7_lights_0704C928 = gdSPDefLights1( - 0x00, 0x1f, 0x5f, - 0x00, 0x55, 0xff, 0x28, 0x28, 0x28 -); // 0x0704C940 - 0x0704C958 -static const Lights1 inside_castle_seg7_lights_0704C940 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0704C958 - 0x0704C970 -static const Lights1 inside_castle_seg7_lights_0704C958 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x0704C970 - 0x0704C988 -static const Lights1 inside_castle_seg7_lights_0704C970 = gdSPDefLights1( - 0x13, 0x09, 0x00, - 0x35, 0x1a, 0x00, 0x28, 0x28, 0x28 -); // 0x0704C988 - 0x0704C9A0 -static const Lights1 inside_castle_seg7_lights_0704C988 = gdSPDefLights1( - 0x19, 0x0c, 0x00, - 0x43, 0x21, 0x00, 0x28, 0x28, 0x28 -); // 0x0704C9A0 - 0x0704C9B8 -static const Lights1 inside_castle_seg7_lights_0704C9A0 = gdSPDefLights1( - 0x2d, 0x16, 0x00, - 0x78, 0x3c, 0x00, 0x28, 0x28, 0x28 -); // 0x0704C9B8 - 0x0704CA98 static const Vtx inside_castle_seg7_vertex_0704C9B8[] = { @@ -1060,39 +1016,39 @@ static const Gfx inside_castle_seg7_dl_0704F928[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0704C8B0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C8B0.a, 2), + gsSPLightColor(LIGHT_1, 0x799febff), + gsSPLightColor(LIGHT_2, 0x2d3b58ff), gsSPVertex(inside_castle_seg7_vertex_0704C9B8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 5, 6, 7, 0x0), gsSP2Triangles( 5, 8, 6, 0x0, 5, 9, 8, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C8C8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C8C8.a, 2), + gsSPLightColor(LIGHT_1, 0x6598ffff), + gsSPLightColor(LIGHT_2, 0x25395fff), gsSPVertex(inside_castle_seg7_vertex_0704CA98, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C8E0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C8E0.a, 2), + gsSPLightColor(LIGHT_1, 0x5270acff), + gsSPLightColor(LIGHT_2, 0x1e2a40ff), gsSPVertex(inside_castle_seg7_vertex_0704CB18, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C8F8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C8F8.a, 2), + gsSPLightColor(LIGHT_1, 0x3f6abfff), + gsSPLightColor(LIGHT_2, 0x172747ff), gsSPVertex(inside_castle_seg7_vertex_0704CB98, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C910.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C910.a, 2), + gsSPLightColor(LIGHT_1, 0x1f5fdfff), + gsSPLightColor(LIGHT_2, 0xb2353ff), gsSPVertex(inside_castle_seg7_vertex_0704CC18, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C928.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C928.a, 2), + gsSPLightColor(LIGHT_1, 0x55ffff), + gsSPLightColor(LIGHT_2, 0x1f5fff), gsSPVertex(inside_castle_seg7_vertex_0704CC98, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C940.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C940.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0704CCD8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0), @@ -1117,8 +1073,8 @@ static const Gfx inside_castle_seg7_dl_0704FB98[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0704C958.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C958.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(inside_castle_seg7_vertex_0704CEC8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1133,8 +1089,8 @@ static const Gfx inside_castle_seg7_dl_0704FB98[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C940.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C940.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0704D168, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1335,19 +1291,19 @@ static const Gfx inside_castle_seg7_dl_07050308[] = { gsSPVertex(inside_castle_seg7_vertex_0704E848, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C970.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C970.a, 2), + gsSPLightColor(LIGHT_1, 0x351a00ff), + gsSPLightColor(LIGHT_2, 0x130900ff), gsSPVertex(inside_castle_seg7_vertex_0704E8C8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C988.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C988.a, 2), + gsSPLightColor(LIGHT_1, 0x432100ff), + gsSPLightColor(LIGHT_2, 0x190c00ff), gsSPVertex(inside_castle_seg7_vertex_0704E988, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 3, 5, 4, 0x0), - gsSPLight(&inside_castle_seg7_lights_0704C9A0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C9A0.a, 2), + gsSPLightColor(LIGHT_1, 0x783c00ff), + gsSPLightColor(LIGHT_2, 0x2d1600ff), gsSPVertex(inside_castle_seg7_vertex_0704E9E8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1373,8 +1329,8 @@ static const Gfx inside_castle_seg7_dl_070505D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0704C940.l, 1), - gsSPLight(&inside_castle_seg7_lights_0704C940.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0704ED28, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/2/pendulum/model.inc.c b/levels/castle_inside/areas/2/pendulum/model.inc.c index 6bcaf0b6..e0359d4d 100644 --- a/levels/castle_inside/areas/2/pendulum/model.inc.c +++ b/levels/castle_inside/areas/2/pendulum/model.inc.c @@ -1,14 +1,6 @@ // 0x07050A78 - 0x07050A90 -static const Lights1 inside_castle_seg7_lights_07050A78 = gdSPDefLights1( - 0x40, 0x2f, 0x1e, - 0xac, 0x7f, 0x52, 0x28, 0x28, 0x28 -); // 0x07050A90 - 0x07050AA8 -static const Lights1 inside_castle_seg7_lights_07050A90 = gdSPDefLights1( - 0x40, 0x3a, 0x1e, - 0xac, 0x9d, 0x52, 0x28, 0x28, 0x28 -); // 0x07050AA8 - 0x07050B68 static const Vtx inside_castle_seg7_vertex_07050AA8[] = { @@ -145,8 +137,8 @@ static const Gfx inside_castle_seg7_dl_07051108[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07050A78.l, 1), - gsSPLight(&inside_castle_seg7_lights_07050A78.a, 2), + gsSPLightColor(LIGHT_1, 0xac7f52ff), + gsSPLightColor(LIGHT_2, 0x402f1eff), gsSPVertex(inside_castle_seg7_vertex_07050AA8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -156,8 +148,8 @@ static const Gfx inside_castle_seg7_dl_07051108[] = { // 0x07051170 - 0x070512F8 static const Gfx inside_castle_seg7_dl_07051170[] = { - gsSPLight(&inside_castle_seg7_lights_07050A90.l, 1), - gsSPLight(&inside_castle_seg7_lights_07050A90.a, 2), + gsSPLightColor(LIGHT_1, 0xac9d52ff), + gsSPLightColor(LIGHT_2, 0x403a1eff), gsSPVertex(inside_castle_seg7_vertex_07050B68, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 6, 7, 0x0, 0, 2, 8, 0x0), diff --git a/levels/castle_inside/areas/3/1/model.inc.c b/levels/castle_inside/areas/3/1/model.inc.c index 2210f407..64983e71 100644 --- a/levels/castle_inside/areas/3/1/model.inc.c +++ b/levels/castle_inside/areas/3/1/model.inc.c @@ -1,50 +1,18 @@ // 0x07059200 - 0x07059218 -static const Lights1 inside_castle_seg7_lights_07059200 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x07059218 - 0x07059230 -static const Lights1 inside_castle_seg7_lights_07059218 = gdSPDefLights1( - 0x39, 0x39, 0x39, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07059230 - 0x07059248 -static const Lights1 inside_castle_seg7_lights_07059230 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x07059248 - 0x07059260 -static const Lights1 inside_castle_seg7_lights_07059248 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07059260 - 0x07059278 -static const Lights1 inside_castle_seg7_lights_07059260 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x07059278 - 0x07059290 -static const Lights1 inside_castle_seg7_lights_07059278 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x07059290 - 0x070592A8 -static const Lights1 inside_castle_seg7_lights_07059290 = gdSPDefLights1( - 0x59, 0x59, 0x59, - 0xee, 0xee, 0xee, 0x28, 0x28, 0x28 -); // 0x070592A8 - 0x070592C0 -static const Lights1 inside_castle_seg7_lights_070592A8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070592C0 - 0x07059340 static const Vtx inside_castle_seg7_vertex_070592C0[] = { @@ -1293,37 +1261,37 @@ static const Gfx inside_castle_seg7_dl_0705CEA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07059200.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059200.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(inside_castle_seg7_vertex_070592C0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&inside_castle_seg7_lights_07059218.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059218.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x393939ff), gsSPVertex(inside_castle_seg7_vertex_07059340, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_07059230.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059230.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(inside_castle_seg7_vertex_07059380, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_07059248.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059248.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(inside_castle_seg7_vertex_070593C0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07059260.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059260.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(inside_castle_seg7_vertex_07059400, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_07059278.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059278.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_07059440, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07059290.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059290.a, 2), + gsSPLightColor(LIGHT_1, 0xeeeeeeff), + gsSPLightColor(LIGHT_2, 0x595959ff), gsSPVertex(inside_castle_seg7_vertex_07059480, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_070592A8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070592A8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070594C0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -1344,8 +1312,8 @@ static const Gfx inside_castle_seg7_dl_0705D098[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07059248.l, 1), - gsSPLight(&inside_castle_seg7_lights_07059248.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(inside_castle_seg7_vertex_070596F0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1384,8 +1352,8 @@ static const Gfx inside_castle_seg7_dl_0705D098[] = { gsSPVertex(inside_castle_seg7_vertex_07059D80, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 0, 6, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_070592A8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070592A8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07059DF0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/areas/3/10/model.inc.c b/levels/castle_inside/areas/3/10/model.inc.c index c8baf2e7..0b730eb1 100644 --- a/levels/castle_inside/areas/3/10/model.inc.c +++ b/levels/castle_inside/areas/3/10/model.inc.c @@ -1,8 +1,4 @@ // 0x07066F00 - 0x07066F18 -static const Lights1 inside_castle_seg7_lights_07066F00 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07066F18 - 0x07066F58 static const Vtx inside_castle_seg7_vertex_07066F18[] = { @@ -17,8 +13,8 @@ static const Gfx inside_castle_seg7_dl_07066F58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07066F00.l, 1), - gsSPLight(&inside_castle_seg7_lights_07066F00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07066F18, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/3/11/model.inc.c b/levels/castle_inside/areas/3/11/model.inc.c index 7404b60f..d358a2ae 100644 --- a/levels/castle_inside/areas/3/11/model.inc.c +++ b/levels/castle_inside/areas/3/11/model.inc.c @@ -1,26 +1,10 @@ // 0x07067010 - 0x07067028 -static const Lights1 inside_castle_seg7_lights_07067010 = gdSPDefLights1( - 0x39, 0x39, 0x39, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07067028 - 0x07067040 -static const Lights1 inside_castle_seg7_lights_07067028 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07067040 - 0x07067058 -static const Lights1 inside_castle_seg7_lights_07067040 = gdSPDefLights1( - 0x4c, 0x42, 0x38, - 0xcd, 0xb2, 0x97, 0x28, 0x28, 0x28 -); // 0x07067058 - 0x07067070 -static const Lights1 inside_castle_seg7_lights_07067058 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07067070 - 0x070670F0 static const Vtx inside_castle_seg7_vertex_07067070[] = { @@ -393,8 +377,8 @@ static const Gfx inside_castle_seg7_dl_07068210[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07067010.l, 1), - gsSPLight(&inside_castle_seg7_lights_07067010.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x393939ff), gsSPVertex(inside_castle_seg7_vertex_07067070, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 1, 3, 0x0, 0, 5, 1, 0x0), @@ -408,8 +392,8 @@ static const Gfx inside_castle_seg7_dl_07068288[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07067028.l, 1), - gsSPLight(&inside_castle_seg7_lights_07067028.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070670F0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 8, 0x0), @@ -471,8 +455,8 @@ static const Gfx inside_castle_seg7_dl_070684E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07067040.l, 1), - gsSPLight(&inside_castle_seg7_lights_07067040.a, 2), + gsSPLightColor(LIGHT_1, 0xcdb297ff), + gsSPLightColor(LIGHT_2, 0x4c4238ff), gsSPVertex(inside_castle_seg7_vertex_070677B0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -528,8 +512,8 @@ static const Gfx inside_castle_seg7_dl_070687A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07067028.l, 1), - gsSPLight(&inside_castle_seg7_lights_07067028.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070680D0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -540,8 +524,8 @@ static const Gfx inside_castle_seg7_dl_070687A8[] = { // 0x07068820 - 0x07068850 static const Gfx inside_castle_seg7_dl_07068820[] = { - gsSPLight(&inside_castle_seg7_lights_07067058.l, 1), - gsSPLight(&inside_castle_seg7_lights_07067058.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(inside_castle_seg7_vertex_070681D0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/castle_inside/areas/3/3/model.inc.c b/levels/castle_inside/areas/3/3/model.inc.c index 9461fcac..ec39c3e0 100644 --- a/levels/castle_inside/areas/3/3/model.inc.c +++ b/levels/castle_inside/areas/3/3/model.inc.c @@ -1,8 +1,4 @@ // 0x0705E310 - 0x0705E328 -static const Lights1 inside_castle_seg7_lights_0705E310 = gdSPDefLights1( - 0x00, 0x5f, 0x5f, - 0x00, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0705E328 - 0x0705E3E8 static const Vtx inside_castle_seg7_vertex_0705E328[] = { @@ -25,8 +21,8 @@ static const Gfx inside_castle_seg7_dl_0705E3E8[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, texture_castle_light), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0705E310.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E310.a, 2), + gsSPLightColor(LIGHT_1, 0xffffff), + gsSPLightColor(LIGHT_2, 0x5f5fff), gsSPVertex(inside_castle_seg7_vertex_0705E328, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/castle_inside/areas/3/4/model.inc.c b/levels/castle_inside/areas/3/4/model.inc.c index 8dc3f3e2..b6d2a6c4 100644 --- a/levels/castle_inside/areas/3/4/model.inc.c +++ b/levels/castle_inside/areas/3/4/model.inc.c @@ -1,32 +1,12 @@ // 0x0705E4C0 - 0x0705E4D8 -static const Lights1 inside_castle_seg7_lights_0705E4C0 = gdSPDefLights1( - 0x1e, 0x35, 0x40, - 0x52, 0x8e, 0xac, 0x28, 0x28, 0x28 -); // 0x0705E4D8 - 0x0705E4F0 -static const Lights1 inside_castle_seg7_lights_0705E4D8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0705E4F0 - 0x0705E508 -static const Lights1 inside_castle_seg7_lights_0705E4F0 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x0705E508 - 0x0705E520 -static const Lights1 inside_castle_seg7_lights_0705E508 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x0705E520 - 0x0705E538 -static const Lights1 inside_castle_seg7_lights_0705E520 = gdSPDefLights1( - 0x38, 0x4c, 0x3c, - 0x97, 0xcd, 0xa0, 0x28, 0x28, 0x28 -); // 0x0705E538 - 0x0705E628 static const Vtx inside_castle_seg7_vertex_0705E538[] = { @@ -815,8 +795,8 @@ static const Gfx inside_castle_seg7_dl_07060B58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0705E4C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E4C0.a, 2), + gsSPLightColor(LIGHT_1, 0x528eacff), + gsSPLightColor(LIGHT_2, 0x1e3540ff), gsSPVertex(inside_castle_seg7_vertex_0705E538, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -829,8 +809,8 @@ static const Gfx inside_castle_seg7_dl_07060B58[] = { gsSPVertex(inside_castle_seg7_vertex_0705E728, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), - gsSPLight(&inside_castle_seg7_lights_0705E4D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E4D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0705E7B8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -843,12 +823,12 @@ static const Gfx inside_castle_seg7_dl_07060C68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0705E4F0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E4F0.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(inside_castle_seg7_vertex_0705E878, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&inside_castle_seg7_lights_0705E508.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E508.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(inside_castle_seg7_vertex_0705E8B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -888,8 +868,8 @@ static const Gfx inside_castle_seg7_dl_07060E70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0705E4D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E4D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0705EE68, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -904,8 +884,8 @@ static const Gfx inside_castle_seg7_dl_07060EF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0705E520.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E520.a, 2), + gsSPLightColor(LIGHT_1, 0x97cda0ff), + gsSPLightColor(LIGHT_2, 0x384c3cff), gsSPVertex(inside_castle_seg7_vertex_0705EF68, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -959,12 +939,12 @@ static const Gfx inside_castle_seg7_dl_07061188[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0705E508.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E508.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(inside_castle_seg7_vertex_0705F888, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_0705E4D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_0705E4D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0705F8C8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/castle_inside/areas/3/6/model.inc.c b/levels/castle_inside/areas/3/6/model.inc.c index 469f5fcb..c82d7531 100644 --- a/levels/castle_inside/areas/3/6/model.inc.c +++ b/levels/castle_inside/areas/3/6/model.inc.c @@ -1,20 +1,8 @@ // 0x07061C90 - 0x07061CA8 -static const Lights1 inside_castle_seg7_lights_07061C90 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07061CA8 - 0x07061CC0 -static const Lights1 inside_castle_seg7_lights_07061CA8 = gdSPDefLights1( - 0x52, 0x52, 0x52, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x07061CC0 - 0x07061CD8 -static const Lights1 inside_castle_seg7_lights_07061CC0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07061CD8 - 0x07061DC8 static const Vtx inside_castle_seg7_vertex_07061CD8[] = { @@ -755,8 +743,8 @@ static const Gfx inside_castle_seg7_dl_07064078[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07061C90.l, 1), - gsSPLight(&inside_castle_seg7_lights_07061C90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07061CD8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -873,8 +861,8 @@ static const Gfx inside_castle_seg7_dl_07064618[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07061CA8.l, 1), - gsSPLight(&inside_castle_seg7_lights_07061CA8.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x525252ff), gsSPVertex(inside_castle_seg7_vertex_07062ED8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -887,8 +875,8 @@ static const Gfx inside_castle_seg7_dl_07064618[] = { gsSP1Triangle( 0, 14, 1, 0x0), gsSPVertex(inside_castle_seg7_vertex_070630B8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&inside_castle_seg7_lights_07061C90.l, 1), - gsSPLight(&inside_castle_seg7_lights_07061C90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_070630F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -986,8 +974,8 @@ static const Gfx inside_castle_seg7_dl_07064A88[] = { // 0x07064B28 - 0x07064B78 static const Gfx inside_castle_seg7_dl_07064B28[] = { - gsSPLight(&inside_castle_seg7_lights_07061CC0.l, 1), - gsSPLight(&inside_castle_seg7_lights_07061CC0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(inside_castle_seg7_vertex_07063FF8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 4, 6, 0x0), diff --git a/levels/castle_inside/areas/3/8/model.inc.c b/levels/castle_inside/areas/3/8/model.inc.c index e74bc5d0..2085f286 100644 --- a/levels/castle_inside/areas/3/8/model.inc.c +++ b/levels/castle_inside/areas/3/8/model.inc.c @@ -1,8 +1,4 @@ // 0x07064DC8 - 0x07064DE0 -static const Lights1 inside_castle_seg7_lights_07064DC8 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07064DE0 - 0x07064EE0 static const Vtx inside_castle_seg7_vertex_07064DE0[] = { @@ -489,8 +485,8 @@ static const Gfx inside_castle_seg7_dl_07066560[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07064DC8.l, 1), - gsSPLight(&inside_castle_seg7_lights_07064DC8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07064DE0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 5, 4, 0x0), diff --git a/levels/castle_inside/clock_hour_hand/model.inc.c b/levels/castle_inside/clock_hour_hand/model.inc.c index d812d9b4..10a0db48 100644 --- a/levels/castle_inside/clock_hour_hand/model.inc.c +++ b/levels/castle_inside/clock_hour_hand/model.inc.c @@ -1,14 +1,6 @@ // 0x070589C0 - 0x070589D8 -static const Lights1 inside_castle_seg7_lights_070589C0 = gdSPDefLights1( - 0x3f, 0x33, 0x19, - 0xff, 0xcc, 0x65, 0x28, 0x28, 0x28 -); // 0x070589D8 - 0x070589F0 -static const Lights1 inside_castle_seg7_lights_070589D8 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x070589F0 - 0x07058AF0 static const Vtx inside_castle_seg7_vertex_070589F0[] = { @@ -136,8 +128,8 @@ static const Gfx inside_castle_seg7_dl_07058FC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_070589C0.l, 1), - gsSPLight(&inside_castle_seg7_lights_070589C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffcc65ff), + gsSPLightColor(LIGHT_2, 0x3f3319ff), gsSPVertex(inside_castle_seg7_vertex_070589F0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 4, 6, 0x0), @@ -159,8 +151,8 @@ static const Gfx inside_castle_seg7_dl_07058FC0[] = { gsSPVertex(inside_castle_seg7_vertex_07058DB0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 6, 1, 0x0, 7, 8, 9, 0x0), - gsSPLight(&inside_castle_seg7_lights_070589D8.l, 1), - gsSPLight(&inside_castle_seg7_lights_070589D8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x3f0000ff), gsSPVertex(inside_castle_seg7_vertex_07058E50, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 3, 0x0, 3, 7, 4, 0x0), diff --git a/levels/castle_inside/clock_minute_hand/model.inc.c b/levels/castle_inside/clock_minute_hand/model.inc.c index b9cb7ee2..db056043 100644 --- a/levels/castle_inside/clock_minute_hand/model.inc.c +++ b/levels/castle_inside/clock_minute_hand/model.inc.c @@ -1,14 +1,6 @@ // 0x07057FD8 - 0x07057FF0 -static const Lights1 inside_castle_seg7_lights_07057FD8 = gdSPDefLights1( - 0x3f, 0x33, 0x19, - 0xff, 0xcc, 0x65, 0x28, 0x28, 0x28 -); // 0x07057FF0 - 0x07058008 -static const Lights1 inside_castle_seg7_lights_07057FF0 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07058008 - 0x07058108 static const Vtx inside_castle_seg7_vertex_07058008[] = { @@ -160,8 +152,8 @@ static const Gfx inside_castle_seg7_dl_07058718[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07057FD8.l, 1), - gsSPLight(&inside_castle_seg7_lights_07057FD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffcc65ff), + gsSPLightColor(LIGHT_2, 0x3f3319ff), gsSPVertex(inside_castle_seg7_vertex_07058008, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 4, 0x0, 6, 4, 3, 0x0), @@ -191,8 +183,8 @@ static const Gfx inside_castle_seg7_dl_07058718[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 0, 10, 1, 0x0, 7, 11, 8, 0x0), - gsSPLight(&inside_castle_seg7_lights_07057FF0.l, 1), - gsSPLight(&inside_castle_seg7_lights_07057FF0.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x3f0000ff), gsSPVertex(inside_castle_seg7_vertex_070585A8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/painting.inc.c b/levels/castle_inside/painting.inc.c index d668820f..a428f2a9 100644 --- a/levels/castle_inside/painting.inc.c +++ b/levels/castle_inside/painting.inc.c @@ -1,10 +1,6 @@ #include "game/paintings.h" // 0x07021800 - 0x07021818 -static const Lights1 inside_castle_seg7_lights_07021800 = gdSPDefLights1( - 0x50, 0x50, 0x50, - 0xff, 0xff, 0xff, 0x32, 0x32, 0x32 -); // 0x07021818 - 0x07021898 static const Vtx inside_castle_seg7_vertex_07021818[] = { @@ -71,8 +67,8 @@ static const Gfx inside_castle_seg7_dl_07021A48[] = { gsDPPipeSync(), gsSPSetGeometryMode(G_LIGHTING | G_SHADING_SMOOTH), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), - gsSPLight(&inside_castle_seg7_lights_07021800.l, 1), - gsSPLight(&inside_castle_seg7_lights_07021800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x505050ff), 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), gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 6, G_TX_NOLOD), @@ -565,17 +561,8 @@ UNUSED static const u64 castle_inside_unused_0 = 0x0; // 0x07022528 - 0x07022540 -static const Lights1 inside_castle_seg7_lights_07022528 = gdSPDefLights1( - 0x50, 0x50, 0x50, - 0xff, 0xff, 0xff, 0x32, 0x32, 0x32 -); // 0x07022540 - 0x07022558 -// No gdSPDefLights1 macro defined because of odd different light value (0xff and 0xfa) -static const Lights1 inside_castle_seg7_lights_07022540 = { - {{ {0x40, 0x40, 0x80}, 0, {0x40, 0x40, 0x80}, 0} }, - {{{ {0x64, 0x64, 0xff}, 0, {0x64, 0x64, 0xfa}, 0, {0x28, 0x28, 0x28},0} }} -}; // 0x07022558 - 0x07022598 static const Vtx inside_castle_seg7_vertex_07022558[] = { @@ -598,8 +585,8 @@ static const Vtx inside_castle_seg7_vertex_07022598[] = { const Gfx inside_castle_seg7_dl_070225D8[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), - gsSPLight(&inside_castle_seg7_lights_07022528.l, 1), - gsSPLight(&inside_castle_seg7_lights_07022528.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x505050ff), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), gsSPVertex(inside_castle_seg7_vertex_07022558, 4, 0), gsSPEndDisplayList(), @@ -1287,8 +1274,8 @@ const Gfx inside_castle_seg7_dl_07023520[] = { // 0x07023580 - 0x070235B8 static const Gfx inside_castle_seg7_painting_dl_07023580[] = { gsDPPipeSync(), - gsSPLight(&inside_castle_seg7_lights_07022540.l, 1), - gsSPLight(&inside_castle_seg7_lights_07022540.a, 2), + gsSPLightColor(LIGHT_1, 0x6464ffff), + gsSPLightColor(LIGHT_2, 0x404080ff), gsSPVertex(inside_castle_seg7_vertex_07022598, 4, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSP1Triangle( 0, 2, 3, 0x0), diff --git a/levels/castle_inside/star_door/model.inc.c b/levels/castle_inside/star_door/model.inc.c index 4a74aad1..07c4b3fa 100644 --- a/levels/castle_inside/star_door/model.inc.c +++ b/levels/castle_inside/star_door/model.inc.c @@ -1,8 +1,4 @@ // 0x0703BD28 - 0x0703BD40 -static const Lights1 inside_castle_seg7_lights_0703BD28 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0703BD40 - 0x0703BE40 static const Vtx inside_castle_seg7_vertex_0703BD40[] = { @@ -45,8 +41,8 @@ static const Gfx inside_castle_seg7_dl_0703BEC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_castle_seg7_texture_07005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0703BD28.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703BD28.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(inside_castle_seg7_vertex_0703BD40, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/trap_door/model.inc.c b/levels/castle_inside/trap_door/model.inc.c index 8a6ad8fc..4740d20e 100644 --- a/levels/castle_inside/trap_door/model.inc.c +++ b/levels/castle_inside/trap_door/model.inc.c @@ -1,8 +1,4 @@ // 0x0703BAB0 - 0x0703BAC8 -static const Lights1 inside_castle_seg7_lights_0703BAB0 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0703BAC8 - 0x0703BBB8 static const Vtx inside_castle_seg7_vertex_0703BAC8[] = { @@ -39,8 +35,8 @@ static const Gfx inside_castle_seg7_dl_0703BC28[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_0703BAB0.l, 1), - gsSPLight(&inside_castle_seg7_lights_0703BAB0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_0703BAC8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/castle_inside/water_level_pillar/model.inc.c b/levels/castle_inside/water_level_pillar/model.inc.c index 3c5203db..30012e02 100644 --- a/levels/castle_inside/water_level_pillar/model.inc.c +++ b/levels/castle_inside/water_level_pillar/model.inc.c @@ -1,8 +1,4 @@ // 0x07068908 - 0x07068920 -static const Lights1 inside_castle_seg7_lights_07068908 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07068920 - 0x07068960 static const Vtx inside_castle_seg7_vertex_07068920[] = { @@ -37,8 +33,8 @@ static const Gfx inside_castle_seg7_dl_07068A60[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&inside_castle_seg7_lights_07068908.l, 1), - gsSPLight(&inside_castle_seg7_lights_07068908.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPVertex(inside_castle_seg7_vertex_07068920, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/ccm/areas/1/1/model.inc.c b/levels/ccm/areas/1/1/model.inc.c index fb83ffcc..7d0981e1 100644 --- a/levels/ccm/areas/1/1/model.inc.c +++ b/levels/ccm/areas/1/1/model.inc.c @@ -1,26 +1,10 @@ // 0x07005300 - 0x07005318 -static const Lights1 ccm_seg7_lights_07005300 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005318 - 0x07005330 -static const Lights1 ccm_seg7_lights_07005318 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07005330 - 0x07005348 -static const Lights1 ccm_seg7_lights_07005330 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07005348 - 0x07005360 -static const Lights1 ccm_seg7_lights_07005348 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07005360 - 0x07005460 static const Vtx ccm_seg7_vertex_07005360[] = { @@ -1435,8 +1419,8 @@ static const Gfx ccm_seg7_dl_07009820[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07005300.l, 1), - gsSPLight(&ccm_seg7_lights_07005300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_07005360, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0), @@ -1534,8 +1518,8 @@ static const Gfx ccm_seg7_dl_07009820[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 6, 5, 8, 0x0), gsSP2Triangles( 4, 5, 7, 0x0, 8, 3, 2, 0x0), - gsSPLight(&ccm_seg7_lights_07005318.l, 1), - gsSPLight(&ccm_seg7_lights_07005318.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_07006250, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 4, 5, 0x0, 0, 3, 4, 0x0), @@ -1547,8 +1531,8 @@ static const Gfx ccm_seg7_dl_07009DD0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07005300.l, 1), - gsSPLight(&ccm_seg7_lights_07005300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_070062B0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), @@ -1558,8 +1542,8 @@ static const Gfx ccm_seg7_dl_07009DD0[] = { gsSPVertex(ccm_seg7_vertex_070063A0, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 4, 6, 5, 0x0), - gsSPLight(&ccm_seg7_lights_07005330.l, 1), - gsSPLight(&ccm_seg7_lights_07005330.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_07006410, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 0, 3, 0x0, 6, 7, 3, 0x0), @@ -1579,8 +1563,8 @@ static const Gfx ccm_seg7_dl_07009F28[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07005300.l, 1), - gsSPLight(&ccm_seg7_lights_07005300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_070065B0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 4, 5, 0, 0x0, 2, 6, 0, 0x0), @@ -1614,8 +1598,8 @@ static const Gfx ccm_seg7_dl_07009F28[] = { gsSP2Triangles( 3, 5, 6, 0x0, 7, 5, 4, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 11, 8, 10, 0x0), gsSP1Triangle(12, 11, 10, 0x0), - gsSPLight(&ccm_seg7_lights_07005318.l, 1), - gsSPLight(&ccm_seg7_lights_07005318.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_07006B70, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 6, 3, 0x0), @@ -1627,8 +1611,8 @@ static const Gfx ccm_seg7_dl_07009F28[] = { gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 8, 7, 0x0), gsSP2Triangles(10, 7, 11, 0x0, 10, 12, 13, 0x0), - gsSPLight(&ccm_seg7_lights_07005330.l, 1), - gsSPLight(&ccm_seg7_lights_07005330.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_07006D50, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1645,8 +1629,8 @@ static const Gfx ccm_seg7_dl_0700A248[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07005300.l, 1), - gsSPLight(&ccm_seg7_lights_07005300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_07006F10, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1752,8 +1736,8 @@ static const Gfx ccm_seg7_dl_0700A248[] = { gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 8, 0x0), gsSP2Triangles(11, 8, 10, 0x0, 13, 14, 15, 0x0), - gsSPLight(&ccm_seg7_lights_07005348.l, 1), - gsSPLight(&ccm_seg7_lights_07005348.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ccm_seg7_vertex_07008130, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 5, 1, 4, 0x0), @@ -1762,8 +1746,8 @@ static const Gfx ccm_seg7_dl_0700A248[] = { gsSP2Triangles(11, 12, 13, 0x0, 14, 7, 15, 0x0), gsSPVertex(ccm_seg7_vertex_07008230, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&ccm_seg7_lights_07005318.l, 1), - gsSPLight(&ccm_seg7_lights_07005318.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_07008260, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 3, 6, 0x0, 7, 5, 8, 0x0), @@ -1790,8 +1774,8 @@ static const Gfx ccm_seg7_dl_0700A248[] = { gsSPVertex(ccm_seg7_vertex_07008630, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 3, 5, 6, 0x0), - gsSPLight(&ccm_seg7_lights_07005330.l, 1), - gsSPLight(&ccm_seg7_lights_07005330.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_070086A0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1820,22 +1804,22 @@ static const Gfx ccm_seg7_dl_0700AB00[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07005300.l, 1), - gsSPLight(&ccm_seg7_lights_07005300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_07008A20, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 6, 7, 8, 0x0), gsSP2Triangles( 6, 8, 3, 0x0, 8, 7, 9, 0x0), gsSP2Triangles(10, 0, 2, 0x0, 7, 11, 9, 0x0), gsSP2Triangles( 1, 12, 2, 0x0, 7, 13, 11, 0x0), - gsSPLight(&ccm_seg7_lights_07005318.l, 1), - gsSPLight(&ccm_seg7_lights_07005318.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_07008B00, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 5, 7, 0x0, 0, 6, 7, 0x0), gsSP1Triangle( 0, 2, 6, 0x0), - gsSPLight(&ccm_seg7_lights_07005330.l, 1), - gsSPLight(&ccm_seg7_lights_07005330.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_07008B80, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 2, 6, 0, 0x0), @@ -1847,8 +1831,8 @@ static const Gfx ccm_seg7_dl_0700ABF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07005300.l, 1), - gsSPLight(&ccm_seg7_lights_07005300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_07008BF0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 2, 4, 3, 0x0), diff --git a/levels/ccm/areas/1/10/1.inc.c b/levels/ccm/areas/1/10/1.inc.c index c0f5bf67..74695837 100644 --- a/levels/ccm/areas/1/10/1.inc.c +++ b/levels/ccm/areas/1/10/1.inc.c @@ -1,20 +1,8 @@ // 0x0700FD88 - 0x0700FDA0 -static const Lights1 ccm_seg7_lights_0700FD88 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700FDA0 - 0x0700FDB8 -static const Lights1 ccm_seg7_lights_0700FDA0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700FDB8 - 0x0700FDD0 -static const Lights1 ccm_seg7_lights_0700FDB8 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700FDD0 - 0x0700FE10 static const Vtx ccm_seg7_vertex_0700FDD0[] = { @@ -153,20 +141,20 @@ static const Gfx ccm_seg7_dl_07010390[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700FD88.l, 1), - gsSPLight(&ccm_seg7_lights_0700FD88.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700FDD0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ccm_seg7_lights_0700FDA0.l, 1), - gsSPLight(&ccm_seg7_lights_0700FDA0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_0700FE10, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 9, 10, 0x0, 11, 10, 2, 0x0), gsSP2Triangles( 2, 10, 0, 0x0, 12, 2, 13, 0x0), gsSP2Triangles(13, 2, 1, 0x0, 12, 11, 2, 0x0), - gsSPLight(&ccm_seg7_lights_0700FDB8.l, 1), - gsSPLight(&ccm_seg7_lights_0700FDB8.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_0700FEF0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 3, 1, 0, 0x0), @@ -179,12 +167,12 @@ static const Gfx ccm_seg7_dl_07010480[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700FDA0.l, 1), - gsSPLight(&ccm_seg7_lights_0700FDA0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_0700FF70, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), - gsSPLight(&ccm_seg7_lights_0700FDB8.l, 1), - gsSPLight(&ccm_seg7_lights_0700FDB8.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_0700FFB0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 4, 7, 0x0), @@ -198,8 +186,8 @@ static const Gfx ccm_seg7_dl_07010518[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700FDA0.l, 1), - gsSPLight(&ccm_seg7_lights_0700FDA0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_07010070, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 7, 4, 0x0), @@ -207,8 +195,8 @@ static const Gfx ccm_seg7_dl_07010518[] = { gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(ccm_seg7_vertex_07010160, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), - gsSPLight(&ccm_seg7_lights_0700FDB8.l, 1), - gsSPLight(&ccm_seg7_lights_0700FDB8.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_070101A0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), diff --git a/levels/ccm/areas/1/10/3.inc.c b/levels/ccm/areas/1/10/3.inc.c index 1b35549a..62dd4642 100644 --- a/levels/ccm/areas/1/10/3.inc.c +++ b/levels/ccm/areas/1/10/3.inc.c @@ -1,8 +1,4 @@ // 0x07010A60 - 0x07010A78 -static const Lights1 ccm_seg7_lights_07010A60 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07010A78 - 0x07010AF8 static const Vtx ccm_seg7_vertex_07010A78[] = { @@ -21,8 +17,8 @@ static const Gfx ccm_seg7_dl_07010AF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07010A60.l, 1), - gsSPLight(&ccm_seg7_lights_07010A60.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_07010A78, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/ccm/areas/1/2/model.inc.c b/levels/ccm/areas/1/2/model.inc.c index f1650ec7..8e45f3e8 100644 --- a/levels/ccm/areas/1/2/model.inc.c +++ b/levels/ccm/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0700B118 - 0x0700B130 -static const Lights1 ccm_seg7_lights_0700B118 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700B130 - 0x0700B190 static const Vtx ccm_seg7_vertex_0700B130[] = { @@ -19,8 +15,8 @@ static const Gfx ccm_seg7_dl_0700B190[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700B118.l, 1), - gsSPLight(&ccm_seg7_lights_0700B118.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700B130, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), diff --git a/levels/ccm/areas/1/3/model.inc.c b/levels/ccm/areas/1/3/model.inc.c index f827b153..2429f4ac 100644 --- a/levels/ccm/areas/1/3/model.inc.c +++ b/levels/ccm/areas/1/3/model.inc.c @@ -1,26 +1,10 @@ // 0x0700B248 - 0x0700B260 -static const Lights1 ccm_seg7_lights_0700B248 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700B260 - 0x0700B278 -static const Lights1 ccm_seg7_lights_0700B260 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700B278 - 0x0700B290 -static const Lights1 ccm_seg7_lights_0700B278 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700B290 - 0x0700B2A8 -static const Lights1 ccm_seg7_lights_0700B290 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0700B2A8 - 0x0700B3A8 static const Vtx ccm_seg7_vertex_0700B2A8[] = { @@ -297,8 +281,8 @@ static const Gfx ccm_seg7_dl_0700BF88[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 4 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700B248.l, 1), - gsSPLight(&ccm_seg7_lights_0700B248.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700B2A8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -339,16 +323,16 @@ static const Gfx ccm_seg7_dl_0700C000[] = { gsSPVertex(ccm_seg7_vertex_0700B988, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ccm_seg7_lights_0700B260.l, 1), - gsSPLight(&ccm_seg7_lights_0700B260.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_0700BA08, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 7, 9, 8, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0), gsSPVertex(ccm_seg7_vertex_0700BB08, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&ccm_seg7_lights_0700B278.l, 1), - gsSPLight(&ccm_seg7_lights_0700B278.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_0700BB38, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP1Triangle( 0, 4, 3, 0x0), @@ -360,8 +344,8 @@ static const Gfx ccm_seg7_dl_0700C220[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700B248.l, 1), - gsSPLight(&ccm_seg7_lights_0700B248.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700BB88, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -385,8 +369,8 @@ static const Gfx ccm_seg7_dl_0700C220[] = { // 0x0700C330 - 0x0700C380 static const Gfx ccm_seg7_dl_0700C330[] = { - gsSPLight(&ccm_seg7_lights_0700B290.l, 1), - gsSPLight(&ccm_seg7_lights_0700B290.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ccm_seg7_vertex_0700BEC8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/ccm/areas/1/6/1.inc.c b/levels/ccm/areas/1/6/1.inc.c index 62a7d625..e6796835 100644 --- a/levels/ccm/areas/1/6/1.inc.c +++ b/levels/ccm/areas/1/6/1.inc.c @@ -1,26 +1,10 @@ // 0x0700DE68 - 0x0700DE80 -static const Lights1 ccm_seg7_lights_0700DE68 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700DE80 - 0x0700DE98 -static const Lights1 ccm_seg7_lights_0700DE80 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700DE98 - 0x0700DEB0 -static const Lights1 ccm_seg7_lights_0700DE98 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700DEB0 - 0x0700DEC8 -static const Lights1 ccm_seg7_lights_0700DEB0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0700DEC8 - 0x0700DF88 static const Vtx ccm_seg7_vertex_0700DEC8[] = { @@ -157,8 +141,8 @@ static const Gfx ccm_seg7_dl_0700E4A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700DE68.l, 1), - gsSPLight(&ccm_seg7_lights_0700DE68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700DEC8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), @@ -177,8 +161,8 @@ static const Gfx ccm_seg7_dl_0700E530[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 11, 13, 12, 0x0), - gsSPLight(&ccm_seg7_lights_0700DE80.l, 1), - gsSPLight(&ccm_seg7_lights_0700DE80.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ccm_seg7_vertex_0700E068, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -189,8 +173,8 @@ static const Gfx ccm_seg7_dl_0700E530[] = { gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0), gsSPVertex(ccm_seg7_vertex_0700E268, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ccm_seg7_lights_0700DE98.l, 1), - gsSPLight(&ccm_seg7_lights_0700DE98.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_0700E2C8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -203,8 +187,8 @@ static const Gfx ccm_seg7_dl_0700E668[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700DE68.l, 1), - gsSPLight(&ccm_seg7_lights_0700DE68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700E3A8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -215,8 +199,8 @@ static const Gfx ccm_seg7_dl_0700E668[] = { static const Gfx ccm_seg7_dl_0700E6C0[] = { gsSPVertex(ccm_seg7_vertex_0700E428, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), - gsSPLight(&ccm_seg7_lights_0700DEB0.l, 1), - gsSPLight(&ccm_seg7_lights_0700DEB0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ccm_seg7_vertex_0700E468, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/ccm/areas/1/7/1.inc.c b/levels/ccm/areas/1/7/1.inc.c index 420bfd07..ea2b9daf 100644 --- a/levels/ccm/areas/1/7/1.inc.c +++ b/levels/ccm/areas/1/7/1.inc.c @@ -1,20 +1,8 @@ // 0x0700EA00 - 0x0700EA18 -static const Lights1 ccm_seg7_lights_0700EA00 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700EA18 - 0x0700EA30 -static const Lights1 ccm_seg7_lights_0700EA18 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x0700EA30 - 0x0700EA48 -static const Lights1 ccm_seg7_lights_0700EA30 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700EA48 - 0x0700EAE8 static const Vtx ccm_seg7_vertex_0700EA48[] = { @@ -180,8 +168,8 @@ static const Gfx ccm_seg7_dl_0700F1B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700EA00.l, 1), - gsSPLight(&ccm_seg7_lights_0700EA00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700EA48, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), @@ -210,16 +198,16 @@ static const Gfx ccm_seg7_dl_0700F210[] = { gsSPVertex(ccm_seg7_vertex_0700ED98, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), - gsSPLight(&ccm_seg7_lights_0700EA18.l, 1), - gsSPLight(&ccm_seg7_lights_0700EA18.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ccm_seg7_vertex_0700EE38, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 7, 9, 8, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0), gsSPVertex(ccm_seg7_vertex_0700EF38, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ccm_seg7_lights_0700EA30.l, 1), - gsSPLight(&ccm_seg7_lights_0700EA30.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ccm_seg7_vertex_0700EF98, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -231,8 +219,8 @@ static const Gfx ccm_seg7_dl_0700F3B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700EA18.l, 1), - gsSPLight(&ccm_seg7_lights_0700EA18.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ccm_seg7_vertex_0700F058, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ccm/areas/1/7/3.inc.c b/levels/ccm/areas/1/7/3.inc.c index f5761660..ea53b2e1 100644 --- a/levels/ccm/areas/1/7/3.inc.c +++ b/levels/ccm/areas/1/7/3.inc.c @@ -1,8 +1,4 @@ // 0x0700F6E0 - 0x0700F6F8 -static const Lights1 ccm_seg7_lights_0700F6E0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F6F8 - 0x0700F738 static const Vtx ccm_seg7_vertex_0700F6F8[] = { @@ -17,8 +13,8 @@ static const Gfx ccm_seg7_dl_0700F738[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700F6E0.l, 1), - gsSPLight(&ccm_seg7_lights_0700F6E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700F6F8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/ccm/areas/1/8/model.inc.c b/levels/ccm/areas/1/8/model.inc.c index 6be88a90..93bbaaf2 100644 --- a/levels/ccm/areas/1/8/model.inc.c +++ b/levels/ccm/areas/1/8/model.inc.c @@ -1,8 +1,4 @@ // 0x0700F800 - 0x0700F818 -static const Lights1 ccm_seg7_lights_0700F800 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F818 - 0x0700F878 static const Vtx ccm_seg7_vertex_0700F818[] = { @@ -53,8 +49,8 @@ static const Gfx ccm_seg7_dl_0700FA18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700F800.l, 1), - gsSPLight(&ccm_seg7_lights_0700F800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700F818, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 4, 5, 0x0), diff --git a/levels/ccm/areas/1/9/model.inc.c b/levels/ccm/areas/1/9/model.inc.c index 3b7856e0..fbca5d86 100644 --- a/levels/ccm/areas/1/9/model.inc.c +++ b/levels/ccm/areas/1/9/model.inc.c @@ -1,8 +1,4 @@ // 0x0700FB78 - 0x0700FB90 -static const Lights1 ccm_seg7_lights_0700FB78 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700FB90 - 0x0700FC90 static const Vtx ccm_seg7_vertex_0700FB90[] = { @@ -29,8 +25,8 @@ static const Gfx ccm_seg7_dl_0700FC90[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0700FB78.l, 1), - gsSPLight(&ccm_seg7_lights_0700FB78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0700FB90, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ccm/areas/2/1/model.inc.c b/levels/ccm/areas/2/1/model.inc.c index 22aa91d9..2ddfd1da 100644 --- a/levels/ccm/areas/2/1/model.inc.c +++ b/levels/ccm/areas/2/1/model.inc.c @@ -1,8 +1,4 @@ // 0x07016718 - 0x07016730 -static const Lights1 ccm_seg7_lights_07016718 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07016730 - 0x07016770 static const Vtx ccm_seg7_vertex_07016730[] = { @@ -1500,8 +1496,8 @@ static const Gfx ccm_seg7_dl_0701B0E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07016718.l, 1), - gsSPLight(&ccm_seg7_lights_07016718.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ccm_seg7_vertex_07016730, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/ccm/areas/2/2/model.inc.c b/levels/ccm/areas/2/2/model.inc.c index 5c39f86f..27509935 100644 --- a/levels/ccm/areas/2/2/model.inc.c +++ b/levels/ccm/areas/2/2/model.inc.c @@ -1,26 +1,10 @@ // 0x0701CED8 - 0x0701CEF0 -static const Lights1 ccm_seg7_lights_0701CED8 = gdSPDefLights1( - 0x15, 0x15, 0x15, - 0x55, 0x55, 0x55, 0x28, 0x28, 0x28 -); // 0x0701CEF0 - 0x0701CF08 -static const Lights1 ccm_seg7_lights_0701CEF0 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0701CF08 - 0x0701CF20 -static const Lights1 ccm_seg7_lights_0701CF08 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x0701CF20 - 0x0701CF38 -static const Lights1 ccm_seg7_lights_0701CF20 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701CF38 - 0x0701D028 static const Vtx ccm_seg7_vertex_0701CF38[] = { @@ -366,8 +350,8 @@ static const Gfx ccm_seg7_dl_0701DF68[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0701CED8.l, 1), - gsSPLight(&ccm_seg7_lights_0701CED8.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ccm_seg7_vertex_0701CF38, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -378,8 +362,8 @@ static const Gfx ccm_seg7_dl_0701DF68[] = { gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0), gsSP1Triangle( 0, 2, 14, 0x0), - gsSPLight(&ccm_seg7_lights_0701CEF0.l, 1), - gsSPLight(&ccm_seg7_lights_0701CEF0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(ccm_seg7_vertex_0701D118, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 8, 0x0), @@ -435,14 +419,14 @@ static const Gfx ccm_seg7_dl_0701DF68[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 7, 9, 8, 0x0), gsSP1Triangle(10, 0, 2, 0x0), - gsSPLight(&ccm_seg7_lights_0701CF08.l, 1), - gsSPLight(&ccm_seg7_lights_0701CF08.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ccm_seg7_vertex_0701DA58, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 3, 0x0, 6, 3, 5, 0x0), - gsSPLight(&ccm_seg7_lights_0701CF20.l, 1), - gsSPLight(&ccm_seg7_lights_0701CF20.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ccm_seg7_vertex_0701DAD8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -461,14 +445,14 @@ static const Gfx ccm_seg7_dl_0701E3F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0701CEF0.l, 1), - gsSPLight(&ccm_seg7_lights_0701CEF0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(ccm_seg7_vertex_0701DC78, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), - gsSPLight(&ccm_seg7_lights_0701CF20.l, 1), - gsSPLight(&ccm_seg7_lights_0701CF20.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ccm_seg7_vertex_0701DD38, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ccm/areas/2/3/model.inc.c b/levels/ccm/areas/2/3/model.inc.c index 68ae861b..a062f58a 100644 --- a/levels/ccm/areas/2/3/model.inc.c +++ b/levels/ccm/areas/2/3/model.inc.c @@ -1,8 +1,4 @@ // 0x0701E610 - 0x0701E628 -static const Lights1 ccm_seg7_lights_0701E610 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701E628 - 0x0701E668 static const Vtx ccm_seg7_vertex_0701E628[] = { @@ -17,8 +13,8 @@ static const Gfx ccm_seg7_dl_0701E668[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07004B00), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0701E610.l, 1), - gsSPLight(&ccm_seg7_lights_0701E610.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ccm_seg7_vertex_0701E628, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/ccm/areas/2/4/model.inc.c b/levels/ccm/areas/2/4/model.inc.c index 17dc6cbb..5e9e39c1 100644 --- a/levels/ccm/areas/2/4/model.inc.c +++ b/levels/ccm/areas/2/4/model.inc.c @@ -1,8 +1,4 @@ // 0x0701E720 - 0x0701E738 -static const Lights1 ccm_seg7_lights_0701E720 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701E738 - 0x0701E828 static const Vtx ccm_seg7_vertex_0701E738[] = { @@ -346,8 +342,8 @@ static const Gfx ccm_seg7_dl_0701F7C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0701E720.l, 1), - gsSPLight(&ccm_seg7_lights_0701E720.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_0701E738, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 4, 7, 6, 0x0), diff --git a/levels/ccm/areas/2/5/model.inc.c b/levels/ccm/areas/2/5/model.inc.c index 61fda435..1f276756 100644 --- a/levels/ccm/areas/2/5/model.inc.c +++ b/levels/ccm/areas/2/5/model.inc.c @@ -1,8 +1,4 @@ // 0x0701FCD8 - 0x0701FCF0 -static const Lights1 ccm_seg7_lights_0701FCD8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701FCF0 - 0x0701FD30 static const Vtx ccm_seg7_vertex_0701FCF0[] = { @@ -17,8 +13,8 @@ static const Gfx ccm_seg7_dl_0701FD30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0701FCD8.l, 1), - gsSPLight(&ccm_seg7_lights_0701FCD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ccm_seg7_vertex_0701FCF0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/ccm/areas/2/7/model.inc.c b/levels/ccm/areas/2/7/model.inc.c index 432a280c..f1b6a81f 100644 --- a/levels/ccm/areas/2/7/model.inc.c +++ b/levels/ccm/areas/2/7/model.inc.c @@ -1,14 +1,6 @@ // 0x0701FEE0 - 0x0701FEF8 -static const Lights1 ccm_seg7_lights_0701FEE0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0701FEF8 - 0x0701FF10 -static const Lights1 ccm_seg7_lights_0701FEF8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701FF10 - 0x0701FF70 static const Vtx ccm_seg7_vertex_0701FF10[] = { @@ -151,8 +143,8 @@ static const Gfx ccm_seg7_dl_07020590[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07003900), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0701FEE0.l, 1), - gsSPLight(&ccm_seg7_lights_0701FEE0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ccm_seg7_vertex_0701FF10, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 5, 0, 4, 0x0), @@ -164,8 +156,8 @@ static const Gfx ccm_seg7_dl_070205E8[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07003B00), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_0701FEF8.l, 1), - gsSPLight(&ccm_seg7_lights_0701FEF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ccm_seg7_vertex_0701FF70, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ccm/ropeway_lift/2.inc.c b/levels/ccm/ropeway_lift/2.inc.c index a22ebf0c..8b915311 100644 --- a/levels/ccm/ropeway_lift/2.inc.c +++ b/levels/ccm/ropeway_lift/2.inc.c @@ -1,8 +1,4 @@ // 0x07010FB8 - 0x07010FD0 -static const Lights1 ccm_seg7_lights_07010FB8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07010FD0 - 0x070110C0 static const Vtx ccm_seg7_vertex_07010FD0[] = { @@ -146,8 +142,8 @@ static const Gfx ccm_seg7_dl_07011660[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 4 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07010FB8.l, 1), - gsSPLight(&ccm_seg7_lights_07010FB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ccm_seg7_vertex_07010FD0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ccm/snowman_base/model.inc.c b/levels/ccm/snowman_base/model.inc.c index 6b41acd2..ce56ce6b 100644 --- a/levels/ccm/snowman_base/model.inc.c +++ b/levels/ccm/snowman_base/model.inc.c @@ -1,8 +1,4 @@ // 0x07011940 - 0x07011958 -static const Lights1 ccm_seg7_lights_07011940 = gdSPDefLights1( - 0xcc, 0xcc, 0xcc, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011958 - 0x07012158 ALIGNED8 static const Texture ccm_seg7_texture_07011958[] = { @@ -167,8 +163,8 @@ static const Gfx ccm_seg7_dl_070128E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07011958), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07011940.l, 1), - gsSPLight(&ccm_seg7_lights_07011940.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0xccccccff), gsSPVertex(ccm_seg7_vertex_07012158, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 4, 7, 6, 0x0), diff --git a/levels/ccm/snowman_head/1.inc.c b/levels/ccm/snowman_head/1.inc.c index e4aec363..27f9abfb 100644 --- a/levels/ccm/snowman_head/1.inc.c +++ b/levels/ccm/snowman_head/1.inc.c @@ -1,8 +1,4 @@ // 0x07012C38 - 0x07012C50 -static const Lights1 ccm_seg7_lights_07012C38 = gdSPDefLights1( - 0xcc, 0xcc, 0xcc, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07012C50 - 0x07012D50 static const Vtx ccm_seg7_vertex_07012C50[] = { @@ -162,8 +158,8 @@ static const Gfx ccm_seg7_dl_070133E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07011958), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ccm_seg7_lights_07012C38.l, 1), - gsSPLight(&ccm_seg7_lights_07012C38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0xccccccff), gsSPVertex(ccm_seg7_vertex_07012C50, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 4, 7, 6, 0x0), diff --git a/levels/cotmc/areas/1/1/model.inc.c b/levels/cotmc/areas/1/1/model.inc.c index ec10dc01..4230f685 100644 --- a/levels/cotmc/areas/1/1/model.inc.c +++ b/levels/cotmc/areas/1/1/model.inc.c @@ -1,44 +1,16 @@ // 0x07003000 - 0x07003018 -static const Lights1 cotmc_seg7_lights_07003000 = gdSPDefLights1( - 0x4b, 0x78, 0x70, - 0x96, 0xf0, 0xe1, 0x28, 0x28, 0x28 -); // 0x07003018 - 0x07003030 -static const Lights1 cotmc_seg7_lights_07003018 = gdSPDefLights1( - 0x44, 0x44, 0x44, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x07003030 - 0x07003048 -static const Lights1 cotmc_seg7_lights_07003030 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07003048 - 0x07003060 -static const Lights1 cotmc_seg7_lights_07003048 = gdSPDefLights1( - 0x00, 0x3c, 0x3c, - 0x00, 0x78, 0x78, 0x28, 0x28, 0x28 -); // 0x07003060 - 0x07003078 -static const Lights1 cotmc_seg7_lights_07003060 = gdSPDefLights1( - 0x3b, 0x3b, 0x3b, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x07003078 - 0x07003090 -static const Lights1 cotmc_seg7_lights_07003078 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07003090 - 0x070030A8 -static const Lights1 cotmc_seg7_lights_07003090 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x070030A8 - 0x070031A8 static const Vtx cotmc_seg7_vertex_070030A8[] = { @@ -1169,8 +1141,8 @@ static const Gfx cotmc_seg7_dl_070066E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cotmc_seg7_lights_07003000.l, 1), - gsSPLight(&cotmc_seg7_lights_07003000.a, 2), + gsSPLightColor(LIGHT_1, 0x96f0e1ff), + gsSPLightColor(LIGHT_2, 0x4b7870ff), gsSPVertex(cotmc_seg7_vertex_070030A8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 6, 7, 5, 0x0), @@ -1238,8 +1210,8 @@ static const Gfx cotmc_seg7_dl_070066E8[] = { gsSP2Triangles( 4, 1, 3, 0x0, 5, 6, 7, 0x0), gsSP2Triangles( 5, 8, 6, 0x0, 5, 9, 8, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0), - gsSPLight(&cotmc_seg7_lights_07003018.l, 1), - gsSPLight(&cotmc_seg7_lights_07003018.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(cotmc_seg7_vertex_07003A48, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 4, 2, 5, 0x0), @@ -1247,14 +1219,14 @@ static const Gfx cotmc_seg7_dl_070066E8[] = { gsSP2Triangles( 6, 5, 8, 0x0, 6, 8, 9, 0x0), gsSP2Triangles( 8, 10, 11, 0x0, 9, 8, 11, 0x0), gsSP2Triangles(11, 10, 7, 0x0, 11, 7, 3, 0x0), - gsSPLight(&cotmc_seg7_lights_07003030.l, 1), - gsSPLight(&cotmc_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cotmc_seg7_vertex_07003B08, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 1, 5, 2, 0x0), gsSP2Triangles( 5, 6, 2, 0x0, 2, 6, 4, 0x0), - gsSPLight(&cotmc_seg7_lights_07003048.l, 1), - gsSPLight(&cotmc_seg7_lights_07003048.a, 2), + gsSPLightColor(LIGHT_1, 0x7878ff), + gsSPLightColor(LIGHT_2, 0x3c3cff), gsSPVertex(cotmc_seg7_vertex_07003B78, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 5, 7, 0x0), @@ -1270,22 +1242,22 @@ static const Gfx cotmc_seg7_dl_07006C18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cotmc_seg7_texture_07002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cotmc_seg7_lights_07003060.l, 1), - gsSPLight(&cotmc_seg7_lights_07003060.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x3b3b3bff), gsSPVertex(cotmc_seg7_vertex_07003C38, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 1, 5, 2, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 7, 4, 9, 0x0), gsSP2Triangles( 7, 9, 8, 0x0, 4, 3, 9, 0x0), - gsSPLight(&cotmc_seg7_lights_07003018.l, 1), - gsSPLight(&cotmc_seg7_lights_07003018.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(cotmc_seg7_vertex_07003CD8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 2, 5, 0x0, 4, 0, 2, 0x0), gsSP2Triangles( 5, 6, 4, 0x0, 7, 4, 6, 0x0), gsSP2Triangles( 7, 8, 4, 0x0, 8, 9, 4, 0x0), - gsSPLight(&cotmc_seg7_lights_07003030.l, 1), - gsSPLight(&cotmc_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cotmc_seg7_vertex_07003D78, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -1341,8 +1313,8 @@ static const Gfx cotmc_seg7_dl_07006F88[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cotmc_seg7_texture_07001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cotmc_seg7_lights_07003018.l, 1), - gsSPLight(&cotmc_seg7_lights_07003018.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(cotmc_seg7_vertex_070043E8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 7, 8, 0x0), @@ -1354,8 +1326,8 @@ static const Gfx cotmc_seg7_dl_07006F88[] = { gsSPVertex(cotmc_seg7_vertex_070044E8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 4, 3, 5, 0x0), - gsSPLight(&cotmc_seg7_lights_07003030.l, 1), - gsSPLight(&cotmc_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cotmc_seg7_vertex_07004548, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 2, 3, 5, 0x0, 2, 6, 3, 0x0), @@ -1379,8 +1351,8 @@ static const Gfx cotmc_seg7_dl_07006F88[] = { gsSPVertex(cotmc_seg7_vertex_07004838, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 3, 4, 1, 0x0, 5, 6, 7, 0x0), - gsSPLight(&cotmc_seg7_lights_07003048.l, 1), - gsSPLight(&cotmc_seg7_lights_07003048.a, 2), + gsSPLightColor(LIGHT_1, 0x7878ff), + gsSPLightColor(LIGHT_2, 0x3c3cff), gsSPVertex(cotmc_seg7_vertex_070048B8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 0, 5, 4, 0x0), @@ -1398,8 +1370,8 @@ static const Gfx cotmc_seg7_dl_07007248[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cotmc_seg7_lights_07003030.l, 1), - gsSPLight(&cotmc_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cotmc_seg7_vertex_070049B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 4, 2, 5, 0x0), @@ -1498,8 +1470,8 @@ static const Gfx cotmc_seg7_dl_07007688[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cotmc_seg7_texture_07002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 16 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cotmc_seg7_lights_07003000.l, 1), - gsSPLight(&cotmc_seg7_lights_07003000.a, 2), + gsSPLightColor(LIGHT_1, 0x96f0e1ff), + gsSPLightColor(LIGHT_2, 0x4b7870ff), gsSPVertex(cotmc_seg7_vertex_07005668, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1513,8 +1485,8 @@ static const Gfx cotmc_seg7_dl_07007688[] = { gsSPVertex(cotmc_seg7_vertex_07005848, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&cotmc_seg7_lights_07003060.l, 1), - gsSPLight(&cotmc_seg7_lights_07003060.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x3b3b3bff), gsSPVertex(cotmc_seg7_vertex_070058C8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 3, 4, 0x0), @@ -1535,15 +1507,15 @@ static const Gfx cotmc_seg7_dl_07007688[] = { gsSP2Triangles( 4, 5, 6, 0x0, 6, 7, 8, 0x0), gsSP2Triangles( 6, 5, 7, 0x0, 5, 9, 7, 0x0), gsSP2Triangles(10, 11, 2, 0x0, 3, 10, 2, 0x0), - gsSPLight(&cotmc_seg7_lights_07003018.l, 1), - gsSPLight(&cotmc_seg7_lights_07003018.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(cotmc_seg7_vertex_07005C48, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 3, 2, 0x0, 4, 5, 3, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 6, 0x0), gsSP2Triangles( 6, 10, 7, 0x0, 9, 11, 10, 0x0), - gsSPLight(&cotmc_seg7_lights_07003078.l, 1), - gsSPLight(&cotmc_seg7_lights_07003078.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(cotmc_seg7_vertex_07005D08, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 2, 4, 5, 0x0), @@ -1556,12 +1528,12 @@ static const Gfx cotmc_seg7_dl_07007920[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cotmc_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cotmc_seg7_lights_07003090.l, 1), - gsSPLight(&cotmc_seg7_lights_07003090.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(cotmc_seg7_vertex_07005DA8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&cotmc_seg7_lights_07003018.l, 1), - gsSPLight(&cotmc_seg7_lights_07003018.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(cotmc_seg7_vertex_07005DE8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 3, 2, 0x0, 5, 4, 2, 0x0), @@ -1584,8 +1556,8 @@ static const Gfx cotmc_seg7_dl_07007920[] = { gsSP2Triangles(11, 8, 7, 0x0, 9, 12, 10, 0x0), gsSP2Triangles( 7, 13, 11, 0x0, 14, 11, 13, 0x0), gsSP2Triangles(14, 12, 11, 0x0, 12, 14, 10, 0x0), - gsSPLight(&cotmc_seg7_lights_07003030.l, 1), - gsSPLight(&cotmc_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cotmc_seg7_vertex_070060C8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 3, 0x0, 4, 3, 7, 0x0), @@ -1606,8 +1578,8 @@ static const Gfx cotmc_seg7_dl_07007920[] = { // 0x07007B90 - 0x07007D48 static const Gfx cotmc_seg7_dl_07007B90[] = { - gsSPLight(&cotmc_seg7_lights_07003090.l, 1), - gsSPLight(&cotmc_seg7_lights_07003090.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(cotmc_seg7_vertex_07006358, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 0, 2, 5, 0x0), @@ -1635,8 +1607,8 @@ static const Gfx cotmc_seg7_dl_07007B90[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 3, 4, 1, 0x0, 5, 4, 3, 0x0), gsSP1Triangle( 5, 6, 4, 0x0), - gsSPLight(&cotmc_seg7_lights_07003030.l, 1), - gsSPLight(&cotmc_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cotmc_seg7_vertex_070066A8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/cotmc/areas/1/2/model.inc.c b/levels/cotmc/areas/1/2/model.inc.c index 8583d216..4646f9c5 100644 --- a/levels/cotmc/areas/1/2/model.inc.c +++ b/levels/cotmc/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07007E88 - 0x07007EA0 -static const Lights1 cotmc_seg7_lights_07007E88 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07007EA0 - 0x07007F90 static const Vtx cotmc_seg7_vertex_07007EA0[] = { @@ -592,8 +588,8 @@ static const Gfx cotmc_seg7_dl_07009B50[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cotmc_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&cotmc_seg7_lights_07007E88.l, 1), - gsSPLight(&cotmc_seg7_lights_07007E88.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(cotmc_seg7_vertex_07007EA0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/ddd/areas/1/1/model.inc.c b/levels/ddd/areas/1/1/model.inc.c index 9fdf2de4..fe5fd809 100644 --- a/levels/ddd/areas/1/1/model.inc.c +++ b/levels/ddd/areas/1/1/model.inc.c @@ -1,26 +1,10 @@ // 0x07003800 - 0x07003818 -static const Lights1 ddd_seg7_lights_07003800 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07003818 - 0x07003830 -static const Lights1 ddd_seg7_lights_07003818 = gdSPDefLights1( - 0x1a, 0x1a, 0x3f, - 0x69, 0x69, 0xfe, 0x28, 0x28, 0x28 -); // 0x07003830 - 0x07003848 -static const Lights1 ddd_seg7_lights_07003830 = gdSPDefLights1( - 0x26, 0x26, 0x3f, - 0x9b, 0x9b, 0xff, 0x28, 0x28, 0x28 -); // 0x07003848 - 0x07003860 -static const Lights1 ddd_seg7_lights_07003848 = gdSPDefLights1( - 0x32, 0x32, 0x3f, - 0xc8, 0xc8, 0xff, 0x28, 0x28, 0x28 -); // 0x07003860 - 0x07003960 static const Vtx ddd_seg7_vertex_07003860[] = { @@ -329,8 +313,8 @@ static const Gfx ddd_seg7_dl_07004700[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07003800.l, 1), - gsSPLight(&ddd_seg7_lights_07003800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ddd_seg7_vertex_07003860, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 5, 6, 7, 0x0), @@ -351,12 +335,12 @@ static const Gfx ddd_seg7_dl_07004700[] = { gsSP2Triangles( 2, 3, 4, 0x0, 4, 3, 5, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 5, 7, 0x0), gsSP1Triangle( 5, 8, 7, 0x0), - gsSPLight(&ddd_seg7_lights_07003818.l, 1), - gsSPLight(&ddd_seg7_lights_07003818.a, 2), + gsSPLightColor(LIGHT_1, 0x6969feff), + gsSPLightColor(LIGHT_2, 0x1a1a3fff), gsSPVertex(ddd_seg7_vertex_07003AF0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ddd_seg7_lights_07003830.l, 1), - gsSPLight(&ddd_seg7_lights_07003830.a, 2), + gsSPLightColor(LIGHT_1, 0x9b9bffff), + gsSPLightColor(LIGHT_2, 0x26263fff), gsSPVertex(ddd_seg7_vertex_07003B30, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 4, 6, 0x0), @@ -402,8 +386,8 @@ static const Gfx ddd_seg7_dl_07004700[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 5, 6, 3, 0x0), gsSP2Triangles( 5, 7, 6, 0x0, 6, 7, 8, 0x0), - gsSPLight(&ddd_seg7_lights_07003848.l, 1), - gsSPLight(&ddd_seg7_lights_07003848.a, 2), + gsSPLightColor(LIGHT_1, 0xc8c8ffff), + gsSPLightColor(LIGHT_2, 0x32323fff), gsSPVertex(ddd_seg7_vertex_070041C0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 4, 1, 6, 0x0), diff --git a/levels/ddd/areas/1/2/model.inc.c b/levels/ddd/areas/1/2/model.inc.c index 2bf152b9..d3eaec70 100644 --- a/levels/ddd/areas/1/2/model.inc.c +++ b/levels/ddd/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07004DA8 - 0x07004DC0 -static const Lights1 ddd_seg7_lights_07004DA8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004DC0 - 0x07004EC0 static const Vtx ddd_seg7_vertex_07004DC0[] = { @@ -168,8 +164,8 @@ static const Gfx ddd_seg7_dl_07005570[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07004DA8.l, 1), - gsSPLight(&ddd_seg7_lights_07004DA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ddd_seg7_vertex_07004DC0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ddd/areas/1/3/model.inc.c b/levels/ddd/areas/1/3/model.inc.c index 80f180c9..b9f921f1 100644 --- a/levels/ddd/areas/1/3/model.inc.c +++ b/levels/ddd/areas/1/3/model.inc.c @@ -1,8 +1,4 @@ // 0x07005850 - 0x07005868 -static const Lights1 ddd_seg7_lights_07005850 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005868 - 0x07005968 static const Vtx ddd_seg7_vertex_07005868[] = { @@ -62,8 +58,8 @@ static const Gfx ddd_seg7_dl_07005AF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07005850.l, 1), - gsSPLight(&ddd_seg7_lights_07005850.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(ddd_seg7_vertex_07005868, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 4, 6, 0x0), diff --git a/levels/ddd/areas/2/1/model.inc.c b/levels/ddd/areas/2/1/model.inc.c index 2c519620..51c32bd2 100644 --- a/levels/ddd/areas/2/1/model.inc.c +++ b/levels/ddd/areas/2/1/model.inc.c @@ -1,32 +1,12 @@ // 0x07005FC8 - 0x07005FE0 -static const Lights1 ddd_seg7_lights_07005FC8 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07005FE0 - 0x07005FF8 -static const Lights1 ddd_seg7_lights_07005FE0 = gdSPDefLights1( - 0x1b, 0x1b, 0x1b, - 0x44, 0x44, 0x44, 0x28, 0x28, 0x28 -); // 0x07005FF8 - 0x07006010 -static const Lights1 ddd_seg7_lights_07005FF8 = gdSPDefLights1( - 0x2f, 0x2f, 0x2f, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x07006010 - 0x07006028 -static const Lights1 ddd_seg7_lights_07006010 = gdSPDefLights1( - 0x44, 0x44, 0x44, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x07006028 - 0x07006040 -static const Lights1 ddd_seg7_lights_07006028 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07006040 - 0x07006080 static const Vtx ddd_seg7_vertex_07006040[] = { @@ -343,20 +323,20 @@ static const Gfx ddd_seg7_dl_07006E20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07005FC8.l, 1), - gsSPLight(&ddd_seg7_lights_07005FC8.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ddd_seg7_vertex_07006040, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ddd_seg7_lights_07005FE0.l, 1), - gsSPLight(&ddd_seg7_lights_07005FE0.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x1b1b1bff), gsSPVertex(ddd_seg7_vertex_07006080, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ddd_seg7_lights_07005FF8.l, 1), - gsSPLight(&ddd_seg7_lights_07005FF8.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x2f2f2fff), gsSPVertex(ddd_seg7_vertex_070060C0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ddd_seg7_lights_07006010.l, 1), - gsSPLight(&ddd_seg7_lights_07006010.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(ddd_seg7_vertex_07006100, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -367,23 +347,23 @@ static const Gfx ddd_seg7_dl_07006EE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07005FE0.l, 1), - gsSPLight(&ddd_seg7_lights_07005FE0.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x1b1b1bff), gsSPVertex(ddd_seg7_vertex_07006140, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ddd_seg7_lights_07005FF8.l, 1), - gsSPLight(&ddd_seg7_lights_07005FF8.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x2f2f2fff), gsSPVertex(ddd_seg7_vertex_070061C0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ddd_seg7_lights_07006010.l, 1), - gsSPLight(&ddd_seg7_lights_07006010.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(ddd_seg7_vertex_07006240, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ddd_seg7_lights_07006028.l, 1), - gsSPLight(&ddd_seg7_lights_07006028.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(ddd_seg7_vertex_070062C0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 3, 0x0, 3, 5, 7, 0x0), @@ -407,20 +387,20 @@ static const Gfx ddd_seg7_dl_07007080[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07005FE0.l, 1), - gsSPLight(&ddd_seg7_lights_07005FE0.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x1b1b1bff), gsSPVertex(ddd_seg7_vertex_07006520, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ddd_seg7_lights_07005FF8.l, 1), - gsSPLight(&ddd_seg7_lights_07005FF8.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x2f2f2fff), gsSPVertex(ddd_seg7_vertex_07006560, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ddd_seg7_lights_07006010.l, 1), - gsSPLight(&ddd_seg7_lights_07006010.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x444444ff), gsSPVertex(ddd_seg7_vertex_070065A0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ddd_seg7_lights_07006028.l, 1), - gsSPLight(&ddd_seg7_lights_07006028.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(ddd_seg7_vertex_070065E0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 6, 8, 0x0), diff --git a/levels/ddd/areas/2/2/model.inc.c b/levels/ddd/areas/2/2/model.inc.c index 68fb7264..496ada56 100644 --- a/levels/ddd/areas/2/2/model.inc.c +++ b/levels/ddd/areas/2/2/model.inc.c @@ -1,8 +1,4 @@ // 0x070074C8 - 0x070074E0 -static const Lights1 ddd_seg7_lights_070074C8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070074E0 - 0x070075E0 static const Vtx ddd_seg7_vertex_070074E0[] = { @@ -134,8 +130,8 @@ static const Gfx ddd_seg7_dl_07007AF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_070074C8.l, 1), - gsSPLight(&ddd_seg7_lights_070074C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ddd_seg7_vertex_070074E0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ddd/areas/2/3/model.inc.c b/levels/ddd/areas/2/3/model.inc.c index 80af2861..0a8b2396 100644 --- a/levels/ddd/areas/2/3/model.inc.c +++ b/levels/ddd/areas/2/3/model.inc.c @@ -1,8 +1,4 @@ // 0x07007D18 - 0x07007D30 -static const Lights1 ddd_seg7_lights_07007D18 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07007D30 - 0x07007E20 static const Vtx ddd_seg7_vertex_07007D30[] = { @@ -249,8 +245,8 @@ static const Gfx ddd_seg7_dl_070088F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07007D18.l, 1), - gsSPLight(&ddd_seg7_lights_07007D18.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(ddd_seg7_vertex_07007D30, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ddd/areas/2/5/model.inc.c b/levels/ddd/areas/2/5/model.inc.c index 0db444c6..4a6bdcc3 100644 --- a/levels/ddd/areas/2/5/model.inc.c +++ b/levels/ddd/areas/2/5/model.inc.c @@ -1,8 +1,4 @@ // 0x0700B0D8 - 0x0700B0F0 -static const Lights1 ddd_seg7_lights_0700B0D8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700B0F0 - 0x0700B1D0 static const Vtx ddd_seg7_vertex_0700B0F0[] = { @@ -163,8 +159,8 @@ static const Gfx ddd_seg7_dl_0700B890[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_0700B0D8.l, 1), - gsSPLight(&ddd_seg7_lights_0700B0D8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ddd_seg7_vertex_0700B0F0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 5, 0x0, 6, 7, 8, 0x0), diff --git a/levels/ddd/areas/2/6/model.inc.c b/levels/ddd/areas/2/6/model.inc.c index 5fe61e4d..aa0ef47d 100644 --- a/levels/ddd/areas/2/6/model.inc.c +++ b/levels/ddd/areas/2/6/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BB50 - 0x0700BB68 -static const Lights1 ddd_seg7_lights_0700BB50 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BB68 - 0x0700BC58 static const Vtx ddd_seg7_vertex_0700BB68[] = { @@ -308,8 +304,8 @@ static const Gfx ddd_seg7_dl_0700C9D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_0700BB50.l, 1), - gsSPLight(&ddd_seg7_lights_0700BB50.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(ddd_seg7_vertex_0700BB68, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ddd/pole/model.inc.c b/levels/ddd/pole/model.inc.c index 82c89e9f..e6a4f181 100644 --- a/levels/ddd/pole/model.inc.c +++ b/levels/ddd/pole/model.inc.c @@ -1,8 +1,4 @@ // 0x0700CEE0 - 0x0700CEF8 -static const Lights1 ddd_seg7_lights_0700CEE0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700CEF8 - 0x0700CFE8 static const Vtx ddd_seg7_vertex_0700CEF8[] = { @@ -65,8 +61,8 @@ static const Gfx ddd_seg7_dl_0700D1B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_0700CEE0.l, 1), - gsSPLight(&ddd_seg7_lights_0700CEE0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(ddd_seg7_vertex_0700CEF8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ddd/sub_door/2.inc.c b/levels/ddd/sub_door/2.inc.c index 5562b03d..0009ddb9 100644 --- a/levels/ddd/sub_door/2.inc.c +++ b/levels/ddd/sub_door/2.inc.c @@ -1,8 +1,4 @@ // 0x07009080 - 0x07009098 -static const Lights1 ddd_seg7_lights_07009080 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009098 - 0x070090D8 static const Vtx ddd_seg7_vertex_07009098[] = { @@ -17,8 +13,8 @@ static const Gfx ddd_seg7_dl_070090D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07009080.l, 1), - gsSPLight(&ddd_seg7_lights_07009080.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(ddd_seg7_vertex_07009098, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/ddd/submarine/1.inc.c b/levels/ddd/submarine/1.inc.c index 63c4b4a1..ac16586b 100644 --- a/levels/ddd/submarine/1.inc.c +++ b/levels/ddd/submarine/1.inc.c @@ -1,32 +1,12 @@ // 0x07009288 - 0x070092A0 -static const Lights1 ddd_seg7_lights_07009288 = gdSPDefLights1( - 0x3f, 0x1f, 0x19, - 0xff, 0x7f, 0x65, 0x28, 0x28, 0x28 -); // 0x070092A0 - 0x070092B8 -static const Lights1 ddd_seg7_lights_070092A0 = gdSPDefLights1( - 0x2f, 0x1a, 0x0f, - 0xbf, 0x6a, 0x3f, 0x28, 0x28, 0x28 -); // 0x070092B8 - 0x070092D0 -static const Lights1 ddd_seg7_lights_070092B8 = gdSPDefLights1( - 0x0c, 0x0c, 0x0c, - 0x33, 0x33, 0x33, 0x28, 0x28, 0x28 -); // 0x070092D0 - 0x070092E8 -static const Lights1 ddd_seg7_lights_070092D0 = gdSPDefLights1( - 0x1d, 0x1d, 0x1d, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x070092E8 - 0x07009300 -static const Lights1 ddd_seg7_lights_070092E8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009300 - 0x07009400 static const Vtx ddd_seg7_vertex_07009300[] = { @@ -425,8 +405,8 @@ static const Gfx ddd_seg7_dl_0700A600[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_07009288.l, 1), - gsSPLight(&ddd_seg7_lights_07009288.a, 2), + gsSPLightColor(LIGHT_1, 0xff7f65ff), + gsSPLightColor(LIGHT_2, 0x3f1f19ff), gsSPVertex(ddd_seg7_vertex_07009300, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 5, 4, 7, 0x0), @@ -441,8 +421,8 @@ static const Gfx ddd_seg7_dl_0700A600[] = { gsSP2Triangles( 1, 3, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 4, 7, 6, 0x0), gsSP1Triangle( 8, 7, 4, 0x0), - gsSPLight(&ddd_seg7_lights_070092A0.l, 1), - gsSPLight(&ddd_seg7_lights_070092A0.a, 2), + gsSPLightColor(LIGHT_1, 0xbf6a3fff), + gsSPLightColor(LIGHT_2, 0x2f1a0fff), gsSPVertex(ddd_seg7_vertex_07009490, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 4, 3, 5, 0x0, 5, 3, 0, 0x0), @@ -458,14 +438,14 @@ static const Gfx ddd_seg7_dl_0700A600[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 4, 1, 0, 0x0), gsSP1Triangle( 2, 1, 3, 0x0), - gsSPLight(&ddd_seg7_lights_070092B8.l, 1), - gsSPLight(&ddd_seg7_lights_070092B8.a, 2), + gsSPLightColor(LIGHT_1, 0x333333ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(ddd_seg7_vertex_070095E0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 2, 5, 0x0), gsSP2Triangles( 0, 6, 1, 0x0, 0, 4, 7, 0x0), - gsSPLight(&ddd_seg7_lights_070092D0.l, 1), - gsSPLight(&ddd_seg7_lights_070092D0.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x1d1d1dff), gsSPVertex(ddd_seg7_vertex_07009660, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 5, 0x0), @@ -478,8 +458,8 @@ static const Gfx ddd_seg7_dl_0700A600[] = { gsSP2Triangles( 6, 7, 2, 0x0, 7, 8, 2, 0x0), gsSP2Triangles( 8, 9, 2, 0x0, 9, 10, 2, 0x0), gsSP1Triangle(10, 0, 2, 0x0), - gsSPLight(&ddd_seg7_lights_070092E8.l, 1), - gsSPLight(&ddd_seg7_lights_070092E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ddd_seg7_vertex_07009800, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 3, 5, 1, 0x0), diff --git a/levels/ddd/submarine/2.inc.c b/levels/ddd/submarine/2.inc.c index c0d8d71b..9999686d 100644 --- a/levels/ddd/submarine/2.inc.c +++ b/levels/ddd/submarine/2.inc.c @@ -1,8 +1,4 @@ // 0x0700AF78 - 0x0700AF90 -static const Lights1 ddd_seg7_lights_0700AF78 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700AF90 - 0x0700B010 static const Vtx ddd_seg7_vertex_0700AF90[] = { @@ -21,8 +17,8 @@ static const Gfx ddd_seg7_dl_0700B010[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ddd_seg7_lights_0700AF78.l, 1), - gsSPLight(&ddd_seg7_lights_0700AF78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ddd_seg7_vertex_0700AF90, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/hmc/areas/1/1/model.inc.c b/levels/hmc/areas/1/1/model.inc.c index 746fc205..ad3c9664 100644 --- a/levels/hmc/areas/1/1/model.inc.c +++ b/levels/hmc/areas/1/1/model.inc.c @@ -1,20 +1,8 @@ // 0x07005800 - 0x07005818 -static const Lights1 hmc_seg7_lights_07005800 = gdSPDefLights1( - 0x48, 0x48, 0x48, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07005818 - 0x07005830 -static const Lights1 hmc_seg7_lights_07005818 = gdSPDefLights1( - 0x79, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07005830 - 0x07005848 -static const Lights1 hmc_seg7_lights_07005830 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005848 - 0x070058A8 static const Vtx hmc_seg7_vertex_07005848[] = { @@ -516,13 +504,13 @@ static const Gfx hmc_seg7_dl_07006FF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09009800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07005800.l, 1), - gsSPLight(&hmc_seg7_lights_07005800.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x484848ff), gsSPVertex(hmc_seg7_vertex_07005848, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 4, 5, 0x0), - gsSPLight(&hmc_seg7_lights_07005818.l, 1), - gsSPLight(&hmc_seg7_lights_07005818.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x790000ff), gsSPVertex(hmc_seg7_vertex_070058A8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 3, 5, 6, 0x0), @@ -534,8 +522,8 @@ static const Gfx hmc_seg7_dl_07007080[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07005830.l, 1), - gsSPLight(&hmc_seg7_lights_07005830.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07005918, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/hmc/areas/1/10/model.inc.c b/levels/hmc/areas/1/10/model.inc.c index 3f665c59..a2601024 100644 --- a/levels/hmc/areas/1/10/model.inc.c +++ b/levels/hmc/areas/1/10/model.inc.c @@ -1,8 +1,4 @@ // 0x0700FF70 - 0x0700FF88 -static const Lights1 hmc_seg7_lights_0700FF70 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700FF88 - 0x07010008 static const Vtx hmc_seg7_vertex_0700FF88[] = { @@ -21,8 +17,8 @@ static const Gfx hmc_seg7_dl_07010008[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_0700FF70.l, 1), - gsSPLight(&hmc_seg7_lights_0700FF70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_0700FF88, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 0, 5, 4, 0x0), diff --git a/levels/hmc/areas/1/11/model.inc.c b/levels/hmc/areas/1/11/model.inc.c index 4982813a..84148707 100644 --- a/levels/hmc/areas/1/11/model.inc.c +++ b/levels/hmc/areas/1/11/model.inc.c @@ -1,14 +1,6 @@ // 0x07010118 - 0x07010130 -static const Lights1 hmc_seg7_lights_07010118 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07010130 - 0x07010148 -static const Lights1 hmc_seg7_lights_07010130 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07010148 - 0x07010248 static const Vtx hmc_seg7_vertex_07010148[] = { @@ -902,8 +894,8 @@ static const Gfx hmc_seg7_dl_07012C78[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07010118.l, 1), - gsSPLight(&hmc_seg7_lights_07010118.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(hmc_seg7_vertex_07010148, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 3, 6, 0x0), @@ -923,8 +915,8 @@ static const Gfx hmc_seg7_dl_07012C78[] = { gsSP2Triangles(12, 9, 13, 0x0, 11, 10, 14, 0x0), gsSP2Triangles(11, 15, 0, 0x0, 11, 14, 15, 0x0), gsSP1Triangle(12, 10, 9, 0x0), - gsSPLight(&hmc_seg7_lights_07010130.l, 1), - gsSPLight(&hmc_seg7_lights_07010130.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07010448, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 5, 0x0), @@ -1240,8 +1232,8 @@ static const Gfx hmc_seg7_dl_07013BC8[] = { // 0x07013C78 - 0x07013CA8 static const Gfx hmc_seg7_dl_07013C78[] = { - gsSPLight(&hmc_seg7_lights_07010118.l, 1), - gsSPLight(&hmc_seg7_lights_07010118.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(hmc_seg7_vertex_07012C38, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/hmc/areas/1/16/model.inc.c b/levels/hmc/areas/1/16/model.inc.c index 9f0a71ed..110da630 100644 --- a/levels/hmc/areas/1/16/model.inc.c +++ b/levels/hmc/areas/1/16/model.inc.c @@ -1,8 +1,4 @@ // 0x07014CB8 - 0x07014CD0 -static const Lights1 hmc_seg7_lights_07014CB8 = gdSPDefLights1( - 0x23, 0x2b, 0x14, - 0x8e, 0xac, 0x52, 0x28, 0x28, 0x28 -); // 0x07014CD0 - 0x07014DD0 static const Vtx hmc_seg7_vertex_07014CD0[] = { @@ -29,8 +25,8 @@ static const Gfx hmc_seg7_dl_07014DD0[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, cave_0900C000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07014CB8.l, 1), - gsSPLight(&hmc_seg7_lights_07014CB8.a, 2), + gsSPLightColor(LIGHT_1, 0x8eac52ff), + gsSPLightColor(LIGHT_2, 0x232b14ff), gsSPVertex(hmc_seg7_vertex_07014CD0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/hmc/areas/1/17/model.inc.c b/levels/hmc/areas/1/17/model.inc.c index c2f3e6ae..240abaa5 100644 --- a/levels/hmc/areas/1/17/model.inc.c +++ b/levels/hmc/areas/1/17/model.inc.c @@ -1,14 +1,6 @@ // 0x07014EB8 - 0x07014ED0 -static const Lights1 hmc_seg7_lights_07014EB8 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07014ED0 - 0x07014EE8 -static const Lights1 hmc_seg7_lights_07014ED0 = gdSPDefLights1( - 0x79, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07014EE8 - 0x07014FE8 static const Vtx hmc_seg7_vertex_07014EE8[] = { @@ -554,8 +546,8 @@ static const Gfx hmc_seg7_dl_07016918[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07014EB8.l, 1), - gsSPLight(&hmc_seg7_lights_07014EB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07014EE8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -601,8 +593,8 @@ static const Gfx hmc_seg7_dl_07016A90[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSP2Triangles( 4, 8, 9, 0x0, 4, 6, 8, 0x0), - gsSPLight(&hmc_seg7_lights_07014ED0.l, 1), - gsSPLight(&hmc_seg7_lights_07014ED0.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x790000ff), gsSPVertex(hmc_seg7_vertex_07015558, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 0, 2, 6, 0x0), @@ -614,8 +606,8 @@ static const Gfx hmc_seg7_dl_07016BA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07014EB8.l, 1), - gsSPLight(&hmc_seg7_lights_07014EB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_070155C8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 6, 3, 0x0), diff --git a/levels/hmc/areas/1/22/model.inc.c b/levels/hmc/areas/1/22/model.inc.c index 9196839a..310189b7 100644 --- a/levels/hmc/areas/1/22/model.inc.c +++ b/levels/hmc/areas/1/22/model.inc.c @@ -1,8 +1,4 @@ // 0x07019430 - 0x07019448 -static const Lights1 hmc_seg7_lights_07019430 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07019448 - 0x07019548 static const Vtx hmc_seg7_vertex_07019448[] = { @@ -194,8 +190,8 @@ static const Gfx hmc_seg7_dl_07019D18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09009800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07019430.l, 1), - gsSPLight(&hmc_seg7_lights_07019430.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07019448, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/hmc/areas/1/24/model.inc.c b/levels/hmc/areas/1/24/model.inc.c index 8367deeb..94c3edff 100644 --- a/levels/hmc/areas/1/24/model.inc.c +++ b/levels/hmc/areas/1/24/model.inc.c @@ -1,32 +1,12 @@ // 0x0701A4B8 - 0x0701A4D0 -static const Lights1 hmc_seg7_lights_0701A4B8 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0701A4D0 - 0x0701A4E8 -static const Lights1 hmc_seg7_lights_0701A4D0 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701A4E8 - 0x0701A500 -static const Lights1 hmc_seg7_lights_0701A4E8 = gdSPDefLights1( - 0x79, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0701A500 - 0x0701A518 -static const Lights1 hmc_seg7_lights_0701A500 = gdSPDefLights1( - 0x51, 0x43, 0x26, - 0xac, 0x8e, 0x52, 0x28, 0x28, 0x28 -); // 0x0701A518 - 0x0701A530 -static const Lights1 hmc_seg7_lights_0701A518 = gdSPDefLights1( - 0x5a, 0x46, 0x1d, - 0xbf, 0x94, 0x3f, 0x28, 0x28, 0x28 -); // 0x0701A530 - 0x0701A610 static const Vtx hmc_seg7_vertex_0701A530[] = { @@ -1028,8 +1008,8 @@ static const Gfx hmc_seg7_dl_0701D5A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_0701A4B8.l, 1), - gsSPLight(&hmc_seg7_lights_0701A4B8.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(hmc_seg7_vertex_0701A530, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 4, 7, 6, 0x0), @@ -1037,8 +1017,8 @@ static const Gfx hmc_seg7_dl_0701D5A0[] = { gsSP2Triangles( 3, 5, 10, 0x0, 8, 3, 10, 0x0), gsSP2Triangles( 8, 10, 9, 0x0, 11, 1, 0, 0x0), gsSP2Triangles(11, 12, 1, 0x0, 0, 2, 13, 0x0), - gsSPLight(&hmc_seg7_lights_0701A4D0.l, 1), - gsSPLight(&hmc_seg7_lights_0701A4D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_0701A610, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 3, 4, 5, 0x0, 3, 5, 1, 0x0), @@ -1083,8 +1063,8 @@ static const Gfx hmc_seg7_dl_0701D708[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 4, 3, 5, 0x0), gsSP1Triangle( 6, 4, 5, 0x0), - gsSPLight(&hmc_seg7_lights_0701A4E8.l, 1), - gsSPLight(&hmc_seg7_lights_0701A4E8.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x790000ff), gsSPVertex(hmc_seg7_vertex_0701AB50, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1097,8 +1077,8 @@ static const Gfx hmc_seg7_dl_0701D8B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_0701A500.l, 1), - gsSPLight(&hmc_seg7_lights_0701A500.a, 2), + gsSPLightColor(LIGHT_1, 0xac8e52ff), + gsSPLightColor(LIGHT_2, 0x514326ff), gsSPVertex(hmc_seg7_vertex_0701AC30, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 2, 5, 0x0, 0, 5, 4, 0x0), @@ -1107,8 +1087,8 @@ static const Gfx hmc_seg7_dl_0701D8B0[] = { gsSP2Triangles( 8, 10, 13, 0x0, 9, 11, 10, 0x0), gsSP2Triangles( 6, 14, 15, 0x0, 6, 15, 7, 0x0), gsSP2Triangles(14, 13, 15, 0x0, 14, 8, 13, 0x0), - gsSPLight(&hmc_seg7_lights_0701A518.l, 1), - gsSPLight(&hmc_seg7_lights_0701A518.a, 2), + gsSPLightColor(LIGHT_1, 0xbf943fff), + gsSPLightColor(LIGHT_2, 0x5a461dff), gsSPVertex(hmc_seg7_vertex_0701AD30, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 3, 5, 0x0, 3, 2, 5, 0x0), @@ -1117,15 +1097,15 @@ static const Gfx hmc_seg7_dl_0701D8B0[] = { gsSPVertex(hmc_seg7_vertex_0701AE10, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 0, 6, 1, 0x0), - gsSPLight(&hmc_seg7_lights_0701A4B8.l, 1), - gsSPLight(&hmc_seg7_lights_0701A4B8.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(hmc_seg7_vertex_0701AE80, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 5, 7, 0x0), gsSP2Triangles( 5, 8, 9, 0x0, 5, 9, 7, 0x0), gsSP2Triangles( 5, 10, 8, 0x0, 10, 11, 8, 0x0), - gsSPLight(&hmc_seg7_lights_0701A4D0.l, 1), - gsSPLight(&hmc_seg7_lights_0701A4D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_0701AF40, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 5, 7, 0x0, 5, 4, 7, 0x0), diff --git a/levels/hmc/areas/1/29/model.inc.c b/levels/hmc/areas/1/29/model.inc.c index 9a3fb1e6..993e4405 100644 --- a/levels/hmc/areas/1/29/model.inc.c +++ b/levels/hmc/areas/1/29/model.inc.c @@ -1,8 +1,4 @@ // 0x070200B0 - 0x070200C8 -static const Lights1 hmc_seg7_lights_070200B0 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070200C8 - 0x070201C8 static const Vtx hmc_seg7_vertex_070200C8[] = { @@ -222,8 +218,8 @@ static const Gfx hmc_seg7_dl_07020B18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_070200B0.l, 1), - gsSPLight(&hmc_seg7_lights_070200B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_070200C8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 7, 3, 0x0), diff --git a/levels/hmc/areas/1/30/model.inc.c b/levels/hmc/areas/1/30/model.inc.c index 42fb2e02..96866ebf 100644 --- a/levels/hmc/areas/1/30/model.inc.c +++ b/levels/hmc/areas/1/30/model.inc.c @@ -1,8 +1,4 @@ // 0x070210E0 - 0x070210F8 -static const Lights1 hmc_seg7_lights_070210E0 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070210F8 - 0x070211F8 static const Vtx hmc_seg7_vertex_070210F8[] = { @@ -105,8 +101,8 @@ static const Gfx hmc_seg7_dl_070215B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09009800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_070210E0.l, 1), - gsSPLight(&hmc_seg7_lights_070210E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_070210F8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/hmc/areas/1/5/model.inc.c b/levels/hmc/areas/1/5/model.inc.c index 23481086..e7d1e57b 100644 --- a/levels/hmc/areas/1/5/model.inc.c +++ b/levels/hmc/areas/1/5/model.inc.c @@ -1,20 +1,8 @@ // 0x07009460 - 0x07009478 -static const Lights1 hmc_seg7_lights_07009460 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009478 - 0x07009490 -static const Lights1 hmc_seg7_lights_07009478 = gdSPDefLights1( - 0x79, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07009490 - 0x070094A8 -static const Lights1 hmc_seg7_lights_07009490 = gdSPDefLights1( - 0x50, 0x50, 0x50, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x070094A8 - 0x07009588 static const Vtx hmc_seg7_vertex_070094A8[] = { @@ -1238,8 +1226,8 @@ static const Gfx hmc_seg7_dl_0700CF78[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07009460.l, 1), - gsSPLight(&hmc_seg7_lights_07009460.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_070094A8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1321,8 +1309,8 @@ static const Gfx hmc_seg7_dl_0700D1C8[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 1, 7, 0x0, 6, 7, 8, 0x0), gsSP1Triangle( 0, 7, 1, 0x0), - gsSPLight(&hmc_seg7_lights_07009478.l, 1), - gsSPLight(&hmc_seg7_lights_07009478.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x790000ff), gsSPVertex(hmc_seg7_vertex_0700A148, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 3, 5, 6, 0x0), @@ -1334,8 +1322,8 @@ static const Gfx hmc_seg7_dl_0700D3D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07009490.l, 1), - gsSPLight(&hmc_seg7_lights_07009490.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x505050ff), gsSPVertex(hmc_seg7_vertex_0700A1B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), @@ -1345,8 +1333,8 @@ static const Gfx hmc_seg7_dl_0700D3D8[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP1Triangle( 0, 10, 1, 0x0), - gsSPLight(&hmc_seg7_lights_07009460.l, 1), - gsSPLight(&hmc_seg7_lights_07009460.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_0700A358, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 7, 0x0, 3, 5, 7, 0x0), diff --git a/levels/hmc/areas/1/painting.inc.c b/levels/hmc/areas/1/painting.inc.c index da95de86..b408067a 100644 --- a/levels/hmc/areas/1/painting.inc.c +++ b/levels/hmc/areas/1/painting.inc.c @@ -1,17 +1,8 @@ #include "game/paintings.h" // 0x070241B8 - 0x070241D0 -static const Lights1 hmc_seg7_lights_070241B8 = gdSPDefLights1( - 0x50, 0x50, 0x50, - 0xff, 0xff, 0xff, 0x32, 0x32, 0x32 -); // 0x070241D0 - 0x070241E8 -// No gdSPDefLights1 macro defined because of odd different light value (0xff and 0xfa) -static const Lights1 hmc_seg7_lights_070241D0 = { - {{ {0x40, 0x40, 0x80}, 0, {0x40, 0x40, 0x80}, 0} }, - {{{ {0x64, 0x64, 0xff}, 0, {0x64, 0x64, 0xfa}, 0, {0x28, 0x28, 0x28},0} }} -}; // Appears to lock 4 of the sides when shimmering and in use. Unused. // 0x070241E8 - 0x07024228 @@ -35,8 +26,8 @@ static const Vtx hmc_seg7_vertex_07024228[] = { const Gfx hmc_seg7_dl_07024268[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), - gsSPLight(&hmc_seg7_lights_070241B8.l, 1), - gsSPLight(&hmc_seg7_lights_070241B8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x505050ff), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), gsSPVertex(hmc_seg7_vertex_070241E8, 4, 0), gsSPEndDisplayList(), @@ -505,8 +496,8 @@ ALIGNED8 static const Texture hmc_seg7_texture_07024CE0[] = { // 0x070254E0 - 0x07025518 static const Gfx hmc_seg7_painting_dl_070254E0[] = { gsDPPipeSync(), - gsSPLight(&hmc_seg7_lights_070241D0.l, 1), - gsSPLight(&hmc_seg7_lights_070241D0.a, 2), + gsSPLightColor(LIGHT_1, 0x6464ffff), + gsSPLightColor(LIGHT_2, 0x404080ff), gsSPVertex(hmc_seg7_vertex_07024228, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/hmc/arrow_platform/model.inc.c b/levels/hmc/arrow_platform/model.inc.c index 1c8ec154..440c007b 100644 --- a/levels/hmc/arrow_platform/model.inc.c +++ b/levels/hmc/arrow_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07022B48 - 0x07022B60 -static const Lights1 hmc_seg7_lights_07022B48 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07022B60 - 0x07022C60 static const Vtx hmc_seg7_vertex_07022B60[] = { @@ -41,8 +37,8 @@ static const Gfx hmc_seg7_dl_07022CE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, hmc_seg7_texture_07004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07022B48.l, 1), - gsSPLight(&hmc_seg7_lights_07022B48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07022B60, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/hmc/arrow_platform_button/model.inc.c b/levels/hmc/arrow_platform_button/model.inc.c index f10089db..ca1f22f8 100644 --- a/levels/hmc/arrow_platform_button/model.inc.c +++ b/levels/hmc/arrow_platform_button/model.inc.c @@ -1,14 +1,6 @@ // 0x07022E78 - 0x07022E90 -static const Lights1 hmc_seg7_lights_07022E78 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07022E90 - 0x07022EA8 -static const Lights1 hmc_seg7_lights_07022E90 = gdSPDefLights1( - 0x4f, 0x64, 0x5b, - 0xa8, 0xd3, 0xc0, 0x28, 0x28, 0x28 -); // 0x07022EA8 - 0x07022EE8 static const Vtx hmc_seg7_vertex_07022EA8[] = { @@ -43,8 +35,8 @@ static const Gfx hmc_seg7_dl_07022FE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, hmc_seg7_texture_07003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07022E78.l, 1), - gsSPLight(&hmc_seg7_lights_07022E78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07022EA8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), @@ -52,8 +44,8 @@ static const Gfx hmc_seg7_dl_07022FE8[] = { // 0x07023030 - 0x07023090 static const Gfx hmc_seg7_dl_07023030[] = { - gsSPLight(&hmc_seg7_lights_07022E90.l, 1), - gsSPLight(&hmc_seg7_lights_07022E90.a, 2), + gsSPLightColor(LIGHT_1, 0xa8d3c0ff), + gsSPLightColor(LIGHT_2, 0x4f645bff), gsSPVertex(hmc_seg7_vertex_07022EE8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), diff --git a/levels/hmc/elevator_platform/model.inc.c b/levels/hmc/elevator_platform/model.inc.c index 56c11654..dbccb55d 100644 --- a/levels/hmc/elevator_platform/model.inc.c +++ b/levels/hmc/elevator_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07022910 - 0x07022928 -static const Lights1 hmc_seg7_lights_07022910 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07022928 - 0x07022A08 static const Vtx hmc_seg7_vertex_07022928[] = { @@ -27,8 +23,8 @@ static const Gfx hmc_seg7_dl_07022A08[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07022910.l, 1), - gsSPLight(&hmc_seg7_lights_07022910.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07022928, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 1, 0x0), diff --git a/levels/hmc/rolling_rock/model.inc.c b/levels/hmc/rolling_rock/model.inc.c index 3d3e204e..99fe59eb 100644 --- a/levels/hmc/rolling_rock/model.inc.c +++ b/levels/hmc/rolling_rock/model.inc.c @@ -1,8 +1,4 @@ // 0x07023160 - 0x07023178 -static const Lights1 hmc_seg7_lights_07023160 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07023178 - 0x07023278 static const Vtx hmc_seg7_vertex_07023178[] = { @@ -159,8 +155,8 @@ static const Gfx hmc_seg7_dl_070238D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, hmc_seg7_texture_07004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07023160.l, 1), - gsSPLight(&hmc_seg7_lights_07023160.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07023178, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 3, 4, 1, 0x0, 3, 5, 4, 0x0), diff --git a/levels/hmc/rolling_rock_fragment_1/model.inc.c b/levels/hmc/rolling_rock_fragment_1/model.inc.c index aca8c903..711052ae 100644 --- a/levels/hmc/rolling_rock_fragment_1/model.inc.c +++ b/levels/hmc/rolling_rock_fragment_1/model.inc.c @@ -1,8 +1,4 @@ // 0x07023C70 - 0x07023C88 -static const Lights1 hmc_seg7_lights_07023C70 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07023C88 - 0x07023D48 static const Vtx hmc_seg7_vertex_07023C88[] = { @@ -25,8 +21,8 @@ static const Gfx hmc_seg7_dl_07023D48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, hmc_seg7_texture_07004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07023C70.l, 1), - gsSPLight(&hmc_seg7_lights_07023C70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07023C88, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 5, 6, 4, 0x0), diff --git a/levels/hmc/rolling_rock_fragment_2/model.inc.c b/levels/hmc/rolling_rock_fragment_2/model.inc.c index d06dcd22..c2ff75be 100644 --- a/levels/hmc/rolling_rock_fragment_2/model.inc.c +++ b/levels/hmc/rolling_rock_fragment_2/model.inc.c @@ -1,8 +1,4 @@ // 0x07023EB8 - 0x07023ED0 -static const Lights1 hmc_seg7_lights_07023EB8 = gdSPDefLights1( - 0x79, 0x79, 0x79, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07023ED0 - 0x07023FD0 static const Vtx hmc_seg7_vertex_07023ED0[] = { @@ -44,8 +40,8 @@ static const Gfx hmc_seg7_dl_07024080[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, hmc_seg7_texture_07004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&hmc_seg7_lights_07023EB8.l, 1), - gsSPLight(&hmc_seg7_lights_07023EB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x797979ff), gsSPVertex(hmc_seg7_vertex_07023ED0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/intro/geo.c b/levels/intro/geo.c index cde8161f..0285b524 100644 --- a/levels/intro/geo.c +++ b/levels/intro/geo.c @@ -63,16 +63,19 @@ const GeoLayout intro_geo_mario_head_regular[] = { #endif GEO_CLOSE_NODE(), GEO_CLOSE_NODE(), +#ifdef KEEP_MARIO_HEAD GEO_ZBUFFER(1), GEO_OPEN_NODE(), GEO_CAMERA_FRUSTUM(45, 128, 16384), -#ifdef KEEP_MARIO_HEAD GEO_OPEN_NODE(), - GEO_ASM(2, geo_draw_mario_head_goddard), + GEO_CAMERA(CAMERA_MODE_NONE, 0, 0, 1000, 0, 0, 0, 0x00000000), + GEO_OPEN_NODE(), + GEO_ASM(2, geo_draw_mario_head_goddard), + GEO_CLOSE_NODE(), GEO_CLOSE_NODE(), -#endif GEO_CLOSE_NODE(), -#if defined(ENABLE_RUMBLE) +#endif +#ifdef ENABLE_RUMBLE GEO_ZBUFFER(0), GEO_OPEN_NODE(), GEO_ASM(INTRO_CONTEXT_NORMAL, geo_intro_rumble_pak_graphic), @@ -96,16 +99,19 @@ const GeoLayout intro_geo_mario_head_dizzy[] = { #endif GEO_CLOSE_NODE(), GEO_CLOSE_NODE(), +#ifdef KEEP_MARIO_HEAD GEO_ZBUFFER(1), GEO_OPEN_NODE(), GEO_CAMERA_FRUSTUM(45, 128, 16384), -#ifdef KEEP_MARIO_HEAD GEO_OPEN_NODE(), - GEO_ASM(3, geo_draw_mario_head_goddard), + GEO_CAMERA(CAMERA_MODE_NONE, 0, 0, 1000, 0, 0, 0, 0x00000000), + GEO_OPEN_NODE(), + GEO_ASM(3, geo_draw_mario_head_goddard), + GEO_CLOSE_NODE(), GEO_CLOSE_NODE(), -#endif GEO_CLOSE_NODE(), -#if defined(ENABLE_RUMBLE) +#endif +#ifdef ENABLE_RUMBLE GEO_ZBUFFER(0), GEO_OPEN_NODE(), GEO_ASM(INTRO_CONTEXT_GAME_OVER, geo_intro_rumble_pak_graphic), diff --git a/levels/jrb/areas/1/2/model.inc.c b/levels/jrb/areas/1/2/model.inc.c index c97e16d6..2447579a 100644 --- a/levels/jrb/areas/1/2/model.inc.c +++ b/levels/jrb/areas/1/2/model.inc.c @@ -1,20 +1,8 @@ // 0x070030A8 - 0x070030C0 -static const Lights1 jrb_seg7_lights_070030A8 = gdSPDefLights1( - 0x10, 0x25, 0x1e, - 0x41, 0x96, 0x78, 0x28, 0x28, 0x28 -); // 0x070030C0 - 0x070030D8 -static const Lights1 jrb_seg7_lights_070030C0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070030D8 - 0x070030F0 -static const Lights1 jrb_seg7_lights_070030D8 = gdSPDefLights1( - 0x1e, 0x27, 0x3a, - 0x79, 0x9f, 0xeb, 0x28, 0x28, 0x28 -); // 0x070030F0 - 0x070031F0 static const Vtx jrb_seg7_vertex_070030F0[] = { @@ -373,8 +361,8 @@ static const Gfx jrb_seg7_dl_070041F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070030A8.l, 1), - gsSPLight(&jrb_seg7_lights_070030A8.a, 2), + gsSPLightColor(LIGHT_1, 0x419678ff), + gsSPLightColor(LIGHT_2, 0x10251eff), gsSPVertex(jrb_seg7_vertex_070030F0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 5, 3, 2, 0x0, 4, 3, 6, 0x0), @@ -389,8 +377,8 @@ static const Gfx jrb_seg7_dl_070041F0[] = { gsSPVertex(jrb_seg7_vertex_070031F0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 4, 3, 5, 0x0), - gsSPLight(&jrb_seg7_lights_070030C0.l, 1), - gsSPLight(&jrb_seg7_lights_070030C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07003250, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 2, 4, 5, 0x0), @@ -432,8 +420,8 @@ static const Gfx jrb_seg7_dl_070044C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070030D8.l, 1), - gsSPLight(&jrb_seg7_lights_070030D8.a, 2), + gsSPLightColor(LIGHT_1, 0x799febff), + gsSPLightColor(LIGHT_2, 0x1e273aff), gsSPVertex(jrb_seg7_vertex_07003700, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 5, 4, 0x0), @@ -480,8 +468,8 @@ static const Gfx jrb_seg7_dl_070046C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070030C0.l, 1), - gsSPLight(&jrb_seg7_lights_070030C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07003B10, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 1, 5, 2, 0x0), diff --git a/levels/jrb/areas/1/3/model.inc.c b/levels/jrb/areas/1/3/model.inc.c index 5b2878f3..7f6f8783 100644 --- a/levels/jrb/areas/1/3/model.inc.c +++ b/levels/jrb/areas/1/3/model.inc.c @@ -1,14 +1,6 @@ // 0x07004A18 - 0x07004A30 -static const Lights1 jrb_seg7_lights_07004A18 = gdSPDefLights1( - 0x1e, 0x27, 0x3a, - 0x79, 0x9f, 0xeb, 0x28, 0x28, 0x28 -); // 0x07004A30 - 0x07004A48 -static const Lights1 jrb_seg7_lights_07004A30 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004A48 - 0x07004AC8 static const Vtx jrb_seg7_vertex_07004A48[] = { @@ -43,8 +35,8 @@ static const Gfx jrb_seg7_dl_07004B88[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07004A18.l, 1), - gsSPLight(&jrb_seg7_lights_07004A18.a, 2), + gsSPLightColor(LIGHT_1, 0x799febff), + gsSPLightColor(LIGHT_2, 0x1e273aff), gsSPVertex(jrb_seg7_vertex_07004A48, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 2, 4, 5, 0x0), @@ -57,8 +49,8 @@ static const Gfx jrb_seg7_dl_07004BF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07004A30.l, 1), - gsSPLight(&jrb_seg7_lights_07004A30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07004AC8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), diff --git a/levels/jrb/areas/1/4/model.inc.c b/levels/jrb/areas/1/4/model.inc.c index aba35fa7..332befb4 100644 --- a/levels/jrb/areas/1/4/model.inc.c +++ b/levels/jrb/areas/1/4/model.inc.c @@ -1,14 +1,6 @@ // 0x07004D40 - 0x07004D58 -static const Lights1 jrb_seg7_lights_07004D40 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07004D58 - 0x07004D70 -static const Lights1 jrb_seg7_lights_07004D58 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004D70 - 0x07004DF0 static const Vtx jrb_seg7_vertex_07004D70[] = { @@ -178,14 +170,14 @@ static const Gfx jrb_seg7_dl_07005560[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07004D40.l, 1), - gsSPLight(&jrb_seg7_lights_07004D40.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(jrb_seg7_vertex_07004D70, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 2, 3, 0x0, 0, 5, 6, 0x0), gsSP2Triangles( 0, 6, 7, 0x0, 0, 4, 5, 0x0), - gsSPLight(&jrb_seg7_lights_07004D58.l, 1), - gsSPLight(&jrb_seg7_lights_07004D58.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07004DF0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 1, 3, 0x0, 0, 5, 1, 0x0), diff --git a/levels/jrb/areas/1/5/model.inc.c b/levels/jrb/areas/1/5/model.inc.c index 0ad116c9..dbcfea58 100644 --- a/levels/jrb/areas/1/5/model.inc.c +++ b/levels/jrb/areas/1/5/model.inc.c @@ -1,20 +1,8 @@ // 0x07005990 - 0x070059A8 -static const Lights1 jrb_seg7_lights_07005990 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070059A8 - 0x070059C0 -static const Lights1 jrb_seg7_lights_070059A8 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x070059C0 - 0x070059D8 -static const Lights1 jrb_seg7_lights_070059C0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x070059D8 - 0x07005AC8 static const Vtx jrb_seg7_vertex_070059D8[] = { @@ -256,8 +244,8 @@ static const Gfx jrb_seg7_dl_07006508[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07005990.l, 1), - gsSPLight(&jrb_seg7_lights_07005990.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_070059D8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -275,15 +263,15 @@ static const Gfx jrb_seg7_dl_070065A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070059A8.l, 1), - gsSPLight(&jrb_seg7_lights_070059A8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(jrb_seg7_vertex_07005B78, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 2, 3, 4, 0x0, 0, 5, 1, 0x0), gsSP2Triangles( 4, 3, 6, 0x0, 4, 6, 7, 0x0), gsSP2Triangles( 7, 6, 5, 0x0, 7, 5, 0, 0x0), - gsSPLight(&jrb_seg7_lights_07005990.l, 1), - gsSPLight(&jrb_seg7_lights_07005990.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07005BF8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -356,8 +344,8 @@ static const Gfx jrb_seg7_dl_070067F0[] = { // 0x07006980 - 0x070069B0 static const Gfx jrb_seg7_dl_07006980[] = { - gsSPLight(&jrb_seg7_lights_070059C0.l, 1), - gsSPLight(&jrb_seg7_lights_070059C0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(jrb_seg7_vertex_070064C8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/jrb/areas/1/6/model.inc.c b/levels/jrb/areas/1/6/model.inc.c index bdf3e042..390e25db 100644 --- a/levels/jrb/areas/1/6/model.inc.c +++ b/levels/jrb/areas/1/6/model.inc.c @@ -1,8 +1,4 @@ // 0x07006A98 - 0x07006AB0 -static const Lights1 jrb_seg7_lights_07006A98 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07006AB0 - 0x07006BA0 static const Vtx jrb_seg7_vertex_07006AB0[] = { @@ -172,8 +168,8 @@ static const Gfx jrb_seg7_dl_070072A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07006A98.l, 1), - gsSPLight(&jrb_seg7_lights_07006A98.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07006AB0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/jrb/areas/2/1/model.inc.c b/levels/jrb/areas/2/1/model.inc.c index 41e60ba8..95128ad0 100644 --- a/levels/jrb/areas/2/1/model.inc.c +++ b/levels/jrb/areas/2/1/model.inc.c @@ -1,26 +1,10 @@ // 0x0700D318 - 0x0700D330 -static const Lights1 jrb_seg7_lights_0700D318 = gdSPDefLights1( - 0x14, 0x30, 0x2c, - 0x32, 0x78, 0x6e, 0x28, 0x28, 0x28 -); // 0x0700D330 - 0x0700D348 -static const Lights1 jrb_seg7_lights_0700D330 = gdSPDefLights1( - 0x3c, 0x52, 0x4a, - 0x97, 0xcd, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700D348 - 0x0700D360 -static const Lights1 jrb_seg7_lights_0700D348 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D360 - 0x0700D378 -static const Lights1 jrb_seg7_lights_0700D360 = gdSPDefLights1( - 0x50, 0x66, 0x58, - 0xc8, 0xff, 0xdc, 0x28, 0x28, 0x28 -); // 0x0700D378 - 0x0700D3F8 static const Vtx jrb_seg7_vertex_0700D378[] = { @@ -434,15 +418,15 @@ static const Gfx jrb_seg7_dl_0700E6E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700D318.l, 1), - gsSPLight(&jrb_seg7_lights_0700D318.a, 2), + gsSPLightColor(LIGHT_1, 0x32786eff), + gsSPLightColor(LIGHT_2, 0x14302cff), gsSPVertex(jrb_seg7_vertex_0700D378, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 3, 2, 4, 0x0, 5, 3, 4, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 6, 1, 0x0), gsSP2Triangles( 7, 5, 6, 0x0, 0, 7, 1, 0x0), - gsSPLight(&jrb_seg7_lights_0700D330.l, 1), - gsSPLight(&jrb_seg7_lights_0700D330.a, 2), + gsSPLightColor(LIGHT_1, 0x97cdbbff), + gsSPLightColor(LIGHT_2, 0x3c524aff), gsSPVertex(jrb_seg7_vertex_0700D3F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 3, 0x0, 4, 7, 5, 0x0), @@ -477,18 +461,18 @@ static const Gfx jrb_seg7_dl_0700E8C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700D318.l, 1), - gsSPLight(&jrb_seg7_lights_0700D318.a, 2), + gsSPLightColor(LIGHT_1, 0x32786eff), + gsSPLightColor(LIGHT_2, 0x14302cff), gsSPVertex(jrb_seg7_vertex_0700D878, 11, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP1Triangle(10, 0, 2, 0x0), - gsSPLight(&jrb_seg7_lights_0700D330.l, 1), - gsSPLight(&jrb_seg7_lights_0700D330.a, 2), + gsSPLightColor(LIGHT_1, 0x97cdbbff), + gsSPLightColor(LIGHT_2, 0x3c524aff), gsSPVertex(jrb_seg7_vertex_0700D928, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), - gsSPLight(&jrb_seg7_lights_0700D348.l, 1), - gsSPLight(&jrb_seg7_lights_0700D348.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(jrb_seg7_vertex_0700D968, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -501,8 +485,8 @@ static const Gfx jrb_seg7_dl_0700E998[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700D360.l, 1), - gsSPLight(&jrb_seg7_lights_0700D360.a, 2), + gsSPLightColor(LIGHT_1, 0xc8ffdcff), + gsSPLightColor(LIGHT_2, 0x506658ff), gsSPVertex(jrb_seg7_vertex_0700DA28, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 5, 2, 1, 0x0), @@ -578,16 +562,16 @@ static const Gfx jrb_seg7_dl_0700ECB8[] = { gsSP2Triangles( 4, 5, 6, 0x0, 5, 4, 7, 0x0), gsSP2Triangles( 8, 9, 6, 0x0, 10, 8, 6, 0x0), gsSP2Triangles( 9, 4, 6, 0x0, 11, 5, 7, 0x0), - gsSPLight(&jrb_seg7_lights_0700D318.l, 1), - gsSPLight(&jrb_seg7_lights_0700D318.a, 2), + gsSPLightColor(LIGHT_1, 0x32786eff), + gsSPLightColor(LIGHT_2, 0x14302cff), gsSPVertex(jrb_seg7_vertex_0700E458, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 2, 4, 5, 0x0), gsSP2Triangles( 2, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 7, 9, 0x0, 3, 10, 9, 0x0), gsSP2Triangles( 3, 11, 10, 0x0, 0, 11, 3, 0x0), - gsSPLight(&jrb_seg7_lights_0700D348.l, 1), - gsSPLight(&jrb_seg7_lights_0700D348.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(jrb_seg7_vertex_0700E518, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -598,8 +582,8 @@ static const Gfx jrb_seg7_dl_0700EE28[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700D360.l, 1), - gsSPLight(&jrb_seg7_lights_0700D360.a, 2), + gsSPLightColor(LIGHT_1, 0xc8ffdcff), + gsSPLightColor(LIGHT_2, 0x506658ff), gsSPVertex(jrb_seg7_vertex_0700E558, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 6, 5, 0x0), diff --git a/levels/jrb/areas/2/2/model.inc.c b/levels/jrb/areas/2/2/model.inc.c index 74b2c07b..563c00e2 100644 --- a/levels/jrb/areas/2/2/model.inc.c +++ b/levels/jrb/areas/2/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0700EF98 - 0x0700EFB0 -static const Lights1 jrb_seg7_lights_0700EF98 = gdSPDefLights1( - 0x3c, 0x66, 0x66, - 0x96, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700EFB0 - 0x0700F0B0 static const Vtx jrb_seg7_vertex_0700EFB0[] = { @@ -245,8 +241,8 @@ static const Gfx jrb_seg7_dl_0700FB30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09006000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700EF98.l, 1), - gsSPLight(&jrb_seg7_lights_0700EF98.a, 2), + gsSPLightColor(LIGHT_1, 0x96ffffff), + gsSPLightColor(LIGHT_2, 0x3c6666ff), gsSPVertex(jrb_seg7_vertex_0700EFB0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), diff --git a/levels/jrb/areas/2/3/model.inc.c b/levels/jrb/areas/2/3/model.inc.c index 00c6bfac..db15c326 100644 --- a/levels/jrb/areas/2/3/model.inc.c +++ b/levels/jrb/areas/2/3/model.inc.c @@ -1,8 +1,4 @@ // 0x0700FEB8 - 0x0700FED0 -static const Lights1 jrb_seg7_lights_0700FEB8 = gdSPDefLights1( - 0x50, 0x66, 0x58, - 0xc8, 0xff, 0xdc, 0x28, 0x28, 0x28 -); // 0x0700FED0 - 0x0700FFC0 static const Vtx jrb_seg7_vertex_0700FED0[] = { @@ -105,8 +101,8 @@ static const Gfx jrb_seg7_dl_07010390[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700FEB8.l, 1), - gsSPLight(&jrb_seg7_lights_0700FEB8.a, 2), + gsSPLightColor(LIGHT_1, 0xc8ffdcff), + gsSPLightColor(LIGHT_2, 0x506658ff), gsSPVertex(jrb_seg7_vertex_0700FED0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0), diff --git a/levels/jrb/falling_pillar/model.inc.c b/levels/jrb/falling_pillar/model.inc.c index e84c31d2..13b108b4 100644 --- a/levels/jrb/falling_pillar/model.inc.c +++ b/levels/jrb/falling_pillar/model.inc.c @@ -1,8 +1,4 @@ // 0x0700AD38 - 0x0700AD50 -static const Lights1 jrb_seg7_lights_0700AD38 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700AD50 - 0x0700ADD0 static const Vtx jrb_seg7_vertex_0700AD50[] = { @@ -21,8 +17,8 @@ static const Gfx jrb_seg7_dl_0700ADD0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700AD38.l, 1), - gsSPLight(&jrb_seg7_lights_0700AD38.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_0700AD50, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 6, 4, 7, 0x0), diff --git a/levels/jrb/falling_pillar_base/model.inc.c b/levels/jrb/falling_pillar_base/model.inc.c index 2d525203..aa989cd5 100644 --- a/levels/jrb/falling_pillar_base/model.inc.c +++ b/levels/jrb/falling_pillar_base/model.inc.c @@ -1,8 +1,4 @@ // 0x0700AEF0 - 0x0700AF08 -static const Lights1 jrb_seg7_lights_0700AEF0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700AF08 - 0x0700AF58 static const Vtx jrb_seg7_vertex_0700AF08[] = { @@ -18,8 +14,8 @@ static const Gfx jrb_seg7_dl_0700AF58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700AEF0.l, 1), - gsSPLight(&jrb_seg7_lights_0700AEF0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_0700AF08, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 1, 0, 3, 0x0), diff --git a/levels/jrb/floating_platform/model.inc.c b/levels/jrb/floating_platform/model.inc.c index 48ef2d50..71ac4c9d 100644 --- a/levels/jrb/floating_platform/model.inc.c +++ b/levels/jrb/floating_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07007B70 - 0x07007B88 -static const Lights1 jrb_seg7_lights_07007B70 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07007B88 - 0x07007C88 static const Vtx jrb_seg7_vertex_07007B88[] = { @@ -41,8 +37,8 @@ static const Gfx jrb_seg7_dl_07007D08[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_0900A000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07007B70.l, 1), - gsSPLight(&jrb_seg7_lights_07007B70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07007B88, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/jrb/rock/model.inc.c b/levels/jrb/rock/model.inc.c index fb217ac1..4d3e0ad9 100644 --- a/levels/jrb/rock/model.inc.c +++ b/levels/jrb/rock/model.inc.c @@ -1,8 +1,4 @@ // 0x070077F0 - 0x07007808 -static const Lights1 jrb_seg7_lights_070077F0 = gdSPDefLights1( - 0x32, 0x38, 0x3f, - 0xc8, 0xe1, 0xff, 0x28, 0x28, 0x28 -); // 0x07007808 - 0x07007908 static const Vtx jrb_seg7_vertex_07007808[] = { @@ -47,8 +43,8 @@ static const Gfx jrb_seg7_dl_070079E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070077F0.l, 1), - gsSPLight(&jrb_seg7_lights_070077F0.a, 2), + gsSPLightColor(LIGHT_1, 0xc8e1ffff), + gsSPLightColor(LIGHT_2, 0x32383fff), gsSPVertex(jrb_seg7_vertex_07007808, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 3, 6, 0, 0x0), diff --git a/levels/jrb/sliding_box/model.inc.c b/levels/jrb/sliding_box/model.inc.c index afb7fa40..3137dbb5 100644 --- a/levels/jrb/sliding_box/model.inc.c +++ b/levels/jrb/sliding_box/model.inc.c @@ -1,8 +1,4 @@ // 0x07007EA0 - 0x07007EB8 -static const Lights1 jrb_seg7_lights_07007EA0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07007EB8 - 0x07007FB8 static const Vtx jrb_seg7_vertex_07007EB8[] = { @@ -41,8 +37,8 @@ static const Gfx jrb_seg7_dl_07008038[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, jrb_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07007EA0.l, 1), - gsSPLight(&jrb_seg7_lights_07007EA0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(jrb_seg7_vertex_07007EB8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/jrb/wooden_ship/model.inc.c b/levels/jrb/wooden_ship/model.inc.c index b01ee12c..bda872ca 100644 --- a/levels/jrb/wooden_ship/model.inc.c +++ b/levels/jrb/wooden_ship/model.inc.c @@ -1,14 +1,6 @@ // 0x070081A8 - 0x070081C0 -static const Lights1 jrb_seg7_lights_070081A8 = gdSPDefLights1( - 0x1e, 0x2c, 0x3a, - 0x79, 0xb2, 0xeb, 0x28, 0x28, 0x28 -); // 0x070081C0 - 0x070081D8 -static const Lights1 jrb_seg7_lights_070081C0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070081D8 - 0x070082C8 static const Vtx jrb_seg7_vertex_070081D8[] = { @@ -218,8 +210,8 @@ static const Gfx jrb_seg7_dl_07008B88[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070081A8.l, 1), - gsSPLight(&jrb_seg7_lights_070081A8.a, 2), + gsSPLightColor(LIGHT_1, 0x79b2ebff), + gsSPLightColor(LIGHT_2, 0x1e2c3aff), gsSPVertex(jrb_seg7_vertex_070081D8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -244,8 +236,8 @@ static const Gfx jrb_seg7_dl_07008C90[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070081C0.l, 1), - gsSPLight(&jrb_seg7_lights_070081C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07008478, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 5, 6, 7, 0x0), @@ -381,22 +373,10 @@ const Gfx jrb_seg7_dl_070090B0[] = { }; // 0x07009190 - 0x070091A8 -static const Lights1 jrb_seg7_lights_07009190 = gdSPDefLights1( - 0x1e, 0x2c, 0x3a, - 0x79, 0xb2, 0xeb, 0x28, 0x28, 0x28 -); // 0x070091A8 - 0x070091C0 -static const Lights1 jrb_seg7_lights_070091A8 = gdSPDefLights1( - 0x19, 0x2c, 0x3f, - 0x65, 0xb2, 0xff, 0x28, 0x28, 0x28 -); // 0x070091C0 - 0x070091D8 -static const Lights1 jrb_seg7_lights_070091C0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070091D8 - 0x07009218 static const Vtx jrb_seg7_vertex_070091D8[] = { @@ -531,12 +511,12 @@ static const Gfx jrb_seg7_dl_07009798[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07009190.l, 1), - gsSPLight(&jrb_seg7_lights_07009190.a, 2), + gsSPLightColor(LIGHT_1, 0x79b2ebff), + gsSPLightColor(LIGHT_2, 0x1e2c3aff), gsSPVertex(jrb_seg7_vertex_070091D8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&jrb_seg7_lights_070091A8.l, 1), - gsSPLight(&jrb_seg7_lights_070091A8.a, 2), + gsSPLightColor(LIGHT_1, 0x65b2ffff), + gsSPLightColor(LIGHT_2, 0x192c3fff), gsSPVertex(jrb_seg7_vertex_07009218, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -547,8 +527,8 @@ static const Gfx jrb_seg7_dl_07009808[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_070091C0.l, 1), - gsSPLight(&jrb_seg7_lights_070091C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07009258, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 7, 0x0, 3, 5, 7, 0x0), @@ -667,22 +647,10 @@ const Gfx jrb_seg7_dl_07009B30[] = { }; // 0x07009C10 - 0x07009C28 -static const Lights1 jrb_seg7_lights_07009C10 = gdSPDefLights1( - 0x1e, 0x2c, 0x3a, - 0x79, 0xb2, 0xeb, 0x28, 0x28, 0x28 -); // 0x07009C28 - 0x07009C40 -static const Lights1 jrb_seg7_lights_07009C28 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009C40 - 0x07009C58 -static const Lights1 jrb_seg7_lights_07009C40 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07009C58 - 0x07009D48 static const Vtx jrb_seg7_vertex_07009C58[] = { @@ -827,8 +795,8 @@ static const Gfx jrb_seg7_dl_0700A2F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07009C10.l, 1), - gsSPLight(&jrb_seg7_lights_07009C10.a, 2), + gsSPLightColor(LIGHT_1, 0x79b2ebff), + gsSPLightColor(LIGHT_2, 0x1e2c3aff), gsSPVertex(jrb_seg7_vertex_07009C58, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -847,8 +815,8 @@ static const Gfx jrb_seg7_dl_0700A3A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07009C28.l, 1), - gsSPLight(&jrb_seg7_lights_07009C28.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_07009E38, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 6, 5, 7, 0x0), @@ -868,16 +836,16 @@ static const Gfx jrb_seg7_dl_0700A470[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_07009C40.l, 1), - gsSPLight(&jrb_seg7_lights_07009C40.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(jrb_seg7_vertex_07009FC8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 4, 3, 0x0, 4, 5, 6, 0x0), gsSP2Triangles( 4, 0, 5, 0x0, 7, 1, 3, 0x0), gsSP2Triangles( 7, 2, 1, 0x0, 6, 7, 3, 0x0), gsSP2Triangles( 0, 2, 5, 0x0, 6, 3, 4, 0x0), - gsSPLight(&jrb_seg7_lights_07009C28.l, 1), - gsSPLight(&jrb_seg7_lights_07009C28.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_0700A048, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -930,16 +898,8 @@ const Gfx jrb_seg7_dl_0700A608[] = { }; // 0x0700A6D8 - 0x0700A6F0 -static const Lights1 jrb_seg7_lights_0700A6D8 = gdSPDefLights1( - 0x1e, 0x2c, 0x3a, - 0x79, 0xb2, 0xeb, 0x28, 0x28, 0x28 -); // 0x0700A6F0 - 0x0700A708 -static const Lights1 jrb_seg7_lights_0700A6F0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A708 - 0x0700A748 static const Vtx jrb_seg7_vertex_0700A708[] = { @@ -1023,8 +983,8 @@ static const Gfx jrb_seg7_dl_0700AA98[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700A6D8.l, 1), - gsSPLight(&jrb_seg7_lights_0700A6D8.a, 2), + gsSPLightColor(LIGHT_1, 0x79b2ebff), + gsSPLightColor(LIGHT_2, 0x1e2c3aff), gsSPVertex(jrb_seg7_vertex_0700A708, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPEndDisplayList(), @@ -1035,8 +995,8 @@ static const Gfx jrb_seg7_dl_0700AAE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&jrb_seg7_lights_0700A6F0.l, 1), - gsSPLight(&jrb_seg7_lights_0700A6F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(jrb_seg7_vertex_0700A748, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 4, 7, 6, 0x0), diff --git a/levels/lll/areas/1/1/model.inc.c b/levels/lll/areas/1/1/model.inc.c index 9ec904f4..4eb004f7 100644 --- a/levels/lll/areas/1/1/model.inc.c +++ b/levels/lll/areas/1/1/model.inc.c @@ -895,8 +895,8 @@ static const Gfx lll_seg7_dl_070127D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC78.l, 1), - gsSPLight(&lll_seg7_lights_0700FC78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_0700FC90, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/lll/areas/1/10/model.inc.c b/levels/lll/areas/1/10/model.inc.c index 5bc2cb93..86ab2579 100644 --- a/levels/lll/areas/1/10/model.inc.c +++ b/levels/lll/areas/1/10/model.inc.c @@ -47,8 +47,8 @@ static const Gfx lll_seg7_dl_070164E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_070162E0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 4, 5, 0x0), diff --git a/levels/lll/areas/1/11/model.inc.c b/levels/lll/areas/1/11/model.inc.c index 407a1d83..be154fc4 100644 --- a/levels/lll/areas/1/11/model.inc.c +++ b/levels/lll/areas/1/11/model.inc.c @@ -1,8 +1,4 @@ // 0x07016658 - 0x07016670 -static const Lights1 lll_seg7_lights_07016658 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07016670 - 0x07016770 static const Vtx lll_seg7_vertex_07016670[] = { @@ -69,8 +65,8 @@ static const Gfx lll_seg7_dl_07016930[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_07016658.l, 1), - gsSPLight(&lll_seg7_lights_07016658.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07016670, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0), gsSP2Triangles( 5, 0, 2, 0x0, 5, 2, 6, 0x0), diff --git a/levels/lll/areas/1/12/model.inc.c b/levels/lll/areas/1/12/model.inc.c index d01eca46..2961292f 100644 --- a/levels/lll/areas/1/12/model.inc.c +++ b/levels/lll/areas/1/12/model.inc.c @@ -145,8 +145,8 @@ static const Gfx lll_seg7_dl_07017250[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07016B70, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 0, 5, 6, 0x0), diff --git a/levels/lll/areas/1/13/model.inc.c b/levels/lll/areas/1/13/model.inc.c index b503acaf..0d9c94f8 100644 --- a/levels/lll/areas/1/13/model.inc.c +++ b/levels/lll/areas/1/13/model.inc.c @@ -1,8 +1,4 @@ // 0x07017578 - 0x07017590 -static const Lights1 lll_seg7_lights_07017578 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xfe, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07017590 - 0x07017650 static const Vtx lll_seg7_vertex_07017590[] = { @@ -55,8 +51,8 @@ static const Gfx lll_seg7_dl_070177B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_07017578.l, 1), - gsSPLight(&lll_seg7_lights_07017578.a, 2), + gsSPLightColor(LIGHT_1, 0xfeffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07017590, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/lll/areas/1/14/model.inc.c b/levels/lll/areas/1/14/model.inc.c index e1dfc82e..5ea07f45 100644 --- a/levels/lll/areas/1/14/model.inc.c +++ b/levels/lll/areas/1/14/model.inc.c @@ -35,8 +35,8 @@ static const Gfx lll_seg7_dl_07017A78[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07017938, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/lll/areas/1/2/model.inc.c b/levels/lll/areas/1/2/model.inc.c index 591b8270..18b591d1 100644 --- a/levels/lll/areas/1/2/model.inc.c +++ b/levels/lll/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07013620 - 0x07013638 -static const Lights1 lll_seg7_lights_07013620 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07013638 - 0x07013738 static const Vtx lll_seg7_vertex_07013638[] = { @@ -29,8 +25,8 @@ static const Gfx lll_seg7_dl_07013738[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_07013620.l, 1), - gsSPLight(&lll_seg7_lights_07013620.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07013638, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 8, 0x0), diff --git a/levels/lll/areas/1/4/model.inc.c b/levels/lll/areas/1/4/model.inc.c index 1c4b9364..9b5259dd 100644 --- a/levels/lll/areas/1/4/model.inc.c +++ b/levels/lll/areas/1/4/model.inc.c @@ -61,8 +61,8 @@ static const Gfx lll_seg7_dl_07013C08[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07013968, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 5, 6, 0x0), diff --git a/levels/lll/areas/1/5/model.inc.c b/levels/lll/areas/1/5/model.inc.c index e01df248..c0b4fe1d 100644 --- a/levels/lll/areas/1/5/model.inc.c +++ b/levels/lll/areas/1/5/model.inc.c @@ -151,8 +151,8 @@ static const Gfx lll_seg7_dl_070144F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07013DB8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/lll/areas/1/6/model.inc.c b/levels/lll/areas/1/6/model.inc.c index 0d2ec803..6ad3e447 100644 --- a/levels/lll/areas/1/6/model.inc.c +++ b/levels/lll/areas/1/6/model.inc.c @@ -61,8 +61,8 @@ static const Gfx lll_seg7_dl_07014AB8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07014818, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/lll/areas/1/7/model.inc.c b/levels/lll/areas/1/7/model.inc.c index 9523f6e4..875c9303 100644 --- a/levels/lll/areas/1/7/model.inc.c +++ b/levels/lll/areas/1/7/model.inc.c @@ -125,8 +125,8 @@ static const Gfx lll_seg7_dl_07015208[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07014C68, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 5, 6, 0x0), diff --git a/levels/lll/areas/1/8/model.inc.c b/levels/lll/areas/1/8/model.inc.c index 5bf9ac08..e5d06b56 100644 --- a/levels/lll/areas/1/8/model.inc.c +++ b/levels/lll/areas/1/8/model.inc.c @@ -133,8 +133,8 @@ static const Gfx lll_seg7_dl_07015B38[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_070154F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 5, 7, 0x0), @@ -192,8 +192,8 @@ static const Gfx lll_seg7_dl_07015D18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07015858, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/lll/areas/1/9/model.inc.c b/levels/lll/areas/1/9/model.inc.c index 632e9252..320585e1 100644 --- a/levels/lll/areas/1/9/model.inc.c +++ b/levels/lll/areas/1/9/model.inc.c @@ -61,8 +61,8 @@ static const Gfx lll_seg7_dl_07016130[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07015E90, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 0, 5, 6, 0x0), diff --git a/levels/lll/areas/1/light.inc.c b/levels/lll/areas/1/light.inc.c index bcd1d0ef..4a2526d3 100644 --- a/levels/lll/areas/1/light.inc.c +++ b/levels/lll/areas/1/light.inc.c @@ -1,35 +1,11 @@ // 0x0700FC00 - 0x0700FC18 -static const Lights1 lll_seg7_lights_0700FC00 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 lll_lights_unused1 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // Unreferenced light group -UNUSED static const Lights1 lll_lights_unused2 = gdSPDefLights1( - 0x3f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0700FC48 - 0x0700FC60 -static const Lights1 lll_seg7_lights_0700FC48 = gdSPDefLights1( - 0x19, 0x19, 0x19, - 0x64, 0x64, 0x64, 0x28, 0x28, 0x28 -); // 0x0700FC60 - 0x0700FC78 -static const Lights1 lll_seg7_lights_0700FC60 = gdSPDefLights1( - 0x32, 0x32, 0x32, - 0xc8, 0xc8, 0xc8, 0x28, 0x28, 0x28 -); // 0x0700FC78 - 0x0700FC90 -static const Lights1 lll_seg7_lights_0700FC78 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); diff --git a/levels/lll/areas/2/2/model.inc.c b/levels/lll/areas/2/2/model.inc.c index cb781ef2..88e80d9a 100644 --- a/levels/lll/areas/2/2/model.inc.c +++ b/levels/lll/areas/2/2/model.inc.c @@ -1,8 +1,4 @@ // 0x070236E8 - 0x07023700 -static const Lights1 lll_seg7_lights_070236E8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07023700 - 0x070237E0 static const Vtx lll_seg7_vertex_07023700[] = { @@ -320,8 +316,8 @@ static const Gfx lll_seg7_dl_07024630[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700D400), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_070236E8.l, 1), - gsSPLight(&lll_seg7_lights_070236E8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(lll_seg7_vertex_07023700, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 4, 5, 0x0), diff --git a/levels/lll/collapsing_wooden_platform/model.inc.c b/levels/lll/collapsing_wooden_platform/model.inc.c index fd5753b8..53718f58 100644 --- a/levels/lll/collapsing_wooden_platform/model.inc.c +++ b/levels/lll/collapsing_wooden_platform/model.inc.c @@ -31,8 +31,8 @@ static const Gfx lll_seg7_dl_070190B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07018F70, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/lll/drawbridge_part/model.inc.c b/levels/lll/drawbridge_part/model.inc.c index 3541a741..e0277af8 100644 --- a/levels/lll/drawbridge_part/model.inc.c +++ b/levels/lll/drawbridge_part/model.inc.c @@ -43,8 +43,8 @@ static const Gfx lll_seg7_dl_07018570[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_070183F0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/lll/long_wooden_bridge/model.inc.c b/levels/lll/long_wooden_bridge/model.inc.c index 8fb4c82c..1eb80367 100644 --- a/levels/lll/long_wooden_bridge/model.inc.c +++ b/levels/lll/long_wooden_bridge/model.inc.c @@ -31,8 +31,8 @@ static const Gfx lll_seg7_dl_07019330[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_070191F0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/lll/moving_octagonal_mesh_platform/model.inc.c b/levels/lll/moving_octagonal_mesh_platform/model.inc.c index 839ee420..396262e8 100644 --- a/levels/lll/moving_octagonal_mesh_platform/model.inc.c +++ b/levels/lll/moving_octagonal_mesh_platform/model.inc.c @@ -60,8 +60,8 @@ static const Gfx lll_seg7_dl_07018280[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07017FB0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0), diff --git a/levels/lll/puzzle_piece/model.inc.c b/levels/lll/puzzle_piece/model.inc.c index ae934bdf..ac99d8bb 100644 --- a/levels/lll/puzzle_piece/model.inc.c +++ b/levels/lll/puzzle_piece/model.inc.c @@ -29,8 +29,8 @@ static const Gfx lll_seg7_sub_dl_bowser_puzzle_piece_begin[] = { // 0x0701A338 - 0x0701A388 static const Gfx lll_seg7_sub_dl_bowser_puzzle_piece_end[] = { - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_puzzle_piece, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), diff --git a/levels/lll/rolling_log/model.inc.c b/levels/lll/rolling_log/model.inc.c index dd0e83c0..301594fe 100644 --- a/levels/lll/rolling_log/model.inc.c +++ b/levels/lll/rolling_log/model.inc.c @@ -1,8 +1,4 @@ // 0x0701A8E8 - 0x0701A900 -static const Lights1 lll_seg7_lights_0701A8E8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xfe, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701A900 - 0x0701A9F0 static const Vtx lll_seg7_vertex_0701A900[] = { @@ -75,8 +71,8 @@ static const Gfx lll_seg7_dl_0701AC20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0701A8E8.l, 1), - gsSPLight(&lll_seg7_lights_0701A8E8.a, 2), + gsSPLightColor(LIGHT_1, 0xfeffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_0701A900, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/lll/rotating_block_fire_bars/model.inc.c b/levels/lll/rotating_block_fire_bars/model.inc.c index b02ed04e..83519fdc 100644 --- a/levels/lll/rotating_block_fire_bars/model.inc.c +++ b/levels/lll/rotating_block_fire_bars/model.inc.c @@ -53,8 +53,8 @@ static const Gfx lll_seg7_dl_07018968[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07018708, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/lll/rotating_hexagonal_ring/model.inc.c b/levels/lll/rotating_hexagonal_ring/model.inc.c index ede9e129..1c6bd1b4 100644 --- a/levels/lll/rotating_hexagonal_ring/model.inc.c +++ b/levels/lll/rotating_hexagonal_ring/model.inc.c @@ -87,8 +87,8 @@ static const Gfx lll_seg7_dl_07019870[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07019470, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 3, 1, 0, 0x0, 5, 6, 7, 0x0), diff --git a/levels/lll/sinking_rectangular_platform/model.inc.c b/levels/lll/sinking_rectangular_platform/model.inc.c index d2d621e7..e94983e9 100644 --- a/levels/lll/sinking_rectangular_platform/model.inc.c +++ b/levels/lll/sinking_rectangular_platform/model.inc.c @@ -25,8 +25,8 @@ static const Gfx lll_seg7_dl_07019B78[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07019A98, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/lll/sinking_rock_block/model.inc.c b/levels/lll/sinking_rock_block/model.inc.c index 5c07ae5b..d2c504df 100644 --- a/levels/lll/sinking_rock_block/model.inc.c +++ b/levels/lll/sinking_rock_block/model.inc.c @@ -1,8 +1,4 @@ // 0x0701A670 - 0x0701A688 -static const Lights1 lll_seg7_lights_0701A670 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xfe, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701A688 - 0x0701A778 static const Vtx lll_seg7_vertex_0701A688[] = { @@ -39,8 +35,8 @@ static const Gfx lll_seg7_dl_0701A7E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0701A670.l, 1), - gsSPLight(&lll_seg7_lights_0701A670.a, 2), + gsSPLightColor(LIGHT_1, 0xfeffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_0701A688, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/lll/sinking_square_platform/model.inc.c b/levels/lll/sinking_square_platform/model.inc.c index ac18445d..9ed3d103 100644 --- a/levels/lll/sinking_square_platform/model.inc.c +++ b/levels/lll/sinking_square_platform/model.inc.c @@ -61,21 +61,21 @@ static const Gfx lll_seg7_dl_07019F20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC48.l, 1), - gsSPLight(&lll_seg7_lights_0700FC48.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(lll_seg7_vertex_07019C80, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 2, 8, 9, 0x0), - gsSPLight(&lll_seg7_lights_0700FC60.l, 1), - gsSPLight(&lll_seg7_lights_0700FC60.a, 2), + gsSPLightColor(LIGHT_1, 0xc8c8c8ff), + gsSPLightColor(LIGHT_2, 0x323232ff), gsSPVertex(lll_seg7_vertex_07019D20, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 5, 7, 0x0, 8, 9, 10, 0x0), gsSP2Triangles( 9, 11, 12, 0x0, 13, 14, 15, 0x0), gsSPVertex(lll_seg7_vertex_07019E20, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07019E80, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 8, 9, 7, 0x0), diff --git a/levels/lll/tilting_square_platform/model.inc.c b/levels/lll/tilting_square_platform/model.inc.c index 231bcb60..9c272c0a 100644 --- a/levels/lll/tilting_square_platform/model.inc.c +++ b/levels/lll/tilting_square_platform/model.inc.c @@ -36,8 +36,8 @@ static const Gfx lll_seg7_dl_0701A1A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_0701A120, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/lll/wooden_float_large/model.inc.c b/levels/lll/wooden_float_large/model.inc.c index 516c8674..9bcfc525 100644 --- a/levels/lll/wooden_float_large/model.inc.c +++ b/levels/lll/wooden_float_large/model.inc.c @@ -31,8 +31,8 @@ static const Gfx lll_seg7_dl_07018E48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07018D08, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/lll/wooden_float_small/model.inc.c b/levels/lll/wooden_float_small/model.inc.c index 28fbf6b3..b70b9e16 100644 --- a/levels/lll/wooden_float_small/model.inc.c +++ b/levels/lll/wooden_float_small/model.inc.c @@ -31,8 +31,8 @@ static const Gfx lll_seg7_dl_07018BE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&lll_seg7_lights_0700FC00.l, 1), - gsSPLight(&lll_seg7_lights_0700FC00.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(lll_seg7_vertex_07018AA0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/menu/leveldata.c b/levels/menu/leveldata.c index 56893d28..73643c0d 100644 --- a/levels/menu/leveldata.c +++ b/levels/menu/leveldata.c @@ -11,10 +11,6 @@ #include "make_const_nonconst.h" // 0x07000000 - 0x07000018 -static const Lights1 lights_menu_save_button = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07000018 - 0x07000818 ALIGNED8 static const Texture texture_menu_stone[] = { @@ -79,8 +75,8 @@ static const Gfx dl_tex_block_menu_save_button_base[] = { // 0x070031A0 - 0x07003218 static const Gfx dl_vertex_menu_save_button_borders[] = { - gsSPLight(&lights_menu_save_button.l, 1), - gsSPLight(&lights_menu_save_button.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vertex_menu_save_button_borders, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), @@ -126,8 +122,8 @@ static const Gfx dl_tex_block_menu_save_button_back[] = { // 0x070032E0 - 0x07003330 static const Gfx dl_vertex_menu_save_button_back[] = { - gsSPLight(&lights_menu_save_button.l, 1), - gsSPLight(&lights_menu_save_button.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vertex_menu_save_button_back, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), @@ -179,8 +175,8 @@ const Gfx dl_menu_save_button_back[] = { const Gfx dl_menu_save_button_fade_back[] = { gsDPPipeSync(), gsSPClearGeometryMode(G_SHADING_SMOOTH), - gsSPLight(&lights_menu_save_button.l, 1), - gsSPLight(&lights_menu_save_button.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vertex_menu_save_button_back, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsDPPipeSync(), @@ -189,10 +185,6 @@ const Gfx dl_menu_save_button_fade_back[] = { }; // 0x07003450 - 0x07003468 -static const Lights1 lights_menu_main_button = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07003468 - 0x07003468 ALIGNED8 static const Texture texture_menu_erase[] = { @@ -298,8 +290,8 @@ static const Vtx vertex_menu_main_button_group4[] = { // 0x07006038 - 0x07006150 static const Gfx dl_vertex_menu_main_button[] = { - gsSPLight(&lights_menu_main_button.l, 1), - gsSPLight(&lights_menu_main_button.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vertex_menu_main_button_group1, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), diff --git a/levels/pss/areas/1/1/model.inc.c b/levels/pss/areas/1/1/model.inc.c index f75d7164..1a561058 100644 --- a/levels/pss/areas/1/1/model.inc.c +++ b/levels/pss/areas/1/1/model.inc.c @@ -1,14 +1,6 @@ // 0x07001800 - 0x07001818 -static const Lights1 pss_seg7_lights_07001800 = gdSPDefLights1( - 0x23, 0x23, 0x23, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x07001818 - 0x07001830 -static const Lights1 pss_seg7_lights_07001818 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07001830 - 0x07001930 static const Vtx pss_seg7_vertex_07001830[] = { @@ -2199,8 +2191,8 @@ static const Gfx pss_seg7_dl_070083B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900C000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&pss_seg7_lights_07001800.l, 1), - gsSPLight(&pss_seg7_lights_07001800.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x232323ff), gsSPVertex(pss_seg7_vertex_07001830, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -2218,8 +2210,8 @@ static const Gfx pss_seg7_dl_070083B0[] = { gsSPVertex(pss_seg7_vertex_07001A30, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP1Triangle( 2, 3, 4, 0x0), - gsSPLight(&pss_seg7_lights_07001818.l, 1), - gsSPLight(&pss_seg7_lights_07001818.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(pss_seg7_vertex_07001A80, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 4, 0, 6, 0x0), diff --git a/levels/pss/areas/1/7/model.inc.c b/levels/pss/areas/1/7/model.inc.c index 0eee0ccd..90674c22 100644 --- a/levels/pss/areas/1/7/model.inc.c +++ b/levels/pss/areas/1/7/model.inc.c @@ -1,8 +1,4 @@ // 0x0700E348 - 0x0700E360 -static const Lights1 pss_seg7_lights_0700E348 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700E360 - 0x0700E3A0 static const Vtx pss_seg7_vertex_0700E360[] = { @@ -17,8 +13,8 @@ static const Gfx pss_seg7_dl_0700E3A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, pss_seg7_texture_07001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&pss_seg7_lights_0700E348.l, 1), - gsSPLight(&pss_seg7_lights_0700E348.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(pss_seg7_vertex_0700E360, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/rr/flying_carpet/model.inc.c b/levels/rr/flying_carpet/model.inc.c index 42291134..bbe82085 100644 --- a/levels/rr/flying_carpet/model.inc.c +++ b/levels/rr/flying_carpet/model.inc.c @@ -1,10 +1,6 @@ // Not a traditional model file. The vertexes are generated in src/geo_misc.c. // 0x07019230 - 0x07019248 -static const Lights1 rr_seg7_lights_07019230 = gdSPDefLights1( - 0x5f, 0x5f, 0x5f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07019248 - 0x070192F0 const s16 flying_carpet_static_vertex_data[] = { @@ -45,8 +41,8 @@ const Gfx dl_flying_carpet_begin[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, texture_quarter_flying_carpet), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&rr_seg7_lights_07019230.l, 1), - gsSPLight(&rr_seg7_lights_07019230.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x5f5f5fff), gsSPEndDisplayList(), }; diff --git a/levels/rr/octagonal_platform/model.inc.c b/levels/rr/octagonal_platform/model.inc.c index b32a9398..b4b1fda3 100644 --- a/levels/rr/octagonal_platform/model.inc.c +++ b/levels/rr/octagonal_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x0701A6F0 - 0x0701A708 -static const Lights1 rr_seg7_lights_0701A6F0 = gdSPDefLights1( - 0x55, 0x5f, 0x53, - 0xe3, 0xfe, 0xdf, 0x28, 0x28, 0x28 -); // 0x0701A708 - 0x0701A7F8 static const Vtx rr_seg7_vertex_0701A708[] = { @@ -77,8 +73,8 @@ static const Gfx rr_seg7_dl_0701AA48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&rr_seg7_lights_0701A6F0.l, 1), - gsSPLight(&rr_seg7_lights_0701A6F0.a, 2), + gsSPLightColor(LIGHT_1, 0xe3fedfff), + gsSPLightColor(LIGHT_2, 0x555f53ff), gsSPVertex(rr_seg7_vertex_0701A708, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/rr/rotating_bridge_platform/model.inc.c b/levels/rr/rotating_bridge_platform/model.inc.c index ff53998a..4e1fef2f 100644 --- a/levels/rr/rotating_bridge_platform/model.inc.c +++ b/levels/rr/rotating_bridge_platform/model.inc.c @@ -1,32 +1,12 @@ // 0x07019B68 - 0x07019B80 -static const Lights1 rr_seg7_lights_07019B68 = gdSPDefLights1( - 0x32, 0x32, 0x32, - 0xc8, 0xc8, 0xc8, 0x28, 0x28, 0x28 -); // 0x07019B80 - 0x07019B98 -static const Lights1 rr_seg7_lights_07019B80 = gdSPDefLights1( - 0x23, 0x2b, 0x14, - 0x8e, 0xac, 0x52, 0x28, 0x28, 0x28 -); // 0x07019B98 - 0x07019BB0 -static const Lights1 rr_seg7_lights_07019B98 = gdSPDefLights1( - 0x1f, 0x2b, 0x14, - 0x7f, 0xac, 0x52, 0x28, 0x28, 0x28 -); // 0x07019BB0 - 0x07019BC8 -static const Lights1 rr_seg7_lights_07019BB0 = gdSPDefLights1( - 0x2f, 0x2a, 0x0f, - 0xbf, 0xaa, 0x3f, 0x28, 0x28, 0x28 -); // 0x07019BC8 - 0x07019BE0 -static const Lights1 rr_seg7_lights_07019BC8 = gdSPDefLights1( - 0x14, 0x23, 0x2b, - 0x52, 0x8e, 0xac, 0x28, 0x28, 0x28 -); // 0x07019BE0 - 0x07019CD0 static const Vtx rr_seg7_vertex_07019BE0[] = { @@ -179,8 +159,8 @@ static const Gfx rr_seg7_dl_0701A2C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&rr_seg7_lights_07019B68.l, 1), - gsSPLight(&rr_seg7_lights_07019B68.a, 2), + gsSPLightColor(LIGHT_1, 0xc8c8c8ff), + gsSPLightColor(LIGHT_2, 0x323232ff), gsSPVertex(rr_seg7_vertex_07019BE0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -213,20 +193,20 @@ static const Gfx rr_seg7_dl_0701A3E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&rr_seg7_lights_07019B80.l, 1), - gsSPLight(&rr_seg7_lights_07019B80.a, 2), + gsSPLightColor(LIGHT_1, 0x8eac52ff), + gsSPLightColor(LIGHT_2, 0x232b14ff), gsSPVertex(rr_seg7_vertex_07019EC0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&rr_seg7_lights_07019B98.l, 1), - gsSPLight(&rr_seg7_lights_07019B98.a, 2), + gsSPLightColor(LIGHT_1, 0x7fac52ff), + gsSPLightColor(LIGHT_2, 0x1f2b14ff), gsSPVertex(rr_seg7_vertex_07019F40, 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, 2, 15, 0x0), - gsSPLight(&rr_seg7_lights_07019BB0.l, 1), - gsSPLight(&rr_seg7_lights_07019BB0.a, 2), + gsSPLightColor(LIGHT_1, 0xbfaa3fff), + gsSPLightColor(LIGHT_2, 0x2f2a0fff), gsSPVertex(rr_seg7_vertex_0701A040, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -240,8 +220,8 @@ static const Gfx rr_seg7_dl_0701A4E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&rr_seg7_lights_07019BC8.l, 1), - gsSPLight(&rr_seg7_lights_07019BC8.a, 2), + gsSPLightColor(LIGHT_1, 0x528eacff), + gsSPLightColor(LIGHT_2, 0x14232bff), gsSPVertex(rr_seg7_vertex_0701A140, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/sa/areas/1/1/model.inc.c b/levels/sa/areas/1/1/model.inc.c index e095828d..91cf719d 100644 --- a/levels/sa/areas/1/1/model.inc.c +++ b/levels/sa/areas/1/1/model.inc.c @@ -1,8 +1,4 @@ // 0x07000000 - 0x07000018 -static const Lights1 sa_lights = gdSPDefLights1( - 0x00, 0x7f, 0x99, - 0x00, 0xd4, 0xff, 0x28, 0x28, 0x28 -); // 0x07000018 - 0x070000D8 static const Vtx sa_vertex_07000018[] = { @@ -734,8 +730,8 @@ static const Gfx sa_dl_070023E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sa_lights.l, 1), - gsSPLight(&sa_lights.a, 2), + gsSPLightColor(LIGHT_1, 0xd4ffff), + gsSPLightColor(LIGHT_2, 0x7f99ff), gsSPVertex(sa_vertex_07000018, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 4, 5, 0x0, 0, 5, 1, 0x0), diff --git a/levels/sl/areas/1/1/model.inc.c b/levels/sl/areas/1/1/model.inc.c index 76e7404c..100055f5 100644 --- a/levels/sl/areas/1/1/model.inc.c +++ b/levels/sl/areas/1/1/model.inc.c @@ -1,14 +1,6 @@ // 0x07002800 - 0x07002818 -static const Lights1 sl_seg7_lights_07002800 = gdSPDefLights1( - 0x59, 0x59, 0x59, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002818 - 0x07002830 -static const Lights1 sl_seg7_lights_07002818 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07002830 - 0x07002910 static const Vtx sl_seg7_vertex_07002830[] = { @@ -671,8 +663,8 @@ static const Gfx sl_seg7_dl_07004830[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07002800.l, 1), - gsSPLight(&sl_seg7_lights_07002800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x595959ff), gsSPVertex(sl_seg7_vertex_07002830, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 3, 8, 0x0), @@ -873,8 +865,8 @@ static const Gfx sl_seg7_dl_07004830[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 5, 4, 7, 0x0), gsSP1Triangle( 4, 8, 7, 0x0), - gsSPLight(&sl_seg7_lights_07002818.l, 1), - gsSPLight(&sl_seg7_lights_07002818.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(sl_seg7_vertex_07004620, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP1Triangle( 3, 4, 0, 0x0), @@ -886,8 +878,8 @@ static const Gfx sl_seg7_dl_07005370[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sl_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07002800.l, 1), - gsSPLight(&sl_seg7_lights_07002800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x595959ff), gsSPVertex(sl_seg7_vertex_07004670, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/sl/areas/1/2/model.inc.c b/levels/sl/areas/1/2/model.inc.c index 66e19e57..604633ae 100644 --- a/levels/sl/areas/1/2/model.inc.c +++ b/levels/sl/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07005520 - 0x07005538 -static const Lights1 sl_seg7_lights_07005520 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005538 - 0x07005638 static const Vtx sl_seg7_vertex_07005538[] = { @@ -29,8 +25,8 @@ static const Gfx sl_seg7_dl_07005638[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07005520.l, 1), - gsSPLight(&sl_seg7_lights_07005520.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_07005538, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/sl/areas/1/3/model.inc.c b/levels/sl/areas/1/3/model.inc.c index c44cdd43..e28ed924 100644 --- a/levels/sl/areas/1/3/model.inc.c +++ b/levels/sl/areas/1/3/model.inc.c @@ -1,14 +1,6 @@ // 0x07005730 - 0x07005748 -static const Lights1 sl_seg7_lights_07005730 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005748 - 0x07005760 -static const Lights1 sl_seg7_lights_07005748 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07005760 - 0x070057D0 static const Vtx sl_seg7_vertex_07005760[] = { @@ -476,13 +468,13 @@ static const Gfx sl_seg7_dl_07006D70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07005730.l, 1), - gsSPLight(&sl_seg7_lights_07005730.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_07005760, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 3, 6, 4, 0x0), - gsSPLight(&sl_seg7_lights_07005748.l, 1), - gsSPLight(&sl_seg7_lights_07005748.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(sl_seg7_vertex_070057D0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -493,8 +485,8 @@ static const Gfx sl_seg7_dl_07006DE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07005730.l, 1), - gsSPLight(&sl_seg7_lights_07005730.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_07005810, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/sl/areas/1/5/model.inc.c b/levels/sl/areas/1/5/model.inc.c index 3ddc86d2..474ac66e 100644 --- a/levels/sl/areas/1/5/model.inc.c +++ b/levels/sl/areas/1/5/model.inc.c @@ -1,8 +1,4 @@ // 0x07007910 - 0x07007928 -static const Lights1 sl_seg7_lights_07007910 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07007928 - 0x07007A18 static const Vtx sl_seg7_vertex_07007928[] = { @@ -253,8 +249,8 @@ static const Gfx sl_seg7_dl_07008528[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07007910.l, 1), - gsSPLight(&sl_seg7_lights_07007910.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_07007928, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/sl/areas/1/6/model.inc.c b/levels/sl/areas/1/6/model.inc.c index 05d87a6f..6122f2c5 100644 --- a/levels/sl/areas/1/6/model.inc.c +++ b/levels/sl/areas/1/6/model.inc.c @@ -1,14 +1,6 @@ // 0x07008930 - 0x07008948 -static const Lights1 sl_seg7_lights_07008930 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07008948 - 0x07008960 -static const Lights1 sl_seg7_lights_07008948 = gdSPDefLights1( - 0x22, 0x17, 0x00, - 0x44, 0x2f, 0x00, 0x28, 0x28, 0x28 -); // 0x07008960 - 0x07008A60 static const Vtx sl_seg7_vertex_07008960[] = { @@ -76,8 +68,8 @@ static const Gfx sl_seg7_dl_07008C30[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, snow_09009800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07008930.l, 1), - gsSPLight(&sl_seg7_lights_07008930.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_07008960, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 6, 7, 0x0), @@ -99,8 +91,8 @@ static const Gfx sl_seg7_dl_07008D10[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, snow_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07008948.l, 1), - gsSPLight(&sl_seg7_lights_07008948.a, 2), + gsSPLightColor(LIGHT_1, 0x442f00ff), + gsSPLightColor(LIGHT_2, 0x221700ff), gsSPVertex(sl_seg7_vertex_07008BF0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/sl/areas/1/7/model.inc.c b/levels/sl/areas/1/7/model.inc.c index 3f279607..b5b0f92e 100644 --- a/levels/sl/areas/1/7/model.inc.c +++ b/levels/sl/areas/1/7/model.inc.c @@ -1,8 +1,4 @@ // 0x07008DE8 - 0x07008E00 -static const Lights1 sl_seg7_lights_07008DE8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07008E00 - 0x07008F00 static const Vtx sl_seg7_vertex_07008E00[] = { @@ -364,8 +360,8 @@ static const Gfx sl_seg7_dl_07009F30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_07008DE8.l, 1), - gsSPLight(&sl_seg7_lights_07008DE8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_07008E00, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 1, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 6, 1, 5, 0x0), diff --git a/levels/sl/areas/2/1/model.inc.c b/levels/sl/areas/2/1/model.inc.c index eb61d61e..ae51f0b4 100644 --- a/levels/sl/areas/2/1/model.inc.c +++ b/levels/sl/areas/2/1/model.inc.c @@ -1,14 +1,6 @@ // 0x0700A9B0 - 0x0700A9C8 -static const Lights1 sl_seg7_lights_0700A9B0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A9C8 - 0x0700A9E0 -static const Lights1 sl_seg7_lights_0700A9C8 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0700A9E0 - 0x0700AAE0 static const Vtx sl_seg7_vertex_0700A9E0[] = { @@ -281,8 +273,8 @@ static const Gfx sl_seg7_dl_0700B6C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_0700A9B0.l, 1), - gsSPLight(&sl_seg7_lights_0700A9B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_0700A9E0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -346,8 +338,8 @@ static const Gfx sl_seg7_dl_0700B6C0[] = { gsSP2Triangles( 3, 6, 7, 0x0, 3, 7, 8, 0x0), gsSP2Triangles( 0, 9, 10, 0x0, 0, 11, 9, 0x0), gsSP1Triangle( 0, 2, 11, 0x0), - gsSPLight(&sl_seg7_lights_0700A9C8.l, 1), - gsSPLight(&sl_seg7_lights_0700A9C8.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(sl_seg7_vertex_0700B5D0, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP1Triangle( 0, 4, 1, 0x0), @@ -359,8 +351,8 @@ static const Gfx sl_seg7_dl_0700BA70[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_0700A9B0.l, 1), - gsSPLight(&sl_seg7_lights_0700A9B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_0700B620, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 2, 1, 0x0, 4, 1, 5, 0x0), diff --git a/levels/sl/areas/2/2/model.inc.c b/levels/sl/areas/2/2/model.inc.c index cf76e3a4..5d1135bc 100644 --- a/levels/sl/areas/2/2/model.inc.c +++ b/levels/sl/areas/2/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BB68 - 0x0700BB80 -static const Lights1 sl_seg7_lights_0700BB68 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BB80 - 0x0700BC80 static const Vtx sl_seg7_vertex_0700BB80[] = { @@ -29,8 +25,8 @@ static const Gfx sl_seg7_dl_0700BC80[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_0700BB68.l, 1), - gsSPLight(&sl_seg7_lights_0700BB68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_0700BB80, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/sl/areas/2/3/model.inc.c b/levels/sl/areas/2/3/model.inc.c index 780216d5..c14658ec 100644 --- a/levels/sl/areas/2/3/model.inc.c +++ b/levels/sl/areas/2/3/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BD68 - 0x0700BD80 -static const Lights1 sl_seg7_lights_0700BD68 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BD80 - 0x0700BE70 static const Vtx sl_seg7_vertex_0700BD80[] = { @@ -207,8 +203,8 @@ static const Gfx sl_seg7_dl_0700C720[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_0700BD68.l, 1), - gsSPLight(&sl_seg7_lights_0700BD68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_0700BD80, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/sl/areas/2/4/model.inc.c b/levels/sl/areas/2/4/model.inc.c index b4651412..126906cc 100644 --- a/levels/sl/areas/2/4/model.inc.c +++ b/levels/sl/areas/2/4/model.inc.c @@ -1,8 +1,4 @@ // 0x0700CA68 - 0x0700CA80 -static const Lights1 sl_seg7_lights_0700CA68 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700CA80 - 0x0700CB00 static const Vtx sl_seg7_vertex_0700CA80[] = { @@ -21,8 +17,8 @@ static const Gfx sl_seg7_dl_0700CB00[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_0700CA68.l, 1), - gsSPLight(&sl_seg7_lights_0700CA68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_0700CA80, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/sl/snow_mound/model.inc.c b/levels/sl/snow_mound/model.inc.c index e8ae22a3..8a25ce35 100644 --- a/levels/sl/snow_mound/model.inc.c +++ b/levels/sl/snow_mound/model.inc.c @@ -1,8 +1,4 @@ // 0x0700A620 - 0x0700A638 -static const Lights1 sl_seg7_lights_0700A620 = gdSPDefLights1( - 0x73, 0x73, 0x73, - 0xe6, 0xe6, 0xe6, 0x28, 0x28, 0x28 -); // 0x0700A638 - 0x0700A718 static const Vtx sl_seg7_vertex_0700A638[] = { @@ -27,8 +23,8 @@ static const Gfx sl_seg7_dl_0700A718[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_0700A620.l, 1), - gsSPLight(&sl_seg7_lights_0700A620.a, 2), + gsSPLightColor(LIGHT_1, 0xe6e6e6ff), + gsSPLightColor(LIGHT_2, 0x737373ff), gsSPVertex(sl_seg7_vertex_0700A638, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/sl/unused_cracked_ice/model.inc.c b/levels/sl/unused_cracked_ice/model.inc.c index a63b6546..689901d6 100644 --- a/levels/sl/unused_cracked_ice/model.inc.c +++ b/levels/sl/unused_cracked_ice/model.inc.c @@ -1,8 +1,4 @@ // 0x0700A7F0 - 0x0700A808 -static const Lights1 sl_seg7_lights_0700A7F0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A808 - 0x0700A848 static const Vtx sl_seg7_vertex_0700A808[] = { @@ -17,8 +13,8 @@ static const Gfx sl_seg7_dl_0700A848[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sl_seg7_texture_07001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&sl_seg7_lights_0700A7F0.l, 1), - gsSPLight(&sl_seg7_lights_0700A7F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_0700A808, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/sl/unused_ice_shard/model.inc.c b/levels/sl/unused_ice_shard/model.inc.c index ea45f50d..d7ce5f38 100644 --- a/levels/sl/unused_ice_shard/model.inc.c +++ b/levels/sl/unused_ice_shard/model.inc.c @@ -1,8 +1,4 @@ // 0x0700A910 - 0x0700A928 -static const Lights1 sl_seg7_lights_0700A910 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A928 - 0x0700A958 static const Vtx sl_seg7_vertex_0700A928[] = { @@ -13,8 +9,8 @@ static const Vtx sl_seg7_vertex_0700A928[] = { // 0x0700A958 - 0x0700A980 static const Gfx sl_seg7_dl_0700A958[] = { - gsSPLight(&sl_seg7_lights_0700A910.l, 1), - gsSPLight(&sl_seg7_lights_0700A910.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(sl_seg7_vertex_0700A928, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/ssl/areas/1/1/model.inc.c b/levels/ssl/areas/1/1/model.inc.c index 34af24ff..a06e0029 100644 --- a/levels/ssl/areas/1/1/model.inc.c +++ b/levels/ssl/areas/1/1/model.inc.c @@ -1,26 +1,10 @@ // 0x07004BE0 - 0x07004BF8 -static const Lights1 ssl_seg7_lights_07004BE0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07004BF8 - 0x07004C10 -static const Lights1 ssl_seg7_lights_07004BF8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004C10 - 0x07004C28 -static const Lights1 ssl_seg7_lights_07004C10 = gdSPDefLights1( - 0x0c, 0x0c, 0x0c, - 0x32, 0x32, 0x32, 0x28, 0x28, 0x28 -); // 0x07004C28 - 0x07004C40 -static const Lights1 ssl_seg7_lights_07004C28 = gdSPDefLights1( - 0x19, 0x19, 0x19, - 0x64, 0x64, 0x64, 0x28, 0x28, 0x28 -); // 0x07004C40 - 0x07004C80 static const Vtx ssl_seg7_vertex_07004C40[] = { @@ -1343,12 +1327,12 @@ static const Gfx ssl_seg7_dl_07008C40[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07004BE0.l, 1), - gsSPLight(&ssl_seg7_lights_07004BE0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ssl_seg7_vertex_07004C40, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ssl_seg7_lights_07004BF8.l, 1), - gsSPLight(&ssl_seg7_lights_07004BF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ssl_seg7_vertex_07004C80, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1367,12 +1351,12 @@ static const Gfx ssl_seg7_dl_07008C40[] = { gsSP2Triangles(10, 9, 3, 0x0, 10, 7, 9, 0x0), gsSP2Triangles(10, 11, 5, 0x0, 7, 10, 5, 0x0), gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0), - gsSPLight(&ssl_seg7_lights_07004C10.l, 1), - gsSPLight(&ssl_seg7_lights_07004C10.a, 2), + gsSPLightColor(LIGHT_1, 0x323232ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(ssl_seg7_vertex_07004F60, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ssl_seg7_lights_07004C28.l, 1), - gsSPLight(&ssl_seg7_lights_07004C28.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ssl_seg7_vertex_07004FA0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -1383,8 +1367,8 @@ static const Gfx ssl_seg7_dl_07008DE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07004BF8.l, 1), - gsSPLight(&ssl_seg7_lights_07004BF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ssl_seg7_vertex_07004FE0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1500,8 +1484,8 @@ static const Gfx ssl_seg7_dl_07009170[] = { gsSPVertex(ssl_seg7_vertex_070063F0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ssl_seg7_lights_07004C10.l, 1), - gsSPLight(&ssl_seg7_lights_07004C10.a, 2), + gsSPLightColor(LIGHT_1, 0x323232ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(ssl_seg7_vertex_07006470, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1518,8 +1502,8 @@ static const Gfx ssl_seg7_dl_07009410[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07004BF8.l, 1), - gsSPLight(&ssl_seg7_lights_07004BF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ssl_seg7_vertex_070065D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ssl/areas/1/2/model.inc.c b/levels/ssl/areas/1/2/model.inc.c index a24d4141..29acf4fe 100644 --- a/levels/ssl/areas/1/2/model.inc.c +++ b/levels/ssl/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0700A020 - 0x0700A038 -static const Lights1 ssl_seg7_lights_0700A020 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A038 - 0x0700A138 static const Vtx ssl_seg7_vertex_0700A038[] = { @@ -388,8 +384,8 @@ static const Gfx ssl_seg7_dl_0700B2E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_0700A020.l, 1), - gsSPLight(&ssl_seg7_lights_0700A020.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ssl_seg7_vertex_0700A038, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 5, 3, 0x0), diff --git a/levels/ssl/areas/1/3/model.inc.c b/levels/ssl/areas/1/3/model.inc.c index 92b831d4..a32e66a3 100644 --- a/levels/ssl/areas/1/3/model.inc.c +++ b/levels/ssl/areas/1/3/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BAD8 - 0x0700BAF0 -static const Lights1 ssl_seg7_lights_0700BAD8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BAF0 - 0x0700BBB0 static const Vtx ssl_seg7_vertex_0700BAF0[] = { @@ -25,8 +21,8 @@ static const Gfx ssl_seg7_dl_0700BBB0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_0700BAD8.l, 1), - gsSPLight(&ssl_seg7_lights_0700BAD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ssl_seg7_vertex_0700BAF0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/ssl/areas/2/1/model.inc.c b/levels/ssl/areas/2/1/model.inc.c index 5db0c6a2..077c429a 100644 --- a/levels/ssl/areas/2/1/model.inc.c +++ b/levels/ssl/areas/2/1/model.inc.c @@ -1,32 +1,12 @@ // 0x07012BD0 - 0x07012BE8 -static const Lights1 ssl_seg7_lights_07012BD0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07012BE8 - 0x07012C00 -static const Lights1 ssl_seg7_lights_07012BE8 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x07012C00 - 0x07012C18 -static const Lights1 ssl_seg7_lights_07012C00 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07012C18 - 0x07012C30 -static const Lights1 ssl_seg7_lights_07012C18 = gdSPDefLights1( - 0x4b, 0x4b, 0x4b, - 0x96, 0x96, 0x96, 0x28, 0x28, 0x28 -); // 0x07012C30 - 0x07012C48 -static const Lights1 ssl_seg7_lights_07012C30 = gdSPDefLights1( - 0x64, 0x64, 0x64, - 0xc8, 0xc8, 0xc8, 0x28, 0x28, 0x28 -); // 0x07012C48 - 0x07012CC8 static const Vtx ssl_seg7_vertex_07012C48[] = { @@ -3074,20 +3054,20 @@ static const Gfx ssl_seg7_dl_0701C198[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07012BD0.l, 1), - gsSPLight(&ssl_seg7_lights_07012BD0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07012C48, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&ssl_seg7_lights_07012BE8.l, 1), - gsSPLight(&ssl_seg7_lights_07012BE8.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ssl_seg7_vertex_07012CC8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 3, 1, 0x0, 1, 5, 2, 0x0), gsSP2Triangles( 1, 6, 5, 0x0, 3, 4, 7, 0x0), gsSP2Triangles( 5, 7, 4, 0x0, 5, 6, 7, 0x0), - gsSPLight(&ssl_seg7_lights_07012BD0.l, 1), - gsSPLight(&ssl_seg7_lights_07012BD0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07012D48, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 3, 4, 0, 0x0, 3, 5, 4, 0x0), @@ -3097,8 +3077,8 @@ static const Gfx ssl_seg7_dl_0701C198[] = { gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0), gsSPVertex(ssl_seg7_vertex_07012E48, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&ssl_seg7_lights_07012C00.l, 1), - gsSPLight(&ssl_seg7_lights_07012C00.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ssl_seg7_vertex_07012E78, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -3112,8 +3092,8 @@ static const Gfx ssl_seg7_dl_0701C198[] = { gsSP2Triangles(11, 10, 9, 0x0, 11, 4, 10, 0x0), gsSP2Triangles( 0, 2, 12, 0x0, 13, 14, 15, 0x0), gsSP2Triangles(12, 2, 14, 0x0, 13, 12, 14, 0x0), - gsSPLight(&ssl_seg7_lights_07012C18.l, 1), - gsSPLight(&ssl_seg7_lights_07012C18.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x4b4b4bff), gsSPVertex(ssl_seg7_vertex_07013068, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 4, 7, 8, 0x0), @@ -3211,8 +3191,8 @@ static const Gfx ssl_seg7_dl_0701C198[] = { gsSP2Triangles( 2, 5, 0, 0x0, 6, 1, 4, 0x0), gsSP2Triangles( 6, 4, 7, 0x0, 8, 9, 10, 0x0), gsSP2Triangles( 8, 11, 9, 0x0, 12, 11, 8, 0x0), - gsSPLight(&ssl_seg7_lights_07012BD0.l, 1), - gsSPLight(&ssl_seg7_lights_07012BD0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07014098, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -3371,21 +3351,21 @@ static const Gfx ssl_seg7_dl_0701D060[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07012C00.l, 1), - gsSPLight(&ssl_seg7_lights_07012C00.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ssl_seg7_vertex_07015B48, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 3, 4, 1, 0x0, 3, 5, 4, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), - gsSPLight(&ssl_seg7_lights_07012C30.l, 1), - gsSPLight(&ssl_seg7_lights_07012C30.a, 2), + gsSPLightColor(LIGHT_1, 0xc8c8c8ff), + gsSPLightColor(LIGHT_2, 0x646464ff), gsSPVertex(ssl_seg7_vertex_07015BE8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 14, 12, 0x0, 1, 15, 2, 0x0), - gsSPLight(&ssl_seg7_lights_07012C18.l, 1), - gsSPLight(&ssl_seg7_lights_07012C18.a, 2), + gsSPLightColor(LIGHT_1, 0x969696ff), + gsSPLightColor(LIGHT_2, 0x4b4b4bff), gsSPVertex(ssl_seg7_vertex_07015CE8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -3487,8 +3467,8 @@ static const Gfx ssl_seg7_dl_0701D060[] = { gsSP1Triangle( 0, 2, 14, 0x0), gsSPVertex(ssl_seg7_vertex_07016FB8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ssl_seg7_lights_07012BD0.l, 1), - gsSPLight(&ssl_seg7_lights_07012BD0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07016FF8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ssl/areas/2/4/model.inc.c b/levels/ssl/areas/2/4/model.inc.c index d733fbc5..f7960f71 100644 --- a/levels/ssl/areas/2/4/model.inc.c +++ b/levels/ssl/areas/2/4/model.inc.c @@ -1,10 +1,6 @@ // Quicksand Pit // 0x07004000 - 0x07004018 -static const Lights1 ssl_lights_quicksand_pit = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07004018 - 0x07004818 ALIGNED8 const Texture ssl_quicksand[] = { @@ -15,8 +11,8 @@ ALIGNED8 const Texture ssl_quicksand[] = { const Gfx ssl_dl_quicksand_pit_begin[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), - gsSPLight(&ssl_lights_quicksand_pit.l, 1), - gsSPLight(&ssl_lights_quicksand_pit.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), 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), @@ -42,8 +38,8 @@ const Gfx ssl_dl_pyramid_quicksand_pit_begin[] = { gsSPFogFactor(0x0E49, 0xF2B7), // This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7 gsSPSetGeometryMode(G_FOG), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2), - gsSPLight(&ssl_lights_quicksand_pit.l, 1), - gsSPLight(&ssl_lights_quicksand_pit.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), 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), @@ -119,8 +115,8 @@ const Gfx ssl_dl_pyramid_quicksand_pit_static[] = { gsSPFogFactor(0x0E49, 0xF2B7), // This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7 gsSPSetGeometryMode(G_FOG), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2), - gsSPLight(&ssl_lights_quicksand_pit.l, 1), - gsSPLight(&ssl_lights_quicksand_pit.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), gsDPLoadTextureBlock(ssl_pyramid_sand, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD), gsSPVertex(ssl_seg7_vertex_07004A70, 7, 0), diff --git a/levels/ssl/areas/3/1/model.inc.c b/levels/ssl/areas/3/1/model.inc.c index eaa234c3..fd063ac4 100644 --- a/levels/ssl/areas/3/1/model.inc.c +++ b/levels/ssl/areas/3/1/model.inc.c @@ -1,14 +1,6 @@ // 0x0701FD60 - 0x0701FD78 -static const Lights1 ssl_seg7_lights_0701FD60 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x0701FD78 - 0x0701FD90 -static const Lights1 ssl_seg7_lights_0701FD78 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701FD90 - 0x0701FE50 static const Vtx ssl_seg7_vertex_0701FD90[] = { @@ -451,14 +443,14 @@ static const Gfx ssl_seg7_dl_07021290[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_0701FD60.l, 1), - gsSPLight(&ssl_seg7_lights_0701FD60.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ssl_seg7_vertex_0701FD90, 12, 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), - gsSPLight(&ssl_seg7_lights_0701FD78.l, 1), - gsSPLight(&ssl_seg7_lights_0701FD78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_0701FE50, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -505,15 +497,15 @@ static const Gfx ssl_seg7_dl_070214E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_0701FD60.l, 1), - gsSPLight(&ssl_seg7_lights_0701FD60.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ssl_seg7_vertex_07020550, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 3, 1, 0x0, 1, 5, 2, 0x0), gsSP2Triangles( 1, 6, 5, 0x0, 3, 4, 7, 0x0), gsSP2Triangles( 5, 7, 4, 0x0, 5, 6, 7, 0x0), - gsSPLight(&ssl_seg7_lights_0701FD78.l, 1), - gsSPLight(&ssl_seg7_lights_0701FD78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_070205D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -537,8 +529,8 @@ static const Gfx ssl_seg7_dl_07021638[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_0701FD60.l, 1), - gsSPLight(&ssl_seg7_lights_0701FD60.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ssl_seg7_vertex_07020870, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -550,8 +542,8 @@ static const Gfx ssl_seg7_dl_07021638[] = { gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), gsSP1Triangle( 0, 2, 12, 0x0), - gsSPLight(&ssl_seg7_lights_0701FD78.l, 1), - gsSPLight(&ssl_seg7_lights_0701FD78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07020A20, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 4, 7, 8, 0x0), diff --git a/levels/ssl/areas/3/2/model.inc.c b/levels/ssl/areas/3/2/model.inc.c index e93fb42a..e5968b87 100644 --- a/levels/ssl/areas/3/2/model.inc.c +++ b/levels/ssl/areas/3/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07021AC8 - 0x07021AE0 -static const Lights1 ssl_seg7_lights_07021AC8 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x07021AE0 - 0x07021BA0 static const Vtx ssl_seg7_vertex_07021AE0[] = { @@ -55,8 +51,8 @@ static const Gfx ssl_seg7_dl_07021D00[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07021AC8.l, 1), - gsSPLight(&ssl_seg7_lights_07021AC8.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ssl_seg7_vertex_07021AE0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/ssl/grindel/model.inc.c b/levels/ssl/grindel/model.inc.c index f59bead7..fcf974d1 100644 --- a/levels/ssl/grindel/model.inc.c +++ b/levels/ssl/grindel/model.inc.c @@ -1,8 +1,4 @@ // 0x07021E50 - 0x07021E68 -static const Lights1 ssl_seg7_lights_07021E50 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07021E68 - 0x07021EE8 static const Vtx ssl_seg7_vertex_07021E68[] = { @@ -41,8 +37,8 @@ static const Gfx ssl_seg7_dl_07021FE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07021E50.l, 1), - gsSPLight(&ssl_seg7_lights_07021E50.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07021E68, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/ssl/moving_pyramid_wall/model.inc.c b/levels/ssl/moving_pyramid_wall/model.inc.c index 385e1fad..7bc92032 100644 --- a/levels/ssl/moving_pyramid_wall/model.inc.c +++ b/levels/ssl/moving_pyramid_wall/model.inc.c @@ -1,8 +1,4 @@ // 0x07022AA0 - 0x07022AB8 -static const Lights1 ssl_seg7_lights_07022AA0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07022AB8 - 0x07022BB8 static const Vtx ssl_seg7_vertex_07022AB8[] = { @@ -41,8 +37,8 @@ static const Gfx ssl_seg7_dl_07022C38[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07022AA0.l, 1), - gsSPLight(&ssl_seg7_lights_07022AA0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07022AB8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ssl/pyramid_elevator/model.inc.c b/levels/ssl/pyramid_elevator/model.inc.c index 89a40498..ff57e592 100644 --- a/levels/ssl/pyramid_elevator/model.inc.c +++ b/levels/ssl/pyramid_elevator/model.inc.c @@ -1,8 +1,4 @@ // 0x07022DA8 - 0x07022DC0 -static const Lights1 ssl_seg7_lights_07022DA8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07022DC0 - 0x07022E80 static const Vtx ssl_seg7_vertex_07022DC0[] = { @@ -94,8 +90,8 @@ static const Gfx ssl_seg7_dl_070231D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_07022DA8.l, 1), - gsSPLight(&ssl_seg7_lights_07022DA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_07022DC0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 3, 0, 0x0, 1, 3, 5, 0x0), diff --git a/levels/ssl/pyramid_top/model.inc.c b/levels/ssl/pyramid_top/model.inc.c index c2210c66..74bc4524 100644 --- a/levels/ssl/pyramid_top/model.inc.c +++ b/levels/ssl/pyramid_top/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BD70 - 0x0700BD88 -static const Lights1 ssl_seg7_lights_0700BD70 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BD88 - 0x0700BE48 static const Vtx ssl_seg7_vertex_0700BD88[] = { @@ -33,8 +29,8 @@ static const Gfx ssl_seg7_dl_0700BE88[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_0700BD70.l, 1), - gsSPLight(&ssl_seg7_lights_0700BD70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ssl_seg7_vertex_0700BD88, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/ssl/spindel/model.inc.c b/levels/ssl/spindel/model.inc.c index e08aa155..1043ee5a 100644 --- a/levels/ssl/spindel/model.inc.c +++ b/levels/ssl/spindel/model.inc.c @@ -1,8 +1,4 @@ // 0x070222A0 - 0x070222B8 -static const Lights1 ssl_seg7_lights_070222A0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070222B8 - 0x070223B8 static const Vtx ssl_seg7_vertex_070222B8[] = { @@ -104,8 +100,8 @@ static const Gfx ssl_seg7_dl_07022728[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_070222A0.l, 1), - gsSPLight(&ssl_seg7_lights_070222A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ssl_seg7_vertex_070222B8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 6, 0x0, 0, 7, 8, 0x0), diff --git a/levels/ssl/tox_box/model.inc.c b/levels/ssl/tox_box/model.inc.c index d2a1f50f..487ebfbc 100644 --- a/levels/ssl/tox_box/model.inc.c +++ b/levels/ssl/tox_box/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BF90 - 0x0700BFA8 -static const Lights1 ssl_seg7_lights_0700BF90 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BFA8 - 0x0700C7A8 ALIGNED8 static const Texture ssl_seg7_texture_0700BFA8[] = { @@ -107,8 +103,8 @@ static const Gfx ssl_seg7_dl_0700FB48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_0700BFA8), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ssl_seg7_lights_0700BF90.l, 1), - gsSPLight(&ssl_seg7_lights_0700BF90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ssl_seg7_vertex_0700F7A8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/thi/areas/1/1/model.inc.c b/levels/thi/areas/1/1/model.inc.c index 16558177..55fea2e8 100644 --- a/levels/thi/areas/1/1/model.inc.c +++ b/levels/thi/areas/1/1/model.inc.c @@ -1,26 +1,10 @@ // 0x07001000 - 0x07001018 -static const Lights1 thi_seg7_lights_07001000 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07001018 - 0x07001030 -static const Lights1 thi_seg7_lights_07001018 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07001030 - 0x07001048 -static const Lights1 thi_seg7_lights_07001030 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07001048 - 0x07001060 -static const Lights1 thi_seg7_lights_07001048 = gdSPDefLights1( - 0x7f, 0x7f, 0x3c, - 0xff, 0xff, 0x78, 0x28, 0x28, 0x28 -); // 0x07001060 - 0x07001140 static const Vtx thi_seg7_vertex_07001060[] = { @@ -1044,8 +1028,8 @@ static const Gfx thi_seg7_dl_07004130[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07001000.l, 1), - gsSPLight(&thi_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07001060, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1092,8 +1076,8 @@ static const Gfx thi_seg7_dl_07004130[] = { gsSP2Triangles(11, 14, 12, 0x0, 11, 10, 15, 0x0), gsSPVertex(thi_seg7_vertex_070017D0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&thi_seg7_lights_07001018.l, 1), - gsSPLight(&thi_seg7_lights_07001018.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_07001830, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 5, 1, 4, 0x0), @@ -1108,18 +1092,18 @@ static const Gfx thi_seg7_dl_07004440[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07001000.l, 1), - gsSPLight(&thi_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07001920, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), - gsSPLight(&thi_seg7_lights_07001018.l, 1), - gsSPLight(&thi_seg7_lights_07001018.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_07001960, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 7, 4, 0x0), gsSP1Triangle( 0, 2, 8, 0x0), - gsSPLight(&thi_seg7_lights_07001030.l, 1), - gsSPLight(&thi_seg7_lights_07001030.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(thi_seg7_vertex_070019F0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), @@ -1130,8 +1114,8 @@ static const Gfx thi_seg7_dl_070044F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07001000.l, 1), - gsSPLight(&thi_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07001A50, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1169,13 +1153,13 @@ static const Gfx thi_seg7_dl_070044F0[] = { gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0), gsSP1Triangle( 8, 10, 14, 0x0), - gsSPLight(&thi_seg7_lights_07001018.l, 1), - gsSPLight(&thi_seg7_lights_07001018.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_070021C0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 5, 4, 2, 0x0), - gsSPLight(&thi_seg7_lights_07001030.l, 1), - gsSPLight(&thi_seg7_lights_07001030.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(thi_seg7_vertex_07002220, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), @@ -1188,8 +1172,8 @@ static const Gfx thi_seg7_dl_07004788[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07001000.l, 1), - gsSPLight(&thi_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07002260, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 4, 6, 0x0), @@ -1264,8 +1248,8 @@ static const Gfx thi_seg7_dl_07004788[] = { gsSP2Triangles(12, 13, 14, 0x0, 13, 15, 14, 0x0), gsSPVertex(thi_seg7_vertex_07002F00, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), - gsSPLight(&thi_seg7_lights_07001018.l, 1), - gsSPLight(&thi_seg7_lights_07001018.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_07002F40, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -1278,8 +1262,8 @@ static const Gfx thi_seg7_dl_07004BF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09003000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07001000.l, 1), - gsSPLight(&thi_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07002F80, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 4, 3, 0x0), @@ -1355,8 +1339,8 @@ static const Gfx thi_seg7_dl_07004BF0[] = { gsSP2Triangles(11, 12, 0, 0x0, 13, 14, 15, 0x0), gsSPVertex(thi_seg7_vertex_07003D00, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&thi_seg7_lights_07001018.l, 1), - gsSPLight(&thi_seg7_lights_07001018.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_07003D60, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1374,8 +1358,8 @@ static const Gfx thi_seg7_dl_070050C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, thi_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07001000.l, 1), - gsSPLight(&thi_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07003EE0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 1, 3, 4, 0x0, 2, 1, 5, 0x0), @@ -1407,8 +1391,8 @@ static const Gfx thi_seg7_dl_070051E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07001048.l, 1), - gsSPLight(&thi_seg7_lights_07001048.a, 2), + gsSPLightColor(LIGHT_1, 0xffff78ff), + gsSPLightColor(LIGHT_2, 0x7f7f3cff), gsSPVertex(thi_seg7_vertex_07004090, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0), gsSP2Triangles( 4, 1, 5, 0x0, 3, 5, 1, 0x0), diff --git a/levels/thi/areas/1/2/model.inc.c b/levels/thi/areas/1/2/model.inc.c index e410beb3..043a3343 100644 --- a/levels/thi/areas/1/2/model.inc.c +++ b/levels/thi/areas/1/2/model.inc.c @@ -1,26 +1,10 @@ // 0x07005330 - 0x07005348 -static const Lights1 thi_seg7_lights_07005330 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005348 - 0x07005360 -static const Lights1 thi_seg7_lights_07005348 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07005360 - 0x07005378 -static const Lights1 thi_seg7_lights_07005360 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07005378 - 0x07005390 -static const Lights1 thi_seg7_lights_07005378 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07005390 - 0x07005470 static const Vtx thi_seg7_vertex_07005390[] = { @@ -362,8 +346,8 @@ static const Gfx thi_seg7_dl_070063C0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07005330.l, 1), - gsSPLight(&thi_seg7_lights_07005330.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07005390, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -375,8 +359,8 @@ static const Gfx thi_seg7_dl_070063C0[] = { gsSPVertex(thi_seg7_vertex_07005550, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&thi_seg7_lights_07005348.l, 1), - gsSPLight(&thi_seg7_lights_07005348.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_070055D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -419,8 +403,8 @@ static const Gfx thi_seg7_dl_07006660[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07005330.l, 1), - gsSPLight(&thi_seg7_lights_07005330.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07005C30, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 3, 0x0), @@ -431,8 +415,8 @@ static const Gfx thi_seg7_dl_07006660[] = { gsSPVertex(thi_seg7_vertex_07005D30, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 3, 5, 0x0), - gsSPLight(&thi_seg7_lights_07005360.l, 1), - gsSPLight(&thi_seg7_lights_07005360.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(thi_seg7_vertex_07005DA0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -446,8 +430,8 @@ static const Gfx thi_seg7_dl_07006770[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07005348.l, 1), - gsSPLight(&thi_seg7_lights_07005348.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_07005EA0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 6, 1, 0x0, 3, 5, 7, 0x0), @@ -491,8 +475,8 @@ static const Gfx thi_seg7_dl_07006868[] = { // 0x07006908 - 0x07006968 static const Gfx thi_seg7_dl_07006908[] = { - gsSPLight(&thi_seg7_lights_07005378.l, 1), - gsSPLight(&thi_seg7_lights_07005378.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(thi_seg7_vertex_070062C0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/thi/areas/1/4/model.inc.c b/levels/thi/areas/1/4/model.inc.c index 2095cf9f..53605746 100644 --- a/levels/thi/areas/1/4/model.inc.c +++ b/levels/thi/areas/1/4/model.inc.c @@ -1,8 +1,4 @@ // 0x07007078 - 0x07007090 -static const Lights1 thi_seg7_lights_07007078 = gdSPDefLights1( - 0x7f, 0x7f, 0x3c, - 0xff, 0xff, 0x78, 0x28, 0x28, 0x28 -); // 0x07007090 - 0x07007180 static const Vtx thi_seg7_vertex_07007090[] = { @@ -44,8 +40,8 @@ static const Gfx thi_seg7_dl_07007240[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, grass_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07007078.l, 1), - gsSPLight(&thi_seg7_lights_07007078.a, 2), + gsSPLightColor(LIGHT_1, 0xffff78ff), + gsSPLightColor(LIGHT_2, 0x7f7f3cff), gsSPVertex(thi_seg7_vertex_07007090, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), diff --git a/levels/thi/areas/1/6/model.inc.c b/levels/thi/areas/1/6/model.inc.c index b2a7958e..a7b78f0b 100644 --- a/levels/thi/areas/1/6/model.inc.c +++ b/levels/thi/areas/1/6/model.inc.c @@ -1,8 +1,4 @@ // 0x070075A8 - 0x070075C0 -static const Lights1 thi_seg7_lights_070075A8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070075C0 - 0x07007600 static const Vtx thi_seg7_vertex_070075C0[] = { @@ -17,8 +13,8 @@ static const Gfx thi_seg7_dl_07007600[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, thi_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_070075A8.l, 1), - gsSPLight(&thi_seg7_lights_070075A8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_070075C0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/thi/areas/1/7/model.inc.c b/levels/thi/areas/1/7/model.inc.c index fe60fd50..e5cf572b 100644 --- a/levels/thi/areas/1/7/model.inc.c +++ b/levels/thi/areas/1/7/model.inc.c @@ -1,14 +1,6 @@ // 0x070076A8 - 0x070076C0 -static const Lights1 thi_seg7_lights_070076A8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070076C0 - 0x070076D8 -static const Lights1 thi_seg7_lights_070076C0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x070076D8 - 0x07007718 static const Vtx thi_seg7_vertex_070076D8[] = { @@ -48,8 +40,8 @@ static const Gfx thi_seg7_dl_07007828[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_070076A8.l, 1), - gsSPLight(&thi_seg7_lights_070076A8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_070076D8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -73,8 +65,8 @@ static const Gfx thi_seg7_dl_070078D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_070076C0.l, 1), - gsSPLight(&thi_seg7_lights_070076C0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_070077D8, 5, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 3, 4, 2, 0x0, 4, 0, 2, 0x0), diff --git a/levels/thi/areas/3/2/model.inc.c b/levels/thi/areas/3/2/model.inc.c index b4b2dd71..728d949a 100644 --- a/levels/thi/areas/3/2/model.inc.c +++ b/levels/thi/areas/3/2/model.inc.c @@ -1,32 +1,12 @@ // 0x07007C90 - 0x07007CA8 -static const Lights1 thi_seg7_lights_07007C90 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07007CA8 - 0x07007CC0 -static const Lights1 thi_seg7_lights_07007CA8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07007CC0 - 0x07007CD8 -static const Lights1 thi_seg7_lights_07007CC0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07007CD8 - 0x07007CF0 -static const Lights1 thi_seg7_lights_07007CD8 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07007CF0 - 0x07007D08 -static const Lights1 thi_seg7_lights_07007CF0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x07007D08 - 0x07007D88 static const Vtx thi_seg7_vertex_07007D08[] = { @@ -426,8 +406,8 @@ static const Gfx thi_seg7_dl_07008F98[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07007C90.l, 1), - gsSPLight(&thi_seg7_lights_07007C90.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(thi_seg7_vertex_07007D08, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0), gsSP2Triangles( 0, 2, 5, 0x0, 3, 1, 0, 0x0), @@ -441,12 +421,12 @@ static const Gfx thi_seg7_dl_07009010[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07007CA8.l, 1), - gsSPLight(&thi_seg7_lights_07007CA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07007D88, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&thi_seg7_lights_07007CC0.l, 1), - gsSPLight(&thi_seg7_lights_07007CC0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_07007DC8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -457,15 +437,15 @@ static const Gfx thi_seg7_dl_07009080[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07007CA8.l, 1), - gsSPLight(&thi_seg7_lights_07007CA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(thi_seg7_vertex_07007E08, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0), gsSP2Triangles( 8, 6, 7, 0x0, 8, 7, 9, 0x0), gsSP2Triangles( 0, 10, 1, 0x0, 11, 12, 13, 0x0), - gsSPLight(&thi_seg7_lights_07007CD8.l, 1), - gsSPLight(&thi_seg7_lights_07007CD8.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(thi_seg7_vertex_07007EE8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -533,8 +513,8 @@ static const Gfx thi_seg7_dl_07009080[] = { gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(thi_seg7_vertex_07008B18, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&thi_seg7_lights_07007CF0.l, 1), - gsSPLight(&thi_seg7_lights_07007CF0.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(thi_seg7_vertex_07008B78, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 4, 5, 0x0), @@ -555,8 +535,8 @@ static const Gfx thi_seg7_dl_07009530[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&thi_seg7_lights_07007CC0.l, 1), - gsSPLight(&thi_seg7_lights_07007CC0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(thi_seg7_vertex_07008D78, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 3, 4, 5, 0x0, 3, 2, 4, 0x0), @@ -580,8 +560,8 @@ static const Gfx thi_seg7_dl_070095A8[] = { // 0x07009610 - 0x07009670 static const Gfx thi_seg7_dl_07009610[] = { - gsSPLight(&thi_seg7_lights_07007C90.l, 1), - gsSPLight(&thi_seg7_lights_07007C90.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(thi_seg7_vertex_07008F18, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 0, 3, 5, 0x0), diff --git a/levels/ttc/areas/1/1/model.inc.c b/levels/ttc/areas/1/1/model.inc.c index d538b8c1..43db2ef3 100644 --- a/levels/ttc/areas/1/1/model.inc.c +++ b/levels/ttc/areas/1/1/model.inc.c @@ -1,32 +1,12 @@ // 0x07001000 - 0x07001018 -static const Lights1 ttc_seg7_lights_07001000 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07001018 - 0x07001030 -static const Lights1 ttc_seg7_lights_07001018 = gdSPDefLights1( - 0x19, 0x19, 0x19, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07001030 - 0x07001048 -static const Lights1 ttc_seg7_lights_07001030 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07001048 - 0x07001060 -static const Lights1 ttc_seg7_lights_07001048 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07001060 - 0x07001078 -static const Lights1 ttc_seg7_lights_07001060 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07001078 - 0x07001168 static const Vtx ttc_seg7_vertex_07001078[] = { @@ -2508,8 +2488,8 @@ static const Gfx ttc_seg7_dl_070089A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttc_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 64 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07001000.l, 1), - gsSPLight(&ttc_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttc_seg7_vertex_07001078, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2602,12 +2582,12 @@ static const Gfx ttc_seg7_dl_07008DD0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07001018.l, 1), - gsSPLight(&ttc_seg7_lights_07001018.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttc_seg7_vertex_07001E38, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ttc_seg7_lights_07001000.l, 1), - gsSPLight(&ttc_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttc_seg7_vertex_07001E78, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2697,13 +2677,13 @@ static const Gfx ttc_seg7_dl_07009278[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09008400), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07001030.l, 1), - gsSPLight(&ttc_seg7_lights_07001030.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(ttc_seg7_vertex_07002D08, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttc_seg7_lights_07001000.l, 1), - gsSPLight(&ttc_seg7_lights_07001000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttc_seg7_vertex_07002D88, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -3221,8 +3201,8 @@ static const Gfx ttc_seg7_dl_0700A700[] = { gsSPVertex(ttc_seg7_vertex_070082F8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 0, 2, 6, 0x0), - gsSPLight(&ttc_seg7_lights_07001048.l, 1), - gsSPLight(&ttc_seg7_lights_07001048.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttc_seg7_vertex_07008368, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -3252,8 +3232,8 @@ static const Gfx ttc_seg7_dl_0700A700[] = { // 0x0700ACD8 - 0x0700AD38 static const Gfx ttc_seg7_dl_0700ACD8[] = { - gsSPLight(&ttc_seg7_lights_07001060.l, 1), - gsSPLight(&ttc_seg7_lights_07001060.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ttc_seg7_vertex_070088A8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttc/areas/1/2/model.inc.c b/levels/ttc/areas/1/2/model.inc.c index 9cf65876..3121b573 100644 --- a/levels/ttc/areas/1/2/model.inc.c +++ b/levels/ttc/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0700AED8 - 0x0700AEF0 -static const Lights1 ttc_seg7_lights_0700AED8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700AEF0 - 0x0700AFE0 static const Vtx ttc_seg7_vertex_0700AEF0[] = { @@ -55,8 +51,8 @@ static const Gfx ttc_seg7_dl_0700B110[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_0700AED8.l, 1), - gsSPLight(&ttc_seg7_lights_0700AED8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_0700AEF0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttc/areas/1/movtext.inc.c b/levels/ttc/areas/1/movtext.inc.c index b96bc92d..776391d0 100644 --- a/levels/ttc/areas/1/movtext.inc.c +++ b/levels/ttc/areas/1/movtext.inc.c @@ -1,8 +1,4 @@ // 0x07015F78 - 0x07015F90 -static const Lights1 ttc_lights_surface_treadmill = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07015F90 - 0x07016790 ALIGNED8 const Texture ttc_yellow_triangle[] = { @@ -19,8 +15,8 @@ const Gfx ttc_dl_surface_treadmill_begin[] = { gsSPFogPosition(900, 1000), gsSPSetGeometryMode(G_FOG), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2), - gsSPLight(&ttc_lights_surface_treadmill.l, 1), - gsSPLight(&ttc_lights_surface_treadmill.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), 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), diff --git a/levels/ttc/clock_hand/model.inc.c b/levels/ttc/clock_hand/model.inc.c index 3e390642..682de10f 100644 --- a/levels/ttc/clock_hand/model.inc.c +++ b/levels/ttc/clock_hand/model.inc.c @@ -1,26 +1,10 @@ // 0x07011758 - 0x07011770 -static const Lights1 ttc_seg7_lights_07011758 = gdSPDefLights1( - 0x5a, 0x41, 0x23, - 0xb4, 0x82, 0x46, 0x28, 0x28, 0x28 -); // 0x07011770 - 0x07011788 -static const Lights1 ttc_seg7_lights_07011770 = gdSPDefLights1( - 0x7f, 0x66, 0x32, - 0xff, 0xcc, 0x65, 0x28, 0x28, 0x28 -); // 0x07011788 - 0x070117A0 -static const Lights1 ttc_seg7_lights_07011788 = gdSPDefLights1( - 0x49, 0x00, 0x00, - 0x93, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x070117A0 - 0x070117B8 -static const Lights1 ttc_seg7_lights_070117A0 = gdSPDefLights1( - 0x7f, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x070117B8 - 0x07011838 static const Vtx ttc_seg7_vertex_070117B8[] = { @@ -79,26 +63,26 @@ static const Gfx ttc_seg7_dl_070119F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07011758.l, 1), - gsSPLight(&ttc_seg7_lights_07011758.a, 2), + gsSPLightColor(LIGHT_1, 0xb48246ff), + gsSPLightColor(LIGHT_2, 0x5a4123ff), gsSPVertex(ttc_seg7_vertex_070117B8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 1, 0x0, 4, 1, 3, 0x0), gsSP2Triangles( 0, 2, 6, 0x0, 0, 6, 7, 0x0), - gsSPLight(&ttc_seg7_lights_07011770.l, 1), - gsSPLight(&ttc_seg7_lights_07011770.a, 2), + gsSPLightColor(LIGHT_1, 0xffcc65ff), + gsSPLightColor(LIGHT_2, 0x7f6632ff), gsSPVertex(ttc_seg7_vertex_07011838, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&ttc_seg7_lights_07011788.l, 1), - gsSPLight(&ttc_seg7_lights_07011788.a, 2), + gsSPLightColor(LIGHT_1, 0x930000ff), + gsSPLightColor(LIGHT_2, 0x490000ff), gsSPVertex(ttc_seg7_vertex_070118B8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 3, 2, 4, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 5, 6, 7, 0x0), gsSP2Triangles( 7, 6, 8, 0x0, 7, 8, 9, 0x0), - gsSPLight(&ttc_seg7_lights_070117A0.l, 1), - gsSPLight(&ttc_seg7_lights_070117A0.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x7f0000ff), gsSPVertex(ttc_seg7_vertex_07011958, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 5, 6, 7, 0x0), diff --git a/levels/ttc/elevator_platform/model.inc.c b/levels/ttc/elevator_platform/model.inc.c index e03e462c..35965ef5 100644 --- a/levels/ttc/elevator_platform/model.inc.c +++ b/levels/ttc/elevator_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07011428 - 0x07011440 -static const Lights1 ttc_seg7_lights_07011428 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011440 - 0x07011530 static const Vtx ttc_seg7_vertex_07011440[] = { @@ -47,8 +43,8 @@ static const Gfx ttc_seg7_dl_070115E0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07011428.l, 1), - gsSPLight(&ttc_seg7_lights_07011428.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_07011440, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttc/large_treadmill/model.inc.c b/levels/ttc/large_treadmill/model.inc.c index 5cabf7d4..e12e4b9a 100644 --- a/levels/ttc/large_treadmill/model.inc.c +++ b/levels/ttc/large_treadmill/model.inc.c @@ -1,14 +1,6 @@ // 0x0700F830 - 0x0700F848 -static const Lights1 ttc_seg7_lights_0700F830 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F848 - 0x0700F860 -static const Lights1 ttc_seg7_lights_0700F848 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x0700F860 - 0x0700F8E0 static const Vtx ttc_seg7_vertex_0700F860[] = { @@ -67,8 +59,8 @@ static const Gfx ttc_seg7_dl_0700FAA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_0700F830.l, 1), - gsSPLight(&ttc_seg7_lights_0700F830.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_0700F860, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -94,8 +86,8 @@ static const Gfx ttc_seg7_dl_0700FAF8[] = { // 0x0700FB88 - 0x0700FBB8 static const Gfx ttc_seg7_dl_0700FB88[] = { - gsSPLight(&ttc_seg7_lights_0700F848.l, 1), - gsSPLight(&ttc_seg7_lights_0700F848.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ttc_seg7_vertex_0700FA60, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttc/pendulum/model.inc.c b/levels/ttc/pendulum/model.inc.c index 8a80af7a..5b05a3c8 100644 --- a/levels/ttc/pendulum/model.inc.c +++ b/levels/ttc/pendulum/model.inc.c @@ -1,8 +1,4 @@ // 0x0700F090 - 0x0700F0A8 -static const Lights1 ttc_seg7_lights_0700F090 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F0A8 - 0x0700F188 static const Vtx ttc_seg7_vertex_0700F0A8[] = { @@ -101,8 +97,8 @@ static const Gfx ttc_seg7_dl_0700F528[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttc_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 64 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_0700F090.l, 1), - gsSPLight(&ttc_seg7_lights_0700F090.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_0700F0A8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttc/pit_block/model.inc.c b/levels/ttc/pit_block/model.inc.c index ae65e377..0eb2d570 100644 --- a/levels/ttc/pit_block/model.inc.c +++ b/levels/ttc/pit_block/model.inc.c @@ -1,8 +1,4 @@ // 0x07010DE8 - 0x07010E00 -static const Lights1 ttc_seg7_lights_07010DE8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07010E00 - 0x07010E80 static const Vtx ttc_seg7_vertex_07010E00[] = { @@ -41,8 +37,8 @@ static const Gfx ttc_seg7_dl_07010F80[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07010DE8.l, 1), - gsSPLight(&ttc_seg7_lights_07010DE8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_07010E00, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/ttc/pit_block_2/model.inc.c b/levels/ttc/pit_block_2/model.inc.c index 175629d8..025f5384 100644 --- a/levels/ttc/pit_block_2/model.inc.c +++ b/levels/ttc/pit_block_2/model.inc.c @@ -1,8 +1,4 @@ // 0x07011108 - 0x07011120 -static const Lights1 ttc_seg7_lights_07011108 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011120 - 0x070111A0 static const Vtx ttc_seg7_vertex_07011120[] = { @@ -41,8 +37,8 @@ static const Gfx ttc_seg7_dl_070112A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07011108.l, 1), - gsSPLight(&ttc_seg7_lights_07011108.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_07011120, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/ttc/push_block/model.inc.c b/levels/ttc/push_block/model.inc.c index a1530d33..6a85f7f7 100644 --- a/levels/ttc/push_block/model.inc.c +++ b/levels/ttc/push_block/model.inc.c @@ -1,8 +1,4 @@ // 0x070100B0 - 0x070100C8 -static const Lights1 ttc_seg7_lights_070100B0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070100C8 - 0x070101C8 static const Vtx ttc_seg7_vertex_070100C8[] = { @@ -37,8 +33,8 @@ static const Gfx ttc_seg7_dl_07010208[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_070100B0.l, 1), - gsSPLight(&ttc_seg7_lights_070100B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_070100C8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttc/rotating_cube/model.inc.c b/levels/ttc/rotating_cube/model.inc.c index 2de1c703..91f143b9 100644 --- a/levels/ttc/rotating_cube/model.inc.c +++ b/levels/ttc/rotating_cube/model.inc.c @@ -1,14 +1,6 @@ // 0x0700E950 - 0x0700E968 -static const Lights1 ttc_seg7_lights_0700E950 = gdSPDefLights1( - 0x55, 0x55, 0x55, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x0700E968 - 0x0700E980 -static const Lights1 ttc_seg7_lights_0700E968 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700E980 - 0x0700EA20 static const Vtx ttc_seg7_vertex_0700E980[] = { @@ -63,13 +55,13 @@ static const Gfx ttc_seg7_dl_0700EBC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_0700E950.l, 1), - gsSPLight(&ttc_seg7_lights_0700E950.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x555555ff), gsSPVertex(ttc_seg7_vertex_0700E980, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 8, 6, 9, 0x0), - gsSPLight(&ttc_seg7_lights_0700E968.l, 1), - gsSPLight(&ttc_seg7_lights_0700E968.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_0700EA20, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 8, 6, 9, 0x0), diff --git a/levels/ttc/rotating_hexagon/model.inc.c b/levels/ttc/rotating_hexagon/model.inc.c index d19a7953..1e59c55b 100644 --- a/levels/ttc/rotating_hexagon/model.inc.c +++ b/levels/ttc/rotating_hexagon/model.inc.c @@ -1,8 +1,4 @@ // 0x07010380 - 0x07010398 -static const Lights1 ttc_seg7_lights_07010380 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07010398 - 0x07010488 static const Vtx ttc_seg7_vertex_07010398[] = { @@ -83,8 +79,8 @@ static const Gfx ttc_seg7_dl_07010738[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07010380.l, 1), - gsSPLight(&ttc_seg7_lights_07010380.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_07010398, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttc/rotating_prism/model.inc.c b/levels/ttc/rotating_prism/model.inc.c index fce629a2..a972e6bc 100644 --- a/levels/ttc/rotating_prism/model.inc.c +++ b/levels/ttc/rotating_prism/model.inc.c @@ -1,8 +1,4 @@ // 0x0700ED68 - 0x0700ED80 -static const Lights1 ttc_seg7_lights_0700ED68 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700ED80 - 0x0700EE60 static const Vtx ttc_seg7_vertex_0700ED80[] = { @@ -43,8 +39,8 @@ static const Gfx ttc_seg7_dl_0700EF20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_0700ED68.l, 1), - gsSPLight(&ttc_seg7_lights_0700ED68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_0700ED80, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 7, 0x0, 8, 4, 9, 0x0), diff --git a/levels/ttc/rotating_triangle/model.inc.c b/levels/ttc/rotating_triangle/model.inc.c index 5ac22eca..ce13cbcd 100644 --- a/levels/ttc/rotating_triangle/model.inc.c +++ b/levels/ttc/rotating_triangle/model.inc.c @@ -1,8 +1,4 @@ // 0x07010930 - 0x07010948 -static const Lights1 ttc_seg7_lights_07010930 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07010948 - 0x07010A28 static const Vtx ttc_seg7_vertex_07010948[] = { @@ -68,8 +64,8 @@ static const Gfx ttc_seg7_dl_07010BF8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07010930.l, 1), - gsSPLight(&ttc_seg7_lights_07010930.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_07010948, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 3, 5, 7, 0x0), diff --git a/levels/ttc/small_treadmill/model.inc.c b/levels/ttc/small_treadmill/model.inc.c index 8eb61c4e..9cfb5790 100644 --- a/levels/ttc/small_treadmill/model.inc.c +++ b/levels/ttc/small_treadmill/model.inc.c @@ -1,14 +1,6 @@ // 0x0700FC80 - 0x0700FC98 -static const Lights1 ttc_seg7_lights_0700FC80 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700FC98 - 0x0700FCB0 -static const Lights1 ttc_seg7_lights_0700FC98 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x0700FCB0 - 0x0700FD30 static const Vtx ttc_seg7_vertex_0700FCB0[] = { @@ -65,8 +57,8 @@ static const Gfx ttc_seg7_dl_0700FED0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_0700FC80.l, 1), - gsSPLight(&ttc_seg7_lights_0700FC80.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_0700FCB0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -92,8 +84,8 @@ static const Gfx ttc_seg7_dl_0700FF28[] = { // 0x0700FFB8 - 0x0700FFE8 static const Gfx ttc_seg7_dl_0700FFB8[] = { - gsSPLight(&ttc_seg7_lights_0700FC98.l, 1), - gsSPLight(&ttc_seg7_lights_0700FC98.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ttc_seg7_vertex_0700FE90, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttc/spinner/model.inc.c b/levels/ttc/spinner/model.inc.c index 6d11606b..be13d164 100644 --- a/levels/ttc/spinner/model.inc.c +++ b/levels/ttc/spinner/model.inc.c @@ -1,14 +1,6 @@ // 0x07011BE0 - 0x07011BF8 -static const Lights1 ttc_seg7_lights_07011BE0 = gdSPDefLights1( - 0x46, 0x46, 0x46, - 0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28 -); // 0x07011BF8 - 0x07011C10 -static const Lights1 ttc_seg7_lights_07011BF8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011C10 - 0x07011D10 static const Vtx ttc_seg7_vertex_07011C10[] = { @@ -70,8 +62,8 @@ static const Gfx ttc_seg7_dl_07011EC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttc_seg7_lights_07011BE0.l, 1), - gsSPLight(&ttc_seg7_lights_07011BE0.a, 2), + gsSPLightColor(LIGHT_1, 0x8c8c8cff), + gsSPLightColor(LIGHT_2, 0x464646ff), gsSPVertex(ttc_seg7_vertex_07011C10, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 2, 6, 3, 0x0), @@ -87,8 +79,8 @@ static const Gfx ttc_seg7_dl_07011EC0[] = { gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSP2Triangles( 8, 7, 4, 0x0, 8, 4, 9, 0x0), gsSP2Triangles( 8, 10, 3, 0x0, 8, 3, 2, 0x0), - gsSPLight(&ttc_seg7_lights_07011BF8.l, 1), - gsSPLight(&ttc_seg7_lights_07011BF8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttc_seg7_vertex_07011DC0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttm/areas/1/1/model.inc.c b/levels/ttm/areas/1/1/model.inc.c index cd150d79..c8f4f1b7 100644 --- a/levels/ttm/areas/1/1/model.inc.c +++ b/levels/ttm/areas/1/1/model.inc.c @@ -1,26 +1,10 @@ // 0x07005000 - 0x07005018 -static const Lights1 ttm_seg7_lights_07005000 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005018 - 0x07005030 -static const Lights1 ttm_seg7_lights_07005018 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07005030 - 0x07005048 -static const Lights1 ttm_seg7_lights_07005030 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07005048 - 0x07005060 -static const Lights1 ttm_seg7_lights_07005048 = gdSPDefLights1( - 0x37, 0x29, 0x22, - 0x6e, 0x52, 0x44, 0x28, 0x28, 0x28 -); // 0x07005060 - 0x07005160 static const Vtx ttm_seg7_vertex_07005060[] = { @@ -1346,8 +1330,8 @@ static const Gfx ttm_seg7_dl_070090D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07005000.l, 1), - gsSPLight(&ttm_seg7_lights_07005000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07005060, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1440,8 +1424,8 @@ static const Gfx ttm_seg7_dl_070090D0[] = { gsSPVertex(ttm_seg7_vertex_07006430, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), - gsSPLight(&ttm_seg7_lights_07005018.l, 1), - gsSPLight(&ttm_seg7_lights_07005018.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_070064C0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 5, 0, 3, 0x0), @@ -1505,8 +1489,8 @@ static const Gfx ttm_seg7_dl_070090D0[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0), - gsSPLight(&ttm_seg7_lights_07005030.l, 1), - gsSPLight(&ttm_seg7_lights_07005030.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_07007200, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 3, 6, 0x0, 3, 7, 6, 0x0), @@ -1581,8 +1565,8 @@ static const Gfx ttm_seg7_dl_07009C98[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07005000.l, 1), - gsSPLight(&ttm_seg7_lights_07005000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07007FC0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSPEndDisplayList(), @@ -1631,8 +1615,8 @@ static const Gfx ttm_seg7_dl_07009CE0[] = { gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(ttm_seg7_vertex_07008880, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ttm_seg7_lights_07005018.l, 1), - gsSPLight(&ttm_seg7_lights_07005018.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_070088E0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1642,8 +1626,8 @@ static const Gfx ttm_seg7_dl_07009CE0[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), gsSP1Triangle( 0, 10, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07005030.l, 1), - gsSPLight(&ttm_seg7_lights_07005030.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_07008A80, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -1670,8 +1654,8 @@ static const Gfx ttm_seg7_dl_0700A038[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07005000.l, 1), - gsSPLight(&ttm_seg7_lights_07005000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07008E60, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1681,8 +1665,8 @@ static const Gfx ttm_seg7_dl_0700A038[] = { // 0x0700A098 - 0x0700A120 static const Gfx ttm_seg7_dl_0700A098[] = { - gsSPLight(&ttm_seg7_lights_07005048.l, 1), - gsSPLight(&ttm_seg7_lights_07005048.a, 2), + gsSPLightColor(LIGHT_1, 0x6e5244ff), + gsSPLightColor(LIGHT_2, 0x372922ff), gsSPVertex(ttm_seg7_vertex_07008F30, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), diff --git a/levels/ttm/areas/1/10/model.inc.c b/levels/ttm/areas/1/10/model.inc.c index 056d924e..28372d8f 100644 --- a/levels/ttm/areas/1/10/model.inc.c +++ b/levels/ttm/areas/1/10/model.inc.c @@ -1,20 +1,8 @@ // 0x0700C488 - 0x0700C4A0 -static const Lights1 ttm_seg7_lights_0700C488 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700C4A0 - 0x0700C4B8 -static const Lights1 ttm_seg7_lights_0700C4A0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700C4B8 - 0x0700C4D0 -static const Lights1 ttm_seg7_lights_0700C4B8 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700C4D0 - 0x0700C5D0 static const Vtx ttm_seg7_vertex_0700C4D0[] = { @@ -124,21 +112,21 @@ static const Gfx ttm_seg7_dl_0700C900[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700C488.l, 1), - gsSPLight(&ttm_seg7_lights_0700C488.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700C4D0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), gsSP2Triangles(12, 13, 14, 0x0, 14, 13, 15, 0x0), gsSPVertex(ttm_seg7_vertex_0700C5D0, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&ttm_seg7_lights_0700C4A0.l, 1), - gsSPLight(&ttm_seg7_lights_0700C4A0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700C600, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), - gsSPLight(&ttm_seg7_lights_0700C4B8.l, 1), - gsSPLight(&ttm_seg7_lights_0700C4B8.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700C690, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -153,13 +141,13 @@ static const Gfx ttm_seg7_dl_0700C9F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700C488.l, 1), - gsSPLight(&ttm_seg7_lights_0700C488.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700C7B0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 2, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0700C4B8.l, 1), - gsSPLight(&ttm_seg7_lights_0700C4B8.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700C810, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -173,8 +161,8 @@ static const Gfx ttm_seg7_dl_0700CA78[] = { gsSPVertex(ttm_seg7_vertex_0700C850, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 3, 6, 4, 0x0), - gsSPLight(&ttm_seg7_lights_0700C488.l, 1), - gsSPLight(&ttm_seg7_lights_0700C488.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700C8C0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttm/areas/1/11/model.inc.c b/levels/ttm/areas/1/11/model.inc.c index 38aff457..451203b3 100644 --- a/levels/ttm/areas/1/11/model.inc.c +++ b/levels/ttm/areas/1/11/model.inc.c @@ -1,14 +1,6 @@ // 0x0700CB60 - 0x0700CB78 -static const Lights1 ttm_seg7_lights_0700CB60 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700CB78 - 0x0700CB90 -static const Lights1 ttm_seg7_lights_0700CB78 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700CB90 - 0x0700CBF0 static const Vtx ttm_seg7_vertex_0700CB90[] = { @@ -40,12 +32,12 @@ static const Gfx ttm_seg7_dl_0700CC60[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700CB60.l, 1), - gsSPLight(&ttm_seg7_lights_0700CB60.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700CB90, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0700CB78.l, 1), - gsSPLight(&ttm_seg7_lights_0700CB78.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700CBF0, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), @@ -56,8 +48,8 @@ static const Gfx ttm_seg7_dl_0700CCC8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700CB60.l, 1), - gsSPLight(&ttm_seg7_lights_0700CB60.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700CC20, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttm/areas/1/12/model.inc.c b/levels/ttm/areas/1/12/model.inc.c index a50ae241..d9216b7a 100644 --- a/levels/ttm/areas/1/12/model.inc.c +++ b/levels/ttm/areas/1/12/model.inc.c @@ -1,20 +1,8 @@ // 0x0700CD88 - 0x0700CDA0 -static const Lights1 ttm_seg7_lights_0700CD88 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700CDA0 - 0x0700CDB8 -static const Lights1 ttm_seg7_lights_0700CDA0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700CDB8 - 0x0700CDD0 -static const Lights1 ttm_seg7_lights_0700CDB8 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700CDD0 - 0x0700CEC0 static const Vtx ttm_seg7_vertex_0700CDD0[] = { @@ -85,19 +73,19 @@ static const Gfx ttm_seg7_dl_0700D090[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700CD88.l, 1), - gsSPLight(&ttm_seg7_lights_0700CD88.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700CDD0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 9, 10, 7, 0x0, 11, 12, 13, 0x0), gsSP1Triangle( 0, 2, 14, 0x0), - gsSPLight(&ttm_seg7_lights_0700CDA0.l, 1), - gsSPLight(&ttm_seg7_lights_0700CDA0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700CEC0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), - gsSPLight(&ttm_seg7_lights_0700CDB8.l, 1), - gsSPLight(&ttm_seg7_lights_0700CDB8.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700CF00, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), @@ -112,8 +100,8 @@ static const Gfx ttm_seg7_dl_0700D180[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700CD88.l, 1), - gsSPLight(&ttm_seg7_lights_0700CD88.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700D030, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 2, 5, 0, 0x0), diff --git a/levels/ttm/areas/1/13/model.inc.c b/levels/ttm/areas/1/13/model.inc.c index d8880d28..6b94d4e9 100644 --- a/levels/ttm/areas/1/13/model.inc.c +++ b/levels/ttm/areas/1/13/model.inc.c @@ -1,20 +1,8 @@ // 0x0700D250 - 0x0700D268 -static const Lights1 ttm_seg7_lights_0700D250 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D268 - 0x0700D280 -static const Lights1 ttm_seg7_lights_0700D268 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700D280 - 0x0700D298 -static const Lights1 ttm_seg7_lights_0700D280 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700D298 - 0x0700D398 static const Vtx ttm_seg7_vertex_0700D298[] = { @@ -84,8 +72,8 @@ static const Gfx ttm_seg7_dl_0700D548[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700D250.l, 1), - gsSPLight(&ttm_seg7_lights_0700D250.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700D298, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -93,13 +81,13 @@ static const Gfx ttm_seg7_dl_0700D548[] = { gsSPVertex(ttm_seg7_vertex_0700D398, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 3, 5, 9, 0x0), - gsSPLight(&ttm_seg7_lights_0700D268.l, 1), - gsSPLight(&ttm_seg7_lights_0700D268.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700D438, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 0, 2, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0700D280.l, 1), - gsSPLight(&ttm_seg7_lights_0700D280.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700D498, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 0, 2, 6, 0x0), @@ -111,8 +99,8 @@ static const Gfx ttm_seg7_dl_0700D640[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700D250.l, 1), - gsSPLight(&ttm_seg7_lights_0700D250.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700D508, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttm/areas/1/14/model.inc.c b/levels/ttm/areas/1/14/model.inc.c index 641d7727..87ce80ee 100644 --- a/levels/ttm/areas/1/14/model.inc.c +++ b/levels/ttm/areas/1/14/model.inc.c @@ -1,20 +1,8 @@ // 0x0700D700 - 0x0700D718 -static const Lights1 ttm_seg7_lights_0700D700 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D718 - 0x0700D730 -static const Lights1 ttm_seg7_lights_0700D718 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700D730 - 0x0700D748 -static const Lights1 ttm_seg7_lights_0700D730 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700D748 - 0x0700D848 static const Vtx ttm_seg7_vertex_0700D748[] = { @@ -160,8 +148,8 @@ static const Gfx ttm_seg7_dl_0700DDB8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700D700.l, 1), - gsSPLight(&ttm_seg7_lights_0700D700.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700D748, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 0, 6, 1, 0x0, 7, 8, 9, 0x0), @@ -173,8 +161,8 @@ static const Gfx ttm_seg7_dl_0700DDB8[] = { gsSPVertex(ttm_seg7_vertex_0700D938, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), - gsSPLight(&ttm_seg7_lights_0700D718.l, 1), - gsSPLight(&ttm_seg7_lights_0700D718.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700D9F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -189,12 +177,12 @@ static const Gfx ttm_seg7_dl_0700DDB8[] = { gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(ttm_seg7_vertex_0700DCC8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0700D730.l, 1), - gsSPLight(&ttm_seg7_lights_0700D730.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700DD28, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0700D700.l, 1), - gsSPLight(&ttm_seg7_lights_0700D700.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700DD88, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttm/areas/1/15/model.inc.c b/levels/ttm/areas/1/15/model.inc.c index af98a8a6..02f3f6f5 100644 --- a/levels/ttm/areas/1/15/model.inc.c +++ b/levels/ttm/areas/1/15/model.inc.c @@ -1,8 +1,4 @@ // 0x0700DFE8 - 0x0700E000 -static const Lights1 ttm_seg7_lights_0700DFE8 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700E000 - 0x0700E100 static const Vtx ttm_seg7_vertex_0700E000[] = { @@ -57,8 +53,8 @@ static const Gfx ttm_seg7_dl_0700E240[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700DFE8.l, 1), - gsSPLight(&ttm_seg7_lights_0700DFE8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700E000, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttm/areas/1/16/1.inc.c b/levels/ttm/areas/1/16/1.inc.c index 2cfaaf9f..fa9bcaf5 100644 --- a/levels/ttm/areas/1/16/1.inc.c +++ b/levels/ttm/areas/1/16/1.inc.c @@ -1,20 +1,8 @@ // 0x0700E378 - 0x0700E390 -static const Lights1 ttm_seg7_lights_0700E378 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700E390 - 0x0700E3A8 -static const Lights1 ttm_seg7_lights_0700E390 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700E3A8 - 0x0700E3C0 -static const Lights1 ttm_seg7_lights_0700E3A8 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0700E3C0 - 0x0700E4B0 static const Vtx ttm_seg7_vertex_0700E3C0[] = { @@ -138,8 +126,8 @@ static const Gfx ttm_seg7_dl_0700E910[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700E378.l, 1), - gsSPLight(&ttm_seg7_lights_0700E378.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700E3C0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -152,12 +140,12 @@ static const Gfx ttm_seg7_dl_0700E910[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), gsSP1Triangle(12, 13, 14, 0x0), - gsSPLight(&ttm_seg7_lights_0700E390.l, 1), - gsSPLight(&ttm_seg7_lights_0700E390.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700E680, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0700E378.l, 1), - gsSPLight(&ttm_seg7_lights_0700E378.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700E6E0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -175,8 +163,8 @@ static const Gfx ttm_seg7_dl_0700EA28[] = { gsSPVertex(ttm_seg7_vertex_0700E820, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), - gsSPLight(&ttm_seg7_lights_0700E3A8.l, 1), - gsSPLight(&ttm_seg7_lights_0700E3A8.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ttm_seg7_vertex_0700E8B0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttm/areas/1/17/2.inc.c b/levels/ttm/areas/1/17/2.inc.c index a2a26305..8cdacc40 100644 --- a/levels/ttm/areas/1/17/2.inc.c +++ b/levels/ttm/areas/1/17/2.inc.c @@ -1,8 +1,4 @@ // 0x0700F300 - 0x0700F318 -static const Lights1 ttm_seg7_lights_0700F300 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F318 - 0x0700F418 static const Vtx ttm_seg7_vertex_0700F318[] = { @@ -117,8 +113,8 @@ static const Gfx ttm_seg7_dl_0700F858[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700F300.l, 1), - gsSPLight(&ttm_seg7_lights_0700F300.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700F318, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttm/areas/1/18/1.inc.c b/levels/ttm/areas/1/18/1.inc.c index f369470b..f79951e4 100644 --- a/levels/ttm/areas/1/18/1.inc.c +++ b/levels/ttm/areas/1/18/1.inc.c @@ -1,20 +1,8 @@ // 0x0700FA90 - 0x0700FAA8 -static const Lights1 ttm_seg7_lights_0700FA90 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700FAA8 - 0x0700FAC0 -static const Lights1 ttm_seg7_lights_0700FAA8 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700FAC0 - 0x0700FAD8 -static const Lights1 ttm_seg7_lights_0700FAC0 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700FAD8 - 0x0700FBB8 static const Vtx ttm_seg7_vertex_0700FAD8[] = { @@ -259,8 +247,8 @@ static const Gfx ttm_seg7_dl_07010638[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700FA90.l, 1), - gsSPLight(&ttm_seg7_lights_0700FA90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700FAD8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -272,8 +260,8 @@ static const Gfx ttm_seg7_dl_07010638[] = { gsSPVertex(ttm_seg7_vertex_0700FCB8, 9, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 6, 7, 8, 0x0), - gsSPLight(&ttm_seg7_lights_0700FAA8.l, 1), - gsSPLight(&ttm_seg7_lights_0700FAA8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700FD48, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -285,8 +273,8 @@ static const Gfx ttm_seg7_dl_07010638[] = { gsSPVertex(ttm_seg7_vertex_0700FF38, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), - gsSPLight(&ttm_seg7_lights_0700FAC0.l, 1), - gsSPLight(&ttm_seg7_lights_0700FAC0.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700FFF8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), @@ -306,8 +294,8 @@ static const Gfx ttm_seg7_dl_07010830[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700FA90.l, 1), - gsSPLight(&ttm_seg7_lights_0700FA90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07010278, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 5, 6, 7, 0x0), @@ -320,13 +308,13 @@ static const Gfx ttm_seg7_dl_07010830[] = { gsSP1Triangle(14, 0, 2, 0x0), gsSPVertex(ttm_seg7_vertex_07010468, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ttm_seg7_lights_0700FAA8.l, 1), - gsSPLight(&ttm_seg7_lights_0700FAA8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_070104A8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), - gsSPLight(&ttm_seg7_lights_0700FAC0.l, 1), - gsSPLight(&ttm_seg7_lights_0700FAC0.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_07010568, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/ttm/areas/1/19/model.inc.c b/levels/ttm/areas/1/19/model.inc.c index 2262b372..0f4e2612 100644 --- a/levels/ttm/areas/1/19/model.inc.c +++ b/levels/ttm/areas/1/19/model.inc.c @@ -1,20 +1,8 @@ // 0x07010AD8 - 0x07010AF0 -static const Lights1 ttm_seg7_lights_07010AD8 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07010AF0 - 0x07010B08 -static const Lights1 ttm_seg7_lights_07010AF0 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07010B08 - 0x07010B20 -static const Lights1 ttm_seg7_lights_07010B08 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07010B20 - 0x07010C10 static const Vtx ttm_seg7_vertex_07010B20[] = { @@ -124,24 +112,24 @@ static const Gfx ttm_seg7_dl_07010F90[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07010AD8.l, 1), - gsSPLight(&ttm_seg7_lights_07010AD8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_07010B20, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(ttm_seg7_vertex_07010C10, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&ttm_seg7_lights_07010AF0.l, 1), - gsSPLight(&ttm_seg7_lights_07010AF0.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_07010C40, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), gsSP1Triangle(12, 13, 14, 0x0), gsSPVertex(ttm_seg7_vertex_07010D30, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&ttm_seg7_lights_07010B08.l, 1), - gsSPLight(&ttm_seg7_lights_07010B08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07010D60, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -152,12 +140,12 @@ static const Gfx ttm_seg7_dl_07011078[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07010AD8.l, 1), - gsSPLight(&ttm_seg7_lights_07010AD8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_07010DA0, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&ttm_seg7_lights_07010B08.l, 1), - gsSPLight(&ttm_seg7_lights_07010B08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07010E00, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/ttm/areas/1/2/model.inc.c b/levels/ttm/areas/1/2/model.inc.c index d8adff28..423a8105 100644 --- a/levels/ttm/areas/1/2/model.inc.c +++ b/levels/ttm/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0700A1B0 - 0x0700A1C8 -static const Lights1 ttm_seg7_lights_0700A1B0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A1C8 - 0x0700A268 static const Vtx ttm_seg7_vertex_0700A1C8[] = { @@ -23,8 +19,8 @@ static const Gfx ttm_seg7_dl_0700A268[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700A1B0.l, 1), - gsSPLight(&ttm_seg7_lights_0700A1B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700A1C8, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 5, 4, 0x0), diff --git a/levels/ttm/areas/1/20/model.inc.c b/levels/ttm/areas/1/20/model.inc.c index 00bcf939..1dccc83e 100644 --- a/levels/ttm/areas/1/20/model.inc.c +++ b/levels/ttm/areas/1/20/model.inc.c @@ -1,20 +1,8 @@ // 0x070111A0 - 0x070111B8 -static const Lights1 ttm_seg7_lights_070111A0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070111B8 - 0x070111D0 -static const Lights1 ttm_seg7_lights_070111B8 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x070111D0 - 0x070111E8 -static const Lights1 ttm_seg7_lights_070111D0 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x070111E8 - 0x07011228 static const Vtx ttm_seg7_vertex_070111E8[] = { @@ -86,23 +74,23 @@ static const Gfx ttm_seg7_dl_070114B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_070111A0.l, 1), - gsSPLight(&ttm_seg7_lights_070111A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_070111E8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ttm_seg7_lights_070111B8.l, 1), - gsSPLight(&ttm_seg7_lights_070111B8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_07011228, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), gsSP1Triangle( 0, 2, 12, 0x0), - gsSPLight(&ttm_seg7_lights_070111D0.l, 1), - gsSPLight(&ttm_seg7_lights_070111D0.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_070112F8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_070111A0.l, 1), - gsSPLight(&ttm_seg7_lights_070111A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07011378, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/ttm/areas/1/21/1.inc.c b/levels/ttm/areas/1/21/1.inc.c index 6e139955..6096b8e8 100644 --- a/levels/ttm/areas/1/21/1.inc.c +++ b/levels/ttm/areas/1/21/1.inc.c @@ -1,20 +1,8 @@ // 0x07011680 - 0x07011698 -static const Lights1 ttm_seg7_lights_07011680 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011698 - 0x070116B0 -static const Lights1 ttm_seg7_lights_07011698 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x070116B0 - 0x070116C8 -static const Lights1 ttm_seg7_lights_070116B0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x070116C8 - 0x070117C8 static const Vtx ttm_seg7_vertex_070116C8[] = { @@ -111,8 +99,8 @@ static const Gfx ttm_seg7_dl_07011AA8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07011680.l, 1), - gsSPLight(&ttm_seg7_lights_07011680.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_070116C8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -128,8 +116,8 @@ static const Gfx ttm_seg7_dl_07011B20[] = { gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), gsSPVertex(ttm_seg7_vertex_070117C8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07011698.l, 1), - gsSPLight(&ttm_seg7_lights_07011698.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_07011808, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -158,8 +146,8 @@ static const Gfx ttm_seg7_dl_07011C10[] = { // 0x07011C48 - 0x07011C78 static const Gfx ttm_seg7_dl_07011C48[] = { - gsSPLight(&ttm_seg7_lights_070116B0.l, 1), - gsSPLight(&ttm_seg7_lights_070116B0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ttm_seg7_vertex_07011A68, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttm/areas/1/3/1.inc.c b/levels/ttm/areas/1/3/1.inc.c index cc65c588..de5524a5 100644 --- a/levels/ttm/areas/1/3/1.inc.c +++ b/levels/ttm/areas/1/3/1.inc.c @@ -1,14 +1,6 @@ // 0x0700A340 - 0x0700A358 -static const Lights1 ttm_seg7_lights_0700A340 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A358 - 0x0700A370 -static const Lights1 ttm_seg7_lights_0700A358 = gdSPDefLights1( - 0x7f, 0x7f, 0x64, - 0xff, 0xff, 0xc9, 0x28, 0x28, 0x28 -); // 0x0700A370 - 0x0700A460 static const Vtx ttm_seg7_vertex_0700A370[] = { @@ -89,8 +81,8 @@ static const Gfx ttm_seg7_dl_0700A710[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700A340.l, 1), - gsSPLight(&ttm_seg7_lights_0700A340.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700A370, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 5, 6, 7, 0x0), @@ -117,8 +109,8 @@ static const Gfx ttm_seg7_dl_0700A848[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700A358.l, 1), - gsSPLight(&ttm_seg7_lights_0700A358.a, 2), + gsSPLightColor(LIGHT_1, 0xffffc9ff), + gsSPLightColor(LIGHT_2, 0x7f7f64ff), gsSPVertex(ttm_seg7_vertex_0700A640, 13, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 5, 3, 0x0, 0, 6, 7, 0x0), diff --git a/levels/ttm/areas/1/3/2.inc.c b/levels/ttm/areas/1/3/2.inc.c index 20d2ca14..5b78d171 100644 --- a/levels/ttm/areas/1/3/2.inc.c +++ b/levels/ttm/areas/1/3/2.inc.c @@ -1,8 +1,4 @@ // 0x0700A928 - 0x0700A940 -static const Lights1 ttm_seg7_lights_0700A928 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A940 - 0x0700A9C0 static const Vtx ttm_seg7_vertex_0700A940[] = { @@ -33,8 +29,8 @@ static const Gfx ttm_seg7_dl_0700AA40[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700A928.l, 1), - gsSPLight(&ttm_seg7_lights_0700A928.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700A940, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 0, 3, 0x0, 2, 1, 5, 0x0), diff --git a/levels/ttm/areas/1/4/1.inc.c b/levels/ttm/areas/1/4/1.inc.c index 82b9a3b3..90d7b13e 100644 --- a/levels/ttm/areas/1/4/1.inc.c +++ b/levels/ttm/areas/1/4/1.inc.c @@ -1,8 +1,4 @@ // 0x0700AB70 - 0x0700AB88 -static const Lights1 ttm_seg7_lights_0700AB70 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700AB88 - 0x0700AC78 static const Vtx ttm_seg7_vertex_0700AB88[] = { @@ -66,8 +62,8 @@ static const Gfx ttm_seg7_dl_0700AE58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700AB70.l, 1), - gsSPLight(&ttm_seg7_lights_0700AB70.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700AB88, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 5, 6, 7, 0x0), diff --git a/levels/ttm/areas/1/4/2.inc.c b/levels/ttm/areas/1/4/2.inc.c index 9b4ab5c2..41235d2f 100644 --- a/levels/ttm/areas/1/4/2.inc.c +++ b/levels/ttm/areas/1/4/2.inc.c @@ -1,8 +1,4 @@ // 0x0700AFF0 - 0x0700B008 -static const Lights1 ttm_seg7_lights_0700AFF0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700B008 - 0x0700B068 static const Vtx ttm_seg7_vertex_0700B008[] = { @@ -19,8 +15,8 @@ static const Gfx ttm_seg7_dl_0700B068[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700AFF0.l, 1), - gsSPLight(&ttm_seg7_lights_0700AFF0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700B008, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 3, 4, 0, 0x0), diff --git a/levels/ttm/areas/1/5/1.inc.c b/levels/ttm/areas/1/5/1.inc.c index ae548cec..135dddc0 100644 --- a/levels/ttm/areas/1/5/1.inc.c +++ b/levels/ttm/areas/1/5/1.inc.c @@ -1,8 +1,4 @@ // 0x0700B130 - 0x0700B148 -static const Lights1 ttm_seg7_lights_0700B130 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700B148 - 0x0700B248 static const Vtx ttm_seg7_vertex_0700B148[] = { @@ -64,8 +60,8 @@ static const Gfx ttm_seg7_dl_0700B3F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700B130.l, 1), - gsSPLight(&ttm_seg7_lights_0700B130.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700B148, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/ttm/areas/1/5/2.inc.c b/levels/ttm/areas/1/5/2.inc.c index d12065f4..c42ec90f 100644 --- a/levels/ttm/areas/1/5/2.inc.c +++ b/levels/ttm/areas/1/5/2.inc.c @@ -1,8 +1,4 @@ // 0x0700B590 - 0x0700B5A8 -static const Lights1 ttm_seg7_lights_0700B590 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700B5A8 - 0x0700B608 static const Vtx ttm_seg7_vertex_0700B5A8[] = { @@ -19,8 +15,8 @@ static const Gfx ttm_seg7_dl_0700B608[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700B590.l, 1), - gsSPLight(&ttm_seg7_lights_0700B590.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700B5A8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 4, 0x0), gsSP2Triangles( 2, 1, 3, 0x0, 0, 5, 1, 0x0), diff --git a/levels/ttm/areas/1/6/1.inc.c b/levels/ttm/areas/1/6/1.inc.c index 109de67d..615a3a67 100644 --- a/levels/ttm/areas/1/6/1.inc.c +++ b/levels/ttm/areas/1/6/1.inc.c @@ -1,8 +1,4 @@ // 0x0700B6D0 - 0x0700B6E8 -static const Lights1 ttm_seg7_lights_0700B6D0 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700B6E8 - 0x0700B7D8 static const Vtx ttm_seg7_vertex_0700B6E8[] = { @@ -64,8 +60,8 @@ static const Gfx ttm_seg7_dl_0700B998[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700B6D0.l, 1), - gsSPLight(&ttm_seg7_lights_0700B6D0.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700B6E8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 5, 6, 7, 0x0), diff --git a/levels/ttm/areas/1/6/2.inc.c b/levels/ttm/areas/1/6/2.inc.c index e898bcea..ddc4bb9c 100644 --- a/levels/ttm/areas/1/6/2.inc.c +++ b/levels/ttm/areas/1/6/2.inc.c @@ -1,8 +1,4 @@ // 0x0700BB30 - 0x0700BB48 -static const Lights1 ttm_seg7_lights_0700BB30 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700BB48 - 0x0700BBA8 static const Vtx ttm_seg7_vertex_0700BB48[] = { @@ -19,8 +15,8 @@ static const Gfx ttm_seg7_dl_0700BBA8[] = { gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700BB30.l, 1), - gsSPLight(&ttm_seg7_lights_0700BB30.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700BB48, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 2, 1, 4, 0x0, 1, 5, 4, 0x0), diff --git a/levels/ttm/areas/1/7/model.inc.c b/levels/ttm/areas/1/7/model.inc.c index e9669b95..ebb986c8 100644 --- a/levels/ttm/areas/1/7/model.inc.c +++ b/levels/ttm/areas/1/7/model.inc.c @@ -1,14 +1,6 @@ // 0x0700BC70 - 0x0700BC88 -static const Lights1 ttm_seg7_lights_0700BC70 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BC88 - 0x0700BCA0 -static const Lights1 ttm_seg7_lights_0700BC88 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700BCA0 - 0x0700BCE0 static const Vtx ttm_seg7_vertex_0700BCA0[] = { @@ -39,12 +31,12 @@ static const Gfx ttm_seg7_dl_0700BDA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700BC70.l, 1), - gsSPLight(&ttm_seg7_lights_0700BC70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700BCA0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), - gsSPLight(&ttm_seg7_lights_0700BC88.l, 1), - gsSPLight(&ttm_seg7_lights_0700BC88.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700BCE0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/ttm/areas/1/8/model.inc.c b/levels/ttm/areas/1/8/model.inc.c index f3350d0f..d58b5e15 100644 --- a/levels/ttm/areas/1/8/model.inc.c +++ b/levels/ttm/areas/1/8/model.inc.c @@ -1,14 +1,6 @@ // 0x0700BE90 - 0x0700BEA8 -static const Lights1 ttm_seg7_lights_0700BE90 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700BEA8 - 0x0700BEC0 -static const Lights1 ttm_seg7_lights_0700BEA8 = gdSPDefLights1( - 0x5d, 0x5d, 0x5d, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0700BEC0 - 0x0700BF40 static const Vtx ttm_seg7_vertex_0700BEC0[] = { @@ -41,13 +33,13 @@ static const Gfx ttm_seg7_dl_0700BFE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700BE90.l, 1), - gsSPLight(&ttm_seg7_lights_0700BE90.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700BEC0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 6, 7, 4, 0x0), - gsSPLight(&ttm_seg7_lights_0700BEA8.l, 1), - gsSPLight(&ttm_seg7_lights_0700BEA8.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x5d5d5dff), gsSPVertex(ttm_seg7_vertex_0700BF40, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttm/areas/1/9/model.inc.c b/levels/ttm/areas/1/9/model.inc.c index d0c3bbb6..edf5584c 100644 --- a/levels/ttm/areas/1/9/model.inc.c +++ b/levels/ttm/areas/1/9/model.inc.c @@ -1,20 +1,8 @@ // 0x0700C0E0 - 0x0700C0F8 -static const Lights1 ttm_seg7_lights_0700C0E0 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700C0F8 - 0x0700C110 -static const Lights1 ttm_seg7_lights_0700C0F8 = gdSPDefLights1( - 0x4c, 0x4c, 0x4c, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0700C110 - 0x0700C128 -static const Lights1 ttm_seg7_lights_0700C110 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0700C128 - 0x0700C228 static const Vtx ttm_seg7_vertex_0700C128[] = { @@ -61,8 +49,8 @@ static const Gfx ttm_seg7_dl_0700C2E8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700C0E0.l, 1), - gsSPLight(&ttm_seg7_lights_0700C0E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_0700C128, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -76,8 +64,8 @@ static const Gfx ttm_seg7_dl_0700C360[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0700C0F8.l, 1), - gsSPLight(&ttm_seg7_lights_0700C0F8.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x4c4c4cff), gsSPVertex(ttm_seg7_vertex_0700C228, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 3, 1, 0x0, 4, 1, 5, 0x0), @@ -88,8 +76,8 @@ static const Gfx ttm_seg7_dl_0700C360[] = { // 0x0700C3D8 - 0x0700C408 static const Gfx ttm_seg7_dl_0700C3D8[] = { - gsSPLight(&ttm_seg7_lights_0700C110.l, 1), - gsSPLight(&ttm_seg7_lights_0700C110.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ttm_seg7_vertex_0700C2A8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/ttm/areas/1/painting.inc.c b/levels/ttm/areas/1/painting.inc.c index 2477f654..e83bc73b 100644 --- a/levels/ttm/areas/1/painting.inc.c +++ b/levels/ttm/areas/1/painting.inc.c @@ -1,10 +1,6 @@ #include "game/paintings.h" // 0x070122F0 - 0x07012308 -static const Lights1 ttm_seg7_lights_070122F0 = gdSPDefLights1( - 0x50, 0x50, 0x50, - 0xff, 0xff, 0xff, 0x32, 0x32, 0x32 -); // 0x07012308 - 0x07012388 static const Vtx ttm_seg7_vertex_07012308[] = { @@ -35,8 +31,8 @@ const Gfx ttm_seg7_dl_070123B8[] = { gsDPPipeSync(), gsSPSetGeometryMode(G_LIGHTING | G_SHADING_SMOOTH), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), - gsSPLight(&ttm_seg7_lights_070122F0.l, 1), - gsSPLight(&ttm_seg7_lights_070122F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x505050ff), 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), gsDPTileSync(), gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 6, G_TX_NOLOD), diff --git a/levels/ttm/areas/2/1/model.inc.c b/levels/ttm/areas/2/1/model.inc.c index f0fef251..5cc967af 100644 --- a/levels/ttm/areas/2/1/model.inc.c +++ b/levels/ttm/areas/2/1/model.inc.c @@ -1,80 +1,28 @@ // 0x070172D8 - 0x070172F0 -static const Lights1 ttm_seg7_lights_070172D8 = gdSPDefLights1( - 0x08, 0x08, 0x08, - 0x22, 0x22, 0x22, 0x28, 0x28, 0x28 -); // 0x070172F0 - 0x07017308 -static const Lights1 ttm_seg7_lights_070172F0 = gdSPDefLights1( - 0x0c, 0x0c, 0x0c, - 0x33, 0x33, 0x33, 0x28, 0x28, 0x28 -); // 0x07017308 - 0x07017320 -static const Lights1 ttm_seg7_lights_07017308 = gdSPDefLights1( - 0x11, 0x11, 0x11, - 0x44, 0x44, 0x44, 0x28, 0x28, 0x28 -); // 0x07017320 - 0x07017338 -static const Lights1 ttm_seg7_lights_07017320 = gdSPDefLights1( - 0x15, 0x15, 0x15, - 0x55, 0x55, 0x55, 0x28, 0x28, 0x28 -); // 0x07017338 - 0x07017350 -static const Lights1 ttm_seg7_lights_07017338 = gdSPDefLights1( - 0x19, 0x19, 0x19, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07017350 - 0x07017368 -static const Lights1 ttm_seg7_lights_07017350 = gdSPDefLights1( - 0x1d, 0x1d, 0x1d, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x07017368 - 0x07017380 -static const Lights1 ttm_seg7_lights_07017368 = gdSPDefLights1( - 0x2a, 0x2a, 0x2a, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x07017380 - 0x07017398 -static const Lights1 ttm_seg7_lights_07017380 = gdSPDefLights1( - 0x2e, 0x2e, 0x2e, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07017398 - 0x070173B0 -static const Lights1 ttm_seg7_lights_07017398 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x070173B0 - 0x070173C8 -static const Lights1 ttm_seg7_lights_070173B0 = gdSPDefLights1( - 0x37, 0x37, 0x37, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x070173C8 - 0x070173E0 -static const Lights1 ttm_seg7_lights_070173C8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070173E0 - 0x070173F8 -static const Lights1 ttm_seg7_lights_070173E0 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x070173F8 - 0x07017410 -static const Lights1 ttm_seg7_lights_070173F8 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07017410 - 0x07017450 static const Vtx ttm_seg7_vertex_07017410[] = { @@ -1634,27 +1582,27 @@ static const Gfx ttm_seg7_dl_0701BEE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_070172D8.l, 1), - gsSPLight(&ttm_seg7_lights_070172D8.a, 2), + gsSPLightColor(LIGHT_1, 0x222222ff), + gsSPLightColor(LIGHT_2, 0x80808ff), gsSPVertex(ttm_seg7_vertex_07017410, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ttm_seg7_lights_070172F0.l, 1), - gsSPLight(&ttm_seg7_lights_070172F0.a, 2), + gsSPLightColor(LIGHT_1, 0x333333ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(ttm_seg7_vertex_07017450, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&ttm_seg7_lights_07017308.l, 1), - gsSPLight(&ttm_seg7_lights_07017308.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x111111ff), gsSPVertex(ttm_seg7_vertex_070174D0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_07017320.l, 1), - gsSPLight(&ttm_seg7_lights_07017320.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ttm_seg7_vertex_07017550, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_07017338.l, 1), - gsSPLight(&ttm_seg7_lights_07017338.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttm_seg7_vertex_070175D0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1666,12 +1614,12 @@ static const Gfx ttm_seg7_dl_0701C008[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07017350.l, 1), - gsSPLight(&ttm_seg7_lights_07017350.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x1d1d1dff), gsSPVertex(ttm_seg7_vertex_07017650, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ttm_seg7_lights_07017368.l, 1), - gsSPLight(&ttm_seg7_lights_07017368.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(ttm_seg7_vertex_07017690, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), @@ -1684,8 +1632,8 @@ static const Gfx ttm_seg7_dl_0701C008[] = { gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0), gsSP2Triangles(12, 9, 11, 0x0, 1, 13, 2, 0x0), gsSP1Triangle(13, 14, 2, 0x0), - gsSPLight(&ttm_seg7_lights_07017380.l, 1), - gsSPLight(&ttm_seg7_lights_07017380.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x2e2e2eff), gsSPVertex(ttm_seg7_vertex_07017870, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), @@ -1700,8 +1648,8 @@ static const Gfx ttm_seg7_dl_0701C008[] = { gsSPVertex(ttm_seg7_vertex_07017A60, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0), gsSP1Triangle( 5, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_07017398.l, 1), - gsSPLight(&ttm_seg7_lights_07017398.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ttm_seg7_vertex_07017AE0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 4, 7, 8, 0x0), @@ -1717,8 +1665,8 @@ static const Gfx ttm_seg7_dl_0701C008[] = { gsSPVertex(ttm_seg7_vertex_07017CC0, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), - gsSPLight(&ttm_seg7_lights_070173B0.l, 1), - gsSPLight(&ttm_seg7_lights_070173B0.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x373737ff), gsSPVertex(ttm_seg7_vertex_07017D60, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), @@ -1734,8 +1682,8 @@ static const Gfx ttm_seg7_dl_0701C008[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), gsSP1Triangle( 6, 8, 7, 0x0), - gsSPLight(&ttm_seg7_lights_070173C8.l, 1), - gsSPLight(&ttm_seg7_lights_070173C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_07017FC0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -1799,12 +1747,12 @@ static const Gfx ttm_seg7_dl_0701C688[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07017398.l, 1), - gsSPLight(&ttm_seg7_lights_07017398.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ttm_seg7_vertex_070187F0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ttm_seg7_lights_070173C8.l, 1), - gsSPLight(&ttm_seg7_lights_070173C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_07018830, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), @@ -1815,15 +1763,15 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07017308.l, 1), - gsSPLight(&ttm_seg7_lights_07017308.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x111111ff), gsSPVertex(ttm_seg7_vertex_07018870, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 13, 14, 0x0, 0, 15, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07017320.l, 1), - gsSPLight(&ttm_seg7_lights_07017320.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ttm_seg7_vertex_07018970, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1833,8 +1781,8 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP1Triangle( 0, 10, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07017338.l, 1), - gsSPLight(&ttm_seg7_lights_07017338.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttm_seg7_vertex_07018B10, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1847,8 +1795,8 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { gsSP1Triangle( 0, 2, 14, 0x0), gsSPVertex(ttm_seg7_vertex_07018CF0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07017350.l, 1), - gsSPLight(&ttm_seg7_lights_07017350.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x1d1d1dff), gsSPVertex(ttm_seg7_vertex_07018D30, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1858,8 +1806,8 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP1Triangle( 0, 10, 1, 0x0), - gsSPLight(&ttm_seg7_lights_070173E0.l, 1), - gsSPLight(&ttm_seg7_lights_070173E0.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(ttm_seg7_vertex_07018ED0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1965,12 +1913,12 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { gsSPVertex(ttm_seg7_vertex_0701A270, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), - gsSPLight(&ttm_seg7_lights_07017368.l, 1), - gsSPLight(&ttm_seg7_lights_07017368.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(ttm_seg7_vertex_0701A2F0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&ttm_seg7_lights_07017380.l, 1), - gsSPLight(&ttm_seg7_lights_07017380.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x2e2e2eff), gsSPVertex(ttm_seg7_vertex_0701A330, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 2, 4, 3, 0x0, 4, 5, 3, 0x0), @@ -2010,8 +1958,8 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), - gsSPLight(&ttm_seg7_lights_07017398.l, 1), - gsSPLight(&ttm_seg7_lights_07017398.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ttm_seg7_vertex_0701AA70, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 6, 0x0), @@ -2021,8 +1969,8 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { gsSPVertex(ttm_seg7_vertex_0701AB50, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_070173C8.l, 1), - gsSPLight(&ttm_seg7_lights_070173C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_0701ABD0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2134,8 +2082,8 @@ static const Gfx ttm_seg7_dl_0701C6F8[] = { // 0x0701D708 - 0x0701D798 static const Gfx ttm_seg7_dl_0701D708[] = { - gsSPLight(&ttm_seg7_lights_070173F8.l, 1), - gsSPLight(&ttm_seg7_lights_070173F8.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ttm_seg7_vertex_0701BE00, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 3, 0, 0x0, 4, 0, 5, 0x0), diff --git a/levels/ttm/areas/2/2/model.inc.c b/levels/ttm/areas/2/2/model.inc.c index f2f0d43e..45a82d8f 100644 --- a/levels/ttm/areas/2/2/model.inc.c +++ b/levels/ttm/areas/2/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0701D888 - 0x0701D8A0 -static const Lights1 ttm_seg7_lights_0701D888 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701D8A0 - 0x0701D9A0 static const Vtx ttm_seg7_vertex_0701D8A0[] = { @@ -57,8 +53,8 @@ static const Gfx ttm_seg7_dl_0701DAE0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0701D888.l, 1), - gsSPLight(&ttm_seg7_lights_0701D888.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_0701D8A0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 0, 2, 5, 0x0), diff --git a/levels/ttm/areas/3/1/model.inc.c b/levels/ttm/areas/3/1/model.inc.c index fe9e6b96..18c1a4c8 100644 --- a/levels/ttm/areas/3/1/model.inc.c +++ b/levels/ttm/areas/3/1/model.inc.c @@ -1,92 +1,32 @@ // 0x0701DC60 - 0x0701DC78 -static const Lights1 ttm_seg7_lights_0701DC60 = gdSPDefLights1( - 0x08, 0x08, 0x08, - 0x22, 0x22, 0x22, 0x28, 0x28, 0x28 -); // 0x0701DC78 - 0x0701DC90 -static const Lights1 ttm_seg7_lights_0701DC78 = gdSPDefLights1( - 0x0c, 0x0c, 0x0c, - 0x33, 0x33, 0x33, 0x28, 0x28, 0x28 -); // 0x0701DC90 - 0x0701DCA8 -static const Lights1 ttm_seg7_lights_0701DC90 = gdSPDefLights1( - 0x11, 0x11, 0x11, - 0x44, 0x44, 0x44, 0x28, 0x28, 0x28 -); // 0x0701DCA8 - 0x0701DCC0 -static const Lights1 ttm_seg7_lights_0701DCA8 = gdSPDefLights1( - 0x15, 0x15, 0x15, - 0x55, 0x55, 0x55, 0x28, 0x28, 0x28 -); // 0x0701DCC0 - 0x0701DCD8 -static const Lights1 ttm_seg7_lights_0701DCC0 = gdSPDefLights1( - 0x19, 0x19, 0x19, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x0701DCD8 - 0x0701DCF0 -static const Lights1 ttm_seg7_lights_0701DCD8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0701DCF0 - 0x0701DD08 -static const Lights1 ttm_seg7_lights_0701DCF0 = gdSPDefLights1( - 0x1d, 0x1d, 0x1d, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x0701DD08 - 0x0701DD20 -static const Lights1 ttm_seg7_lights_0701DD08 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x0701DD20 - 0x0701DD38 -static const Lights1 ttm_seg7_lights_0701DD20 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x0701DD38 - 0x0701DD50 -static const Lights1 ttm_seg7_lights_0701DD38 = gdSPDefLights1( - 0x2a, 0x2a, 0x2a, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x0701DD50 - 0x0701DD68 -static const Lights1 ttm_seg7_lights_0701DD50 = gdSPDefLights1( - 0x2e, 0x2e, 0x2e, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x0701DD68 - 0x0701DD80 -static const Lights1 ttm_seg7_lights_0701DD68 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x0701DD80 - 0x0701DD98 -static const Lights1 ttm_seg7_lights_0701DD80 = gdSPDefLights1( - 0x37, 0x37, 0x37, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x0701DD98 - 0x0701DDB0 -static const Lights1 ttm_seg7_lights_0701DD98 = gdSPDefLights1( - 0x3b, 0x3b, 0x3b, - 0xee, 0xee, 0xee, 0x28, 0x28, 0x28 -); // 0x0701DDB0 - 0x0701DDC8 -static const Lights1 ttm_seg7_lights_0701DDB0 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x0701DDC8 - 0x0701DE08 static const Vtx ttm_seg7_vertex_0701DDC8[] = { @@ -1777,32 +1717,32 @@ static const Gfx ttm_seg7_dl_07022F08[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0701DC60.l, 1), - gsSPLight(&ttm_seg7_lights_0701DC60.a, 2), + gsSPLightColor(LIGHT_1, 0x222222ff), + gsSPLightColor(LIGHT_2, 0x80808ff), gsSPVertex(ttm_seg7_vertex_0701DDC8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ttm_seg7_lights_0701DC78.l, 1), - gsSPLight(&ttm_seg7_lights_0701DC78.a, 2), + gsSPLightColor(LIGHT_1, 0x333333ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(ttm_seg7_vertex_0701DE08, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0701DC90.l, 1), - gsSPLight(&ttm_seg7_lights_0701DC90.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x111111ff), gsSPVertex(ttm_seg7_vertex_0701DE88, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCA8.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCA8.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ttm_seg7_vertex_0701DF08, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCC0.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCC0.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttm_seg7_vertex_0701DF88, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCD8.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_0701E008, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1826,8 +1766,8 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0701DCA8.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCA8.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ttm_seg7_vertex_0701E2E8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1846,14 +1786,14 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsSPVertex(ttm_seg7_vertex_0701E5E8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 1, 6, 2, 0x0, 7, 3, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCC0.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCC0.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttm_seg7_vertex_0701E668, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCF0.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCF0.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x1d1d1dff), gsSPVertex(ttm_seg7_vertex_0701E728, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1871,8 +1811,8 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsSP1Triangle(12, 14, 13, 0x0), gsSPVertex(ttm_seg7_vertex_0701EA08, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD08.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD08.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(ttm_seg7_vertex_0701EA48, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1880,14 +1820,14 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsSPVertex(ttm_seg7_vertex_0701EB28, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 1, 6, 2, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD20.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD20.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(ttm_seg7_vertex_0701EB98, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0), gsSP2Triangles( 3, 1, 4, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 8, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD38.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD38.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(ttm_seg7_vertex_0701EC38, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 8, 0x0), @@ -1903,8 +1843,8 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsSPVertex(ttm_seg7_vertex_0701EE18, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD50.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD50.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x2e2e2eff), gsSPVertex(ttm_seg7_vertex_0701EE98, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), @@ -1920,8 +1860,8 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsSPVertex(ttm_seg7_vertex_0701F088, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 5, 4, 6, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD68.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD68.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ttm_seg7_vertex_0701F0F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0), @@ -1984,8 +1924,8 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP1Triangle(10, 4, 6, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD80.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD80.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x373737ff), gsSPVertex(ttm_seg7_vertex_0701FCE8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -2050,8 +1990,8 @@ static const Gfx ttm_seg7_dl_07023108[] = { gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 7, 9, 0x0, 11, 12, 13, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCD8.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_07020908, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 4, 7, 8, 0x0), @@ -2161,8 +2101,8 @@ static const Gfx ttm_seg7_dl_07024178[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0701DC90.l, 1), - gsSPLight(&ttm_seg7_lights_0701DC90.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x111111ff), gsSPVertex(ttm_seg7_vertex_070219C8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -2173,23 +2113,23 @@ static const Gfx ttm_seg7_dl_07024178[] = { gsSP2Triangles( 6, 7, 4, 0x0, 8, 3, 5, 0x0), gsSP2Triangles( 9, 10, 11, 0x0, 10, 0, 2, 0x0), gsSP1Triangle(10, 2, 11, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCA8.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCA8.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ttm_seg7_vertex_07021B78, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCC0.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCC0.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttm_seg7_vertex_07021BF8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCF0.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCF0.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x1d1d1dff), gsSPVertex(ttm_seg7_vertex_07021C78, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD08.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD08.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(ttm_seg7_vertex_07021CF8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2209,29 +2149,29 @@ static const Gfx ttm_seg7_dl_07024178[] = { gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 8, 0x0), gsSP2Triangles(10, 0, 2, 0x0, 10, 2, 11, 0x0), gsSP1Triangle(12, 10, 11, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD20.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD20.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(ttm_seg7_vertex_07022098, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 3, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 8, 7, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(12, 14, 13, 0x0, 1, 15, 2, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD38.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD38.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(ttm_seg7_vertex_07022198, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 3, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 8, 7, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(12, 14, 13, 0x0, 1, 15, 2, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD50.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD50.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x2e2e2eff), gsSPVertex(ttm_seg7_vertex_07022298, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 8, 7, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 13, 14, 0x0, 0, 2, 15, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD68.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD68.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ttm_seg7_vertex_07022398, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2251,22 +2191,22 @@ static const Gfx ttm_seg7_dl_07024178[] = { gsSPVertex(ttm_seg7_vertex_07022678, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 3, 5, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD80.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD80.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x373737ff), gsSPVertex(ttm_seg7_vertex_070226F8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 14, 12, 0x0, 0, 15, 1, 0x0), - gsSPLight(&ttm_seg7_lights_0701DD98.l, 1), - gsSPLight(&ttm_seg7_lights_0701DD98.a, 2), + gsSPLightColor(LIGHT_1, 0xeeeeeeff), + gsSPLightColor(LIGHT_2, 0x3b3b3bff), gsSPVertex(ttm_seg7_vertex_070227F8, 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, 2, 15, 0x0), - gsSPLight(&ttm_seg7_lights_0701DCD8.l, 1), - gsSPLight(&ttm_seg7_lights_0701DCD8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_070228F8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -2298,8 +2238,8 @@ static const Gfx ttm_seg7_dl_07024708[] = { // 0x070247F0 - 0x070249A0 static const Gfx ttm_seg7_dl_070247F0[] = { - gsSPLight(&ttm_seg7_lights_0701DDB0.l, 1), - gsSPLight(&ttm_seg7_lights_0701DDB0.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ttm_seg7_vertex_07022AF8, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 6, 0x0), diff --git a/levels/ttm/areas/3/3/model.inc.c b/levels/ttm/areas/3/3/model.inc.c index aebf0499..b8cbe847 100644 --- a/levels/ttm/areas/3/3/model.inc.c +++ b/levels/ttm/areas/3/3/model.inc.c @@ -1,8 +1,4 @@ // 0x07024CA8 - 0x07024CC0 -static const Lights1 ttm_seg7_lights_07024CA8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07024CC0 - 0x07024DC0 static const Vtx ttm_seg7_vertex_07024CC0[] = { @@ -304,8 +300,8 @@ static const Gfx ttm_seg7_dl_07025B30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07024CA8.l, 1), - gsSPLight(&ttm_seg7_lights_07024CA8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_07024CC0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 1, 4, 3, 0x0, 5, 0, 6, 0x0), diff --git a/levels/ttm/areas/4/1/model.inc.c b/levels/ttm/areas/4/1/model.inc.c index f43e12b0..4ce16f7f 100644 --- a/levels/ttm/areas/4/1/model.inc.c +++ b/levels/ttm/areas/4/1/model.inc.c @@ -1,80 +1,28 @@ // 0x07025FF0 - 0x07026008 -static const Lights1 ttm_seg7_lights_07025FF0 = gdSPDefLights1( - 0x15, 0x15, 0x15, - 0x55, 0x55, 0x55, 0x28, 0x28, 0x28 -); // 0x07026008 - 0x07026020 -static const Lights1 ttm_seg7_lights_07026008 = gdSPDefLights1( - 0x19, 0x19, 0x19, - 0x66, 0x66, 0x66, 0x28, 0x28, 0x28 -); // 0x07026020 - 0x07026038 -static const Lights1 ttm_seg7_lights_07026020 = gdSPDefLights1( - 0x1d, 0x1d, 0x1d, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x07026038 - 0x07026050 -static const Lights1 ttm_seg7_lights_07026038 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x07026050 - 0x07026068 -static const Lights1 ttm_seg7_lights_07026050 = gdSPDefLights1( - 0x26, 0x26, 0x26, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07026068 - 0x07026080 -static const Lights1 ttm_seg7_lights_07026068 = gdSPDefLights1( - 0x2a, 0x2a, 0x2a, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x07026080 - 0x07026098 -static const Lights1 ttm_seg7_lights_07026080 = gdSPDefLights1( - 0x2e, 0x2e, 0x2e, - 0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28 -); // 0x07026098 - 0x070260B0 -static const Lights1 ttm_seg7_lights_07026098 = gdSPDefLights1( - 0x33, 0x33, 0x33, - 0xcc, 0xcc, 0xcc, 0x28, 0x28, 0x28 -); // 0x070260B0 - 0x070260C8 -static const Lights1 ttm_seg7_lights_070260B0 = gdSPDefLights1( - 0x37, 0x37, 0x37, - 0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28 -); // 0x070260C8 - 0x070260E0 -static const Lights1 ttm_seg7_lights_070260C8 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070260E0 - 0x070260F8 -static const Lights1 ttm_seg7_lights_070260E0 = gdSPDefLights1( - 0x11, 0x11, 0x11, - 0x44, 0x44, 0x44, 0x28, 0x28, 0x28 -); // 0x070260F8 - 0x07026110 -static const Lights1 ttm_seg7_lights_070260F8 = gdSPDefLights1( - 0x3b, 0x3b, 0x3b, - 0xee, 0xee, 0xee, 0x28, 0x28, 0x28 -); // 0x07026110 - 0x07026128 -static const Lights1 ttm_seg7_lights_07026110 = gdSPDefLights1( - 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07026128 - 0x07026228 static const Vtx ttm_seg7_vertex_07026128[] = { @@ -1090,8 +1038,8 @@ static const Gfx ttm_seg7_dl_070291B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900B800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07025FF0.l, 1), - gsSPLight(&ttm_seg7_lights_07025FF0.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ttm_seg7_vertex_07026128, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1110,14 +1058,14 @@ static const Gfx ttm_seg7_dl_070291B8[] = { gsSPVertex(ttm_seg7_vertex_07026428, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 1, 6, 2, 0x0, 7, 3, 5, 0x0), - gsSPLight(&ttm_seg7_lights_07026008.l, 1), - gsSPLight(&ttm_seg7_lights_07026008.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttm_seg7_vertex_070264A8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 0, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 9, 11, 10, 0x0), - gsSPLight(&ttm_seg7_lights_07026020.l, 1), - gsSPLight(&ttm_seg7_lights_07026020.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x1d1d1dff), gsSPVertex(ttm_seg7_vertex_07026568, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1133,8 +1081,8 @@ static const Gfx ttm_seg7_dl_070291B8[] = { gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0), gsSP1Triangle(14, 11, 13, 0x0), - gsSPLight(&ttm_seg7_lights_07026038.l, 1), - gsSPLight(&ttm_seg7_lights_07026038.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(ttm_seg7_vertex_07026848, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1142,19 +1090,19 @@ static const Gfx ttm_seg7_dl_070291B8[] = { gsSPVertex(ttm_seg7_vertex_07026928, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 1, 6, 2, 0x0), - gsSPLight(&ttm_seg7_lights_07026050.l, 1), - gsSPLight(&ttm_seg7_lights_07026050.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(ttm_seg7_vertex_07026998, 10, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0), gsSP2Triangles( 2, 1, 3, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 8, 0x0), - gsSPLight(&ttm_seg7_lights_07026068.l, 1), - gsSPLight(&ttm_seg7_lights_07026068.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(ttm_seg7_vertex_07026A38, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), - gsSPLight(&ttm_seg7_lights_07026080.l, 1), - gsSPLight(&ttm_seg7_lights_07026080.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x2e2e2eff), gsSPVertex(ttm_seg7_vertex_07026AB8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0), @@ -1176,8 +1124,8 @@ static const Gfx ttm_seg7_dl_070291B8[] = { gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0), gsSPVertex(ttm_seg7_vertex_07026E78, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07026098.l, 1), - gsSPLight(&ttm_seg7_lights_07026098.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ttm_seg7_vertex_07026EB8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1197,8 +1145,8 @@ static const Gfx ttm_seg7_dl_070291B8[] = { gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0), - gsSPLight(&ttm_seg7_lights_070260B0.l, 1), - gsSPLight(&ttm_seg7_lights_070260B0.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x373737ff), gsSPVertex(ttm_seg7_vertex_07027288, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1218,8 +1166,8 @@ static const Gfx ttm_seg7_dl_070291B8[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0), - gsSPLight(&ttm_seg7_lights_070260C8.l, 1), - gsSPLight(&ttm_seg7_lights_070260C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_07027668, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1256,8 +1204,8 @@ static const Gfx ttm_seg7_dl_070299D0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900A800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07026080.l, 1), - gsSPLight(&ttm_seg7_lights_07026080.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x2e2e2eff), gsSPVertex(ttm_seg7_vertex_07027BA8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -1268,8 +1216,8 @@ static const Gfx ttm_seg7_dl_07029A18[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09008800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_070260E0.l, 1), - gsSPLight(&ttm_seg7_lights_070260E0.a, 2), + gsSPLightColor(LIGHT_1, 0x444444ff), + gsSPLightColor(LIGHT_2, 0x111111ff), gsSPVertex(ttm_seg7_vertex_07027BE8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1283,20 +1231,20 @@ static const Gfx ttm_seg7_dl_07029A18[] = { gsSPVertex(ttm_seg7_vertex_07027DC8, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 0, 6, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07025FF0.l, 1), - gsSPLight(&ttm_seg7_lights_07025FF0.a, 2), + gsSPLightColor(LIGHT_1, 0x555555ff), + gsSPLightColor(LIGHT_2, 0x151515ff), gsSPVertex(ttm_seg7_vertex_07027E38, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0), - gsSPLight(&ttm_seg7_lights_07026008.l, 1), - gsSPLight(&ttm_seg7_lights_07026008.a, 2), + gsSPLightColor(LIGHT_1, 0x666666ff), + gsSPLightColor(LIGHT_2, 0x191919ff), gsSPVertex(ttm_seg7_vertex_07027EB8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 8, 10, 9, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 13, 14, 0x0, 0, 15, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07026020.l, 1), - gsSPLight(&ttm_seg7_lights_07026020.a, 2), + gsSPLightColor(LIGHT_1, 0x777777ff), + gsSPLightColor(LIGHT_2, 0x1d1d1dff), gsSPVertex(ttm_seg7_vertex_07027FB8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1307,8 +1255,8 @@ static const Gfx ttm_seg7_dl_07029A18[] = { gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 8, 0x0), gsSP2Triangles( 3, 5, 7, 0x0, 2, 8, 0, 0x0), gsSP1Triangle( 0, 9, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07026038.l, 1), - gsSPLight(&ttm_seg7_lights_07026038.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(ttm_seg7_vertex_07028148, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1331,8 +1279,8 @@ static const Gfx ttm_seg7_dl_07029A18[] = { gsSPVertex(ttm_seg7_vertex_07028508, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP1Triangle( 3, 6, 4, 0x0), - gsSPLight(&ttm_seg7_lights_07026050.l, 1), - gsSPLight(&ttm_seg7_lights_07026050.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x262626ff), gsSPVertex(ttm_seg7_vertex_07028578, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0), @@ -1342,22 +1290,22 @@ static const Gfx ttm_seg7_dl_07029A18[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), gsSP1Triangle( 0, 10, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07026068.l, 1), - gsSPLight(&ttm_seg7_lights_07026068.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(ttm_seg7_vertex_07028718, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 4, 3, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 8, 7, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(12, 14, 13, 0x0, 1, 15, 2, 0x0), - gsSPLight(&ttm_seg7_lights_07026080.l, 1), - gsSPLight(&ttm_seg7_lights_07026080.a, 2), + gsSPLightColor(LIGHT_1, 0xbbbbbbff), + gsSPLightColor(LIGHT_2, 0x2e2e2eff), gsSPVertex(ttm_seg7_vertex_07028818, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles(10, 8, 7, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 14, 12, 0x0, 0, 15, 1, 0x0), - gsSPLight(&ttm_seg7_lights_07026098.l, 1), - gsSPLight(&ttm_seg7_lights_07026098.a, 2), + gsSPLightColor(LIGHT_1, 0xccccccff), + gsSPLightColor(LIGHT_2, 0x333333ff), gsSPVertex(ttm_seg7_vertex_07028918, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -1377,22 +1325,22 @@ static const Gfx ttm_seg7_dl_07029A18[] = { gsSPVertex(ttm_seg7_vertex_07028BF8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 7, 0x0, 4, 7, 5, 0x0), - gsSPLight(&ttm_seg7_lights_070260B0.l, 1), - gsSPLight(&ttm_seg7_lights_070260B0.a, 2), + gsSPLightColor(LIGHT_1, 0xddddddff), + gsSPLightColor(LIGHT_2, 0x373737ff), gsSPVertex(ttm_seg7_vertex_07028C78, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0), gsSP2Triangles(11, 14, 12, 0x0, 0, 2, 15, 0x0), - gsSPLight(&ttm_seg7_lights_070260F8.l, 1), - gsSPLight(&ttm_seg7_lights_070260F8.a, 2), + gsSPLightColor(LIGHT_1, 0xeeeeeeff), + gsSPLightColor(LIGHT_2, 0x3b3b3bff), gsSPVertex(ttm_seg7_vertex_07028D78, 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, 14, 12, 0x0, 0, 15, 1, 0x0), - gsSPLight(&ttm_seg7_lights_070260C8.l, 1), - gsSPLight(&ttm_seg7_lights_070260C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_07028E78, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0), gsSP2Triangles( 1, 4, 2, 0x0, 2, 5, 6, 0x0), @@ -1408,8 +1356,8 @@ static const Gfx ttm_seg7_dl_07029A18[] = { // 0x0702A0D8 - 0x0702A1B8 static const Gfx ttm_seg7_dl_0702A0D8[] = { - gsSPLight(&ttm_seg7_lights_07026110.l, 1), - gsSPLight(&ttm_seg7_lights_07026110.a, 2), + gsSPLightColor(LIGHT_1, 0xff), + gsSPLightColor(LIGHT_2, 0xff), gsSPVertex(ttm_seg7_vertex_07029028, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 6, 7, 0x0, 5, 7, 3, 0x0), diff --git a/levels/ttm/areas/4/2/model.inc.c b/levels/ttm/areas/4/2/model.inc.c index c992a01e..71ae6b84 100644 --- a/levels/ttm/areas/4/2/model.inc.c +++ b/levels/ttm/areas/4/2/model.inc.c @@ -1,8 +1,4 @@ // 0x0702A2A0 - 0x0702A2B8 -static const Lights1 ttm_seg7_lights_0702A2A0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0702A2B8 - 0x0702A3A8 static const Vtx ttm_seg7_vertex_0702A2B8[] = { @@ -101,8 +97,8 @@ static const Gfx ttm_seg7_dl_0702A738[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_0702A2A0.l, 1), - gsSPLight(&ttm_seg7_lights_0702A2A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(ttm_seg7_vertex_0702A2B8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/ttm/rolling_log/model.inc.c b/levels/ttm/rolling_log/model.inc.c index 3d9e313e..ae787989 100644 --- a/levels/ttm/rolling_log/model.inc.c +++ b/levels/ttm/rolling_log/model.inc.c @@ -1,8 +1,4 @@ // 0x07011DE8 - 0x07011E00 -static const Lights1 ttm_seg7_lights_07011DE8 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011E00 - 0x07011F00 static const Vtx ttm_seg7_vertex_07011E00[] = { @@ -75,8 +71,8 @@ static const Gfx ttm_seg7_dl_07012120[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07002000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07011DE8.l, 1), - gsSPLight(&ttm_seg7_lights_07011DE8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07011E00, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 7, 8, 0x0), diff --git a/levels/ttm/slide_exit_podium/model.inc.c b/levels/ttm/slide_exit_podium/model.inc.c index 0ed6e4f0..247ace2e 100644 --- a/levels/ttm/slide_exit_podium/model.inc.c +++ b/levels/ttm/slide_exit_podium/model.inc.c @@ -1,20 +1,8 @@ // 0x0702ACE8 - 0x0702AD00 -static const Lights1 ttm_seg7_lights_0702ACE8 = gdSPDefLights1( - 0x0c, 0x0c, 0x0c, - 0x33, 0x33, 0x33, 0x28, 0x28, 0x28 -); // 0x0702AD00 - 0x0702AD18 -static const Lights1 ttm_seg7_lights_0702AD00 = gdSPDefLights1( - 0x1d, 0x1d, 0x1d, - 0x77, 0x77, 0x77, 0x28, 0x28, 0x28 -); // 0x0702AD18 - 0x0702AD30 -static const Lights1 ttm_seg7_lights_0702AD18 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0702AD30 - 0x0702B530 ALIGNED8 static const Texture ttm_seg7_texture_0702AD30[] = { @@ -124,19 +112,19 @@ 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)), - gsSPLight(&ttm_seg7_lights_0702ACE8.l, 1), - gsSPLight(&ttm_seg7_lights_0702ACE8.a, 2), + gsSPLightColor(LIGHT_1, 0x333333ff), + gsSPLightColor(LIGHT_2, 0xc0c0cff), gsSPVertex(ttm_seg7_vertex_0702B530, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), - gsSPLight(&ttm_seg7_lights_0702AD00.l, 1), - gsSPLight(&ttm_seg7_lights_0702AD00.a, 2), + 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), - gsSPLight(&ttm_seg7_lights_0702AD18.l, 1), - gsSPLight(&ttm_seg7_lights_0702AD18.a, 2), + 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), diff --git a/levels/ttm/star_cage/1.inc.c b/levels/ttm/star_cage/1.inc.c index 10a99009..ad432be7 100644 --- a/levels/ttm/star_cage/1.inc.c +++ b/levels/ttm/star_cage/1.inc.c @@ -1,14 +1,6 @@ // 0x07012F78 - 0x07012F90 -static const Lights1 ttm_seg7_lights_07012F78 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xfe, 0xfe, 0xfe, 0x28, 0x28, 0x28 -); // 0x07012F90 - 0x07012FA8 -static const Lights1 ttm_seg7_lights_07012F90 = gdSPDefLights1( - 0x7f, 0x7f, 0x7f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07012FA8 - 0x07013028 static const Vtx ttm_seg7_vertex_07012FA8[] = { @@ -89,13 +81,13 @@ static const Gfx ttm_seg7_dl_07013308[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&ttm_seg7_lights_07012F78.l, 1), - gsSPLight(&ttm_seg7_lights_07012F78.a, 2), + gsSPLightColor(LIGHT_1, 0xfefefeff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07012FA8, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), - gsSPLight(&ttm_seg7_lights_07012F90.l, 1), - gsSPLight(&ttm_seg7_lights_07012F90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x7f7f7fff), gsSPVertex(ttm_seg7_vertex_07013028, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0), diff --git a/levels/vcutm/areas/1/1/model.inc.c b/levels/vcutm/areas/1/1/model.inc.c index 14c036ed..02595c3e 100644 --- a/levels/vcutm/areas/1/1/model.inc.c +++ b/levels/vcutm/areas/1/1/model.inc.c @@ -1,20 +1,8 @@ // 0x07003000 - 0x07003018 -static const Lights1 vcutm_seg7_lights_07003000 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07003018 - 0x07003030 -static const Lights1 vcutm_seg7_lights_07003018 = gdSPDefLights1( - 0x32, 0x3f, 0x37, - 0xc8, 0xff, 0xdc, 0x28, 0x28, 0x28 -); // 0x07003030 - 0x07003048 -static const Lights1 vcutm_seg7_lights_07003030 = gdSPDefLights1( - 0x2a, 0x2a, 0x2a, - 0xaa, 0xaa, 0xaa, 0x28, 0x28, 0x28 -); // 0x07003048 - 0x07003128 static const Vtx vcutm_seg7_vertex_07003048[] = { @@ -1241,8 +1229,8 @@ static const Gfx vcutm_seg7_dl_07006C48[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_0900B000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 16 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&vcutm_seg7_lights_07003000.l, 1), - gsSPLight(&vcutm_seg7_lights_07003000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vcutm_seg7_vertex_07003048, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 0, 4, 5, 0x0), @@ -1400,8 +1388,8 @@ static const Gfx vcutm_seg7_dl_070074A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&vcutm_seg7_lights_07003018.l, 1), - gsSPLight(&vcutm_seg7_lights_07003018.a, 2), + gsSPLightColor(LIGHT_1, 0xc8ffdcff), + gsSPLightColor(LIGHT_2, 0x323f37ff), gsSPVertex(vcutm_seg7_vertex_07004FB8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1412,8 +1400,8 @@ static const Gfx vcutm_seg7_dl_070074A0[] = { gsSP2Triangles( 6, 7, 8, 0x0, 7, 9, 8, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 11, 13, 12, 0x0), gsSP1Triangle(14, 0, 2, 0x0), - gsSPLight(&vcutm_seg7_lights_07003000.l, 1), - gsSPLight(&vcutm_seg7_lights_07003000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vcutm_seg7_vertex_07005198, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1442,8 +1430,8 @@ static const Gfx vcutm_seg7_dl_07007660[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&vcutm_seg7_lights_07003030.l, 1), - gsSPLight(&vcutm_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(vcutm_seg7_vertex_07005558, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -1454,8 +1442,8 @@ static const Gfx vcutm_seg7_dl_07007660[] = { gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0), gsSP1Triangle( 0, 2, 14, 0x0), - gsSPLight(&vcutm_seg7_lights_07003000.l, 1), - gsSPLight(&vcutm_seg7_lights_07003000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vcutm_seg7_vertex_07005738, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0), gsSP2Triangles( 4, 3, 5, 0x0, 3, 6, 5, 0x0), @@ -1503,15 +1491,15 @@ static const Gfx vcutm_seg7_dl_07007940[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, vcutm_seg7_texture_07002800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&vcutm_seg7_lights_07003030.l, 1), - gsSPLight(&vcutm_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(vcutm_seg7_vertex_07005D18, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 9, 10, 0x0, 4, 11, 5, 0x0), gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0), - gsSPLight(&vcutm_seg7_lights_07003000.l, 1), - gsSPLight(&vcutm_seg7_lights_07003000.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vcutm_seg7_vertex_07005E18, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), @@ -1611,8 +1599,8 @@ static const Gfx vcutm_seg7_dl_07007D80[] = { // 0x07007E00 - 0x07007E88 static const Gfx vcutm_seg7_dl_07007E00[] = { - gsSPLight(&vcutm_seg7_lights_07003030.l, 1), - gsSPLight(&vcutm_seg7_lights_07003030.a, 2), + gsSPLightColor(LIGHT_1, 0xaaaaaaff), + gsSPLightColor(LIGHT_2, 0x2a2a2aff), gsSPVertex(vcutm_seg7_vertex_07006AD8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/vcutm/areas/1/2/model.inc.c b/levels/vcutm/areas/1/2/model.inc.c index a5f2b857..9e893807 100644 --- a/levels/vcutm/areas/1/2/model.inc.c +++ b/levels/vcutm/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07007F90 - 0x07007FA8 -static const Lights1 vcutm_seg7_lights_07007F90 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07007FA8 - 0x07008068 static const Vtx vcutm_seg7_vertex_07007FA8[] = { @@ -25,8 +21,8 @@ static const Gfx vcutm_seg7_dl_07008068[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, vcutm_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&vcutm_seg7_lights_07007F90.l, 1), - gsSPLight(&vcutm_seg7_lights_07007F90.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vcutm_seg7_vertex_07007FA8, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/vcutm/seesaw/model.inc.c b/levels/vcutm/seesaw/model.inc.c index c7256672..b881bded 100644 --- a/levels/vcutm/seesaw/model.inc.c +++ b/levels/vcutm/seesaw/model.inc.c @@ -1,14 +1,6 @@ // 0x07009458 - 0x07009470 -static const Lights1 vcutm_seg7_lights_07009458 = gdSPDefLights1( - 0x22, 0x22, 0x22, - 0x88, 0x88, 0x88, 0x28, 0x28, 0x28 -); // 0x07009470 - 0x07009488 -static const Lights1 vcutm_seg7_lights_07009470 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009488 - 0x07009578 static const Vtx vcutm_seg7_vertex_07009488[] = { @@ -53,8 +45,8 @@ static const Gfx vcutm_seg7_dl_07009628[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, vcutm_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&vcutm_seg7_lights_07009458.l, 1), - gsSPLight(&vcutm_seg7_lights_07009458.a, 2), + gsSPLightColor(LIGHT_1, 0x888888ff), + gsSPLightColor(LIGHT_2, 0x222222ff), gsSPVertex(vcutm_seg7_vertex_07009488, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -63,8 +55,8 @@ static const Gfx vcutm_seg7_dl_07009628[] = { gsSPVertex(vcutm_seg7_vertex_07009578, 7, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP1Triangle( 4, 5, 6, 0x0), - gsSPLight(&vcutm_seg7_lights_07009470.l, 1), - gsSPLight(&vcutm_seg7_lights_07009470.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(vcutm_seg7_vertex_070095E8, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/wdw/areas/1/1/model.inc.c b/levels/wdw/areas/1/1/model.inc.c index 2093d096..21a87608 100644 --- a/levels/wdw/areas/1/1/model.inc.c +++ b/levels/wdw/areas/1/1/model.inc.c @@ -1,14 +1,6 @@ // 0x07002800 - 0x07002818 -static const Lights1 wdw_seg7_lights_07002800 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002818 - 0x07002830 -static const Lights1 wdw_seg7_lights_07002818 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x64, 0x64, 0x64, 0x28, 0x28, 0x28 -); // 0x07002830 - 0x07002920 static const Vtx wdw_seg7_vertex_07002830[] = { @@ -1842,8 +1834,8 @@ static const Gfx wdw_seg7_dl_07008160[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07002800.l, 1), - gsSPLight(&wdw_seg7_lights_07002800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07002830, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -1910,8 +1902,8 @@ static const Gfx wdw_seg7_dl_07008160[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0), - gsSPLight(&wdw_seg7_lights_07002818.l, 1), - gsSPLight(&wdw_seg7_lights_07002818.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(wdw_seg7_vertex_07003630, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -1929,8 +1921,8 @@ static const Gfx wdw_seg7_dl_07008598[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07002800.l, 1), - gsSPLight(&wdw_seg7_lights_07002800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_070037D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -1962,8 +1954,8 @@ static const Gfx wdw_seg7_dl_07008598[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 3, 7, 6, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0), - gsSPLight(&wdw_seg7_lights_07002818.l, 1), - gsSPLight(&wdw_seg7_lights_07002818.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(wdw_seg7_vertex_07003D70, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), @@ -1976,8 +1968,8 @@ static const Gfx wdw_seg7_dl_070087B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09009000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07002800.l, 1), - gsSPLight(&wdw_seg7_lights_07002800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07003E30, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2038,8 +2030,8 @@ static const Gfx wdw_seg7_dl_07008910[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 3, 7, 0, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), - gsSPLight(&wdw_seg7_lights_07002818.l, 1), - gsSPLight(&wdw_seg7_lights_07002818.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(wdw_seg7_vertex_070047D0, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2053,8 +2045,8 @@ static const Gfx wdw_seg7_dl_07008B00[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07002800.l, 1), - gsSPLight(&wdw_seg7_lights_07002800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_070048D0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -2393,8 +2385,8 @@ static const Gfx wdw_seg7_dl_070099B0[] = { gsSP1Triangle(13, 14, 15, 0x0), gsSPVertex(wdw_seg7_vertex_070080F0, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), - gsSPLight(&wdw_seg7_lights_07002818.l, 1), - gsSPLight(&wdw_seg7_lights_07002818.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(wdw_seg7_vertex_07008120, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/wdw/areas/1/2/model.inc.c b/levels/wdw/areas/1/2/model.inc.c index 2e58c036..e07b1bb2 100644 --- a/levels/wdw/areas/1/2/model.inc.c +++ b/levels/wdw/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x07009B78 - 0x07009B90 -static const Lights1 wdw_seg7_lights_07009B78 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009B90 - 0x07009C70 static const Vtx wdw_seg7_vertex_07009B90[] = { @@ -95,8 +91,8 @@ static const Gfx wdw_seg7_dl_07009FB0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07009B78.l, 1), - gsSPLight(&wdw_seg7_lights_07009B78.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07009B90, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/wdw/areas/2/1/model.inc.c b/levels/wdw/areas/2/1/model.inc.c index a9d53385..25fd2998 100644 --- a/levels/wdw/areas/2/1/model.inc.c +++ b/levels/wdw/areas/2/1/model.inc.c @@ -1,26 +1,10 @@ // 0x0700A1B0 - 0x0700A1C8 -static const Lights1 wdw_seg7_lights_0700A1B0 = gdSPDefLights1( - 0x99, 0x99, 0x82, - 0xff, 0xff, 0xd9, 0x28, 0x28, 0x28 -); // 0x0700A1C8 - 0x0700A1E0 -static const Lights1 wdw_seg7_lights_0700A1C8 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A1E0 - 0x0700A1F8 -static const Lights1 wdw_seg7_lights_0700A1E0 = gdSPDefLights1( - 0x3c, 0x3c, 0x3c, - 0x64, 0x64, 0x64, 0x28, 0x28, 0x28 -); // 0x0700A1F8 - 0x0700A210 -static const Lights1 wdw_seg7_lights_0700A1F8 = gdSPDefLights1( - 0x7b, 0x0d, 0x1f, - 0xce, 0x16, 0x35, 0x28, 0x28, 0x28 -); // 0x0700A210 - 0x0700A270 static const Vtx wdw_seg7_vertex_0700A210[] = { @@ -1984,13 +1968,13 @@ static const Gfx wdw_seg7_dl_07010120[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_0700A1B0.l, 1), - gsSPLight(&wdw_seg7_lights_0700A1B0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffd9ff), + gsSPLightColor(LIGHT_2, 0x999982ff), gsSPVertex(wdw_seg7_vertex_0700A210, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 4, 1, 0x0, 0, 2, 5, 0x0), - gsSPLight(&wdw_seg7_lights_0700A1C8.l, 1), - gsSPLight(&wdw_seg7_lights_0700A1C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_0700A270, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), @@ -2055,8 +2039,8 @@ static const Gfx wdw_seg7_dl_07010120[] = { gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0), gsSPVertex(wdw_seg7_vertex_0700ACD0, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&wdw_seg7_lights_0700A1E0.l, 1), - gsSPLight(&wdw_seg7_lights_0700A1E0.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(wdw_seg7_vertex_0700AD10, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2075,8 +2059,8 @@ static const Gfx wdw_seg7_dl_07010578[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wdw_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_0700A1F8.l, 1), - gsSPLight(&wdw_seg7_lights_0700A1F8.a, 2), + gsSPLightColor(LIGHT_1, 0xce1635ff), + gsSPLightColor(LIGHT_2, 0x7b0d1fff), gsSPVertex(wdw_seg7_vertex_0700AED0, 14, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -2086,8 +2070,8 @@ static const Gfx wdw_seg7_dl_07010578[] = { gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0), gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0), - gsSPLight(&wdw_seg7_lights_0700A1C8.l, 1), - gsSPLight(&wdw_seg7_lights_0700A1C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_0700B0B0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -2341,8 +2325,8 @@ static const Gfx wdw_seg7_dl_07010EA0[] = { gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0), gsSP1Triangle( 0, 2, 10, 0x0), - gsSPLight(&wdw_seg7_lights_0700A1E0.l, 1), - gsSPLight(&wdw_seg7_lights_0700A1E0.a, 2), + gsSPLightColor(LIGHT_1, 0x646464ff), + gsSPLightColor(LIGHT_2, 0x3c3c3cff), gsSPVertex(wdw_seg7_vertex_0700D770, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), @@ -2353,8 +2337,8 @@ static const Gfx wdw_seg7_dl_07011208[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_0700A1C8.l, 1), - gsSPLight(&wdw_seg7_lights_0700A1C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_0700D7B0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/wdw/areas/2/2/model.inc.c b/levels/wdw/areas/2/2/model.inc.c index 4d414a86..cf6f04f3 100644 --- a/levels/wdw/areas/2/2/model.inc.c +++ b/levels/wdw/areas/2/2/model.inc.c @@ -1,20 +1,8 @@ // 0x07011F58 - 0x07011F70 -static const Lights1 wdw_seg7_lights_07011F58 = gdSPDefLights1( - 0x54, 0x90, 0x88, - 0x8d, 0xf0, 0xe3, 0x28, 0x28, 0x28 -); // 0x07011F70 - 0x07011F88 -static const Lights1 wdw_seg7_lights_07011F70 = gdSPDefLights1( - 0x56, 0x57, 0x8e, - 0x90, 0x92, 0xee, 0x28, 0x28, 0x28 -); // 0x07011F88 - 0x07011FA0 -static const Lights1 wdw_seg7_lights_07011F88 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07011FA0 - 0x07012020 static const Vtx wdw_seg7_vertex_07011FA0[] = { @@ -61,20 +49,20 @@ static const Gfx wdw_seg7_dl_07012160[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07011F58.l, 1), - gsSPLight(&wdw_seg7_lights_07011F58.a, 2), + gsSPLightColor(LIGHT_1, 0x8df0e3ff), + gsSPLightColor(LIGHT_2, 0x549088ff), gsSPVertex(wdw_seg7_vertex_07011FA0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 3, 4, 0x0, 0, 5, 6, 0x0), gsSP2Triangles( 0, 6, 7, 0x0, 0, 4, 5, 0x0), - gsSPLight(&wdw_seg7_lights_07011F70.l, 1), - gsSPLight(&wdw_seg7_lights_07011F70.a, 2), + gsSPLightColor(LIGHT_1, 0x9092eeff), + gsSPLightColor(LIGHT_2, 0x56578eff), gsSPVertex(wdw_seg7_vertex_07012020, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0), gsSP2Triangles( 0, 4, 5, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 0, 5, 6, 0x0, 0, 6, 7, 0x0), - gsSPLight(&wdw_seg7_lights_07011F88.l, 1), - gsSPLight(&wdw_seg7_lights_07011F88.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_070120A0, 12, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 0, 7, 1, 0x0), diff --git a/levels/wdw/arrow_lift/model.inc.c b/levels/wdw/arrow_lift/model.inc.c index 4648ec31..7becfcb8 100644 --- a/levels/wdw/arrow_lift/model.inc.c +++ b/levels/wdw/arrow_lift/model.inc.c @@ -1,8 +1,4 @@ // 0x07012C08 - 0x07012C20 -static const Lights1 wdw_seg7_lights_07012C08 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07012C20 - 0x07012C60 static const Vtx wdw_seg7_vertex_07012C20[] = { @@ -47,8 +43,8 @@ static const Gfx wdw_seg7_dl_07012DC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wdw_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07012C08.l, 1), - gsSPLight(&wdw_seg7_lights_07012C08.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07012C20, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/wdw/express_elevator/model.inc.c b/levels/wdw/express_elevator/model.inc.c index 0e886fd8..6a0d35ef 100644 --- a/levels/wdw/express_elevator/model.inc.c +++ b/levels/wdw/express_elevator/model.inc.c @@ -1,8 +1,4 @@ // 0x07013500 - 0x07013518 -static const Lights1 wdw_seg7_lights_07013500 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07013518 - 0x07013618 static const Vtx wdw_seg7_vertex_07013518[] = { @@ -105,8 +101,8 @@ static const Gfx wdw_seg7_dl_070139D8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07013500.l, 1), - gsSPLight(&wdw_seg7_lights_07013500.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07013518, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wdw/hidden_platform/model.inc.c b/levels/wdw/hidden_platform/model.inc.c index 3bd79d21..c2d8f364 100644 --- a/levels/wdw/hidden_platform/model.inc.c +++ b/levels/wdw/hidden_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07013238 - 0x07013250 -static const Lights1 wdw_seg7_lights_07013238 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07013250 - 0x07013340 static const Vtx wdw_seg7_vertex_07013250[] = { @@ -43,8 +39,8 @@ static const Gfx wdw_seg7_dl_070133F0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07013238.l, 1), - gsSPLight(&wdw_seg7_lights_07013238.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07013250, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wdw/rectangular_floating_platform/model.inc.c b/levels/wdw/rectangular_floating_platform/model.inc.c index fc0a2cfc..74d07d97 100644 --- a/levels/wdw/rectangular_floating_platform/model.inc.c +++ b/levels/wdw/rectangular_floating_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07013BE8 - 0x07013C00 -static const Lights1 wdw_seg7_lights_07013BE8 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07013C00 - 0x07013D00 static const Vtx wdw_seg7_vertex_07013C00[] = { @@ -41,8 +37,8 @@ static const Gfx wdw_seg7_dl_07013D80[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wdw_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07013BE8.l, 1), - gsSPLight(&wdw_seg7_lights_07013BE8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07013C00, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/wdw/rotating_platform/model.inc.c b/levels/wdw/rotating_platform/model.inc.c index b97a6602..2ca99b6d 100644 --- a/levels/wdw/rotating_platform/model.inc.c +++ b/levels/wdw/rotating_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07013EB8 - 0x07013ED0 -static const Lights1 wdw_seg7_lights_07013EB8 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07013ED0 - 0x07013FC0 static const Vtx wdw_seg7_vertex_07013ED0[] = { @@ -41,8 +37,8 @@ static const Gfx wdw_seg7_dl_07014050[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07013EB8.l, 1), - gsSPLight(&wdw_seg7_lights_07013EB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07013ED0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 6, 7, 0x0), diff --git a/levels/wdw/square_floating_platform/model.inc.c b/levels/wdw/square_floating_platform/model.inc.c index f2c03063..27be035c 100644 --- a/levels/wdw/square_floating_platform/model.inc.c +++ b/levels/wdw/square_floating_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x07012938 - 0x07012950 -static const Lights1 wdw_seg7_lights_07012938 = gdSPDefLights1( - 0x99, 0x99, 0x99, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07012950 - 0x07012A50 static const Vtx wdw_seg7_vertex_07012950[] = { @@ -41,8 +37,8 @@ static const Gfx wdw_seg7_dl_07012AD0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wdw_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07012938.l, 1), - gsSPLight(&wdw_seg7_lights_07012938.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x999999ff), gsSPVertex(wdw_seg7_vertex_07012950, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/wdw/water_level_diamond/model.inc.c b/levels/wdw/water_level_diamond/model.inc.c index 8ecc4442..74dfc482 100644 --- a/levels/wdw/water_level_diamond/model.inc.c +++ b/levels/wdw/water_level_diamond/model.inc.c @@ -1,26 +1,10 @@ // 0x07012F18 - 0x07012F30 -static const Lights1 wdw_seg7_lights_07012F18 = gdSPDefLights1( - 0x99, 0x99, 0x00, - 0xff, 0xff, 0x00, 0x28, 0x28, 0x28 -); // 0x07012F30 - 0x07012F48 -static const Lights1 wdw_seg7_lights_07012F30 = gdSPDefLights1( - 0x00, 0x00, 0x99, - 0x00, 0x00, 0xff, 0x28, 0x28, 0x28 -); // 0x07012F48 - 0x07012F60 -static const Lights1 wdw_seg7_lights_07012F48 = gdSPDefLights1( - 0x00, 0x99, 0x00, - 0x00, 0xff, 0x00, 0x28, 0x28, 0x28 -); // 0x07012F60 - 0x07012F78 -static const Lights1 wdw_seg7_lights_07012F60 = gdSPDefLights1( - 0x99, 0x00, 0x00, - 0xff, 0x00, 0x00, 0x28, 0x28, 0x28 -); // 0x07012F78 - 0x07012FD8 static const Vtx wdw_seg7_vertex_07012F78[] = { @@ -67,20 +51,20 @@ static const Gfx wdw_seg7_dl_070130F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wdw_seg7_texture_07001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wdw_seg7_lights_07012F18.l, 1), - gsSPLight(&wdw_seg7_lights_07012F18.a, 2), + gsSPLightColor(LIGHT_1, 0xffff00ff), + gsSPLightColor(LIGHT_2, 0x999900ff), gsSPVertex(wdw_seg7_vertex_07012F78, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&wdw_seg7_lights_07012F30.l, 1), - gsSPLight(&wdw_seg7_lights_07012F30.a, 2), + gsSPLightColor(LIGHT_1, 0xffff), + gsSPLightColor(LIGHT_2, 0x99ff), gsSPVertex(wdw_seg7_vertex_07012FD8, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&wdw_seg7_lights_07012F48.l, 1), - gsSPLight(&wdw_seg7_lights_07012F48.a, 2), + gsSPLightColor(LIGHT_1, 0xff00ff), + gsSPLightColor(LIGHT_2, 0x9900ff), gsSPVertex(wdw_seg7_vertex_07013038, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), - gsSPLight(&wdw_seg7_lights_07012F60.l, 1), - gsSPLight(&wdw_seg7_lights_07012F60.a, 2), + gsSPLightColor(LIGHT_1, 0xff0000ff), + gsSPLightColor(LIGHT_2, 0x990000ff), gsSPVertex(wdw_seg7_vertex_07013098, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/1/model.inc.c b/levels/wf/areas/1/1/model.inc.c index 0d72b97b..e3461ec6 100644 --- a/levels/wf/areas/1/1/model.inc.c +++ b/levels/wf/areas/1/1/model.inc.c @@ -1,8 +1,4 @@ // 0x07002900 - 0x07002918 -static const Lights1 wf_seg7_lights_07002900 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07002918 - 0x07002A18 static const Vtx wf_seg7_vertex_07002918[] = { @@ -631,8 +627,8 @@ static const Gfx wf_seg7_dl_070046B8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07002900.l, 1), - gsSPLight(&wf_seg7_lights_07002900.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07002918, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/10/1.inc.c b/levels/wf/areas/1/10/1.inc.c index 5f34d8ea..71248011 100644 --- a/levels/wf/areas/1/10/1.inc.c +++ b/levels/wf/areas/1/10/1.inc.c @@ -1,8 +1,4 @@ // 0x07007590 - 0x070075A8 -static const Lights1 wf_seg7_lights_07007590 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070075A8 - 0x070076A8 static const Vtx wf_seg7_vertex_070075A8[] = { @@ -289,8 +285,8 @@ static const Gfx wf_seg7_dl_07008368[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wf_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07007590.l, 1), - gsSPLight(&wf_seg7_lights_07007590.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_070075A8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/10/2.inc.c b/levels/wf/areas/1/10/2.inc.c index 21e0a25f..7578150f 100644 --- a/levels/wf/areas/1/10/2.inc.c +++ b/levels/wf/areas/1/10/2.inc.c @@ -1,8 +1,4 @@ // 0x07008838 - 0x07008850 -static const Lights1 wf_seg7_lights_07008838 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07008850 - 0x07008950 static const Vtx wf_seg7_vertex_07008850[] = { @@ -125,8 +121,8 @@ static const Gfx wf_seg7_dl_07008DD0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wf_seg7_texture_07001800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07008838.l, 1), - gsSPLight(&wf_seg7_lights_07008838.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07008850, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/11/model.inc.c b/levels/wf/areas/1/11/model.inc.c index bf1433a8..7d7c63a7 100644 --- a/levels/wf/areas/1/11/model.inc.c +++ b/levels/wf/areas/1/11/model.inc.c @@ -1,8 +1,4 @@ // 0x07009070 - 0x07009088 -static const Lights1 wf_seg7_lights_07009070 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009088 - 0x070090C8 static const Vtx wf_seg7_vertex_07009088[] = { @@ -37,8 +33,8 @@ static const Gfx wf_seg7_dl_070091C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wf_seg7_texture_07000000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07009070.l, 1), - gsSPLight(&wf_seg7_lights_07009070.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07009088, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/12/1.inc.c b/levels/wf/areas/1/12/1.inc.c index 9cc7938d..f842056d 100644 --- a/levels/wf/areas/1/12/1.inc.c +++ b/levels/wf/areas/1/12/1.inc.c @@ -1,8 +1,4 @@ // 0x070092F0 - 0x07009308 -static const Lights1 wf_seg7_lights_070092F0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009308 - 0x070093F8 static const Vtx wf_seg7_vertex_07009308[] = { @@ -82,8 +78,8 @@ static const Gfx wf_seg7_dl_07009698[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_070092F0.l, 1), - gsSPLight(&wf_seg7_lights_070092F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07009308, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/wf/areas/1/12/2.inc.c b/levels/wf/areas/1/12/2.inc.c index a5ced5ed..ee8b5741 100644 --- a/levels/wf/areas/1/12/2.inc.c +++ b/levels/wf/areas/1/12/2.inc.c @@ -1,8 +1,4 @@ // 0x070097F0 - 0x07009808 -static const Lights1 wf_seg7_lights_070097F0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009808 - 0x07009848 static const Vtx wf_seg7_vertex_07009808[] = { @@ -17,8 +13,8 @@ static const Gfx wf_seg7_dl_07009848[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_070097F0.l, 1), - gsSPLight(&wf_seg7_lights_070097F0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07009808, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/13/model.inc.c b/levels/wf/areas/1/13/model.inc.c index 6a2e7c87..180f3e8e 100644 --- a/levels/wf/areas/1/13/model.inc.c +++ b/levels/wf/areas/1/13/model.inc.c @@ -1,8 +1,4 @@ // 0x07009900 - 0x07009918 -static const Lights1 wf_seg7_lights_07009900 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009918 - 0x07009958 static const Vtx wf_seg7_vertex_07009918[] = { @@ -81,8 +77,8 @@ static const Gfx wf_seg7_dl_07009C58[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07009900.l, 1), - gsSPLight(&wf_seg7_lights_07009900.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07009918, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/14/model.inc.c b/levels/wf/areas/1/14/model.inc.c index a773faeb..246b3c72 100644 --- a/levels/wf/areas/1/14/model.inc.c +++ b/levels/wf/areas/1/14/model.inc.c @@ -1,8 +1,4 @@ // 0x07009E30 - 0x07009E48 -static const Lights1 wf_seg7_lights_07009E30 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07009E48 - 0x07009F48 static const Vtx wf_seg7_vertex_07009E48[] = { @@ -59,8 +55,8 @@ static const Gfx wf_seg7_dl_0700A0A8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07009E30.l, 1), - gsSPLight(&wf_seg7_lights_07009E30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07009E48, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 3, 6, 7, 0x0), diff --git a/levels/wf/areas/1/15/1.inc.c b/levels/wf/areas/1/15/1.inc.c index 5c39a336..47934d88 100644 --- a/levels/wf/areas/1/15/1.inc.c +++ b/levels/wf/areas/1/15/1.inc.c @@ -1,8 +1,4 @@ // 0x0700A1E0 - 0x0700A1F8 -static const Lights1 wf_seg7_lights_0700A1E0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700A1F8 - 0x0700A2E8 static const Vtx wf_seg7_vertex_0700A1F8[] = { @@ -157,8 +153,8 @@ static const Gfx wf_seg7_dl_0700A8F8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700A1E0.l, 1), - gsSPLight(&wf_seg7_lights_0700A1E0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700A1F8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/15/2.inc.c b/levels/wf/areas/1/15/2.inc.c index 791de576..18a55f18 100644 --- a/levels/wf/areas/1/15/2.inc.c +++ b/levels/wf/areas/1/15/2.inc.c @@ -1,8 +1,4 @@ // 0x0700AC70 - 0x0700AC88 -static const Lights1 wf_seg7_lights_0700AC70 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700AC88 - 0x0700ACE8 static const Vtx wf_seg7_vertex_0700AC88[] = { @@ -39,8 +35,8 @@ static const Gfx wf_seg7_dl_0700ADE8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700AC70.l, 1), - gsSPLight(&wf_seg7_lights_0700AC70.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700AC88, 6, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 0, 2, 4, 0x0, 0, 5, 3, 0x0), diff --git a/levels/wf/areas/1/16/model.inc.c b/levels/wf/areas/1/16/model.inc.c index d544df98..3014abf2 100644 --- a/levels/wf/areas/1/16/model.inc.c +++ b/levels/wf/areas/1/16/model.inc.c @@ -1,8 +1,4 @@ // 0x0700B028 - 0x0700B040 -static const Lights1 wf_seg7_lights_0700B028 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700B040 - 0x0700B070 static const Vtx wf_seg7_vertex_0700B040[] = { @@ -162,8 +158,8 @@ static const Gfx wf_seg7_dl_0700B750[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700B028.l, 1), - gsSPLight(&wf_seg7_lights_0700B028.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700B040, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/17/model.inc.c b/levels/wf/areas/1/17/model.inc.c index 4ab4cac8..7cdcfc8b 100644 --- a/levels/wf/areas/1/17/model.inc.c +++ b/levels/wf/areas/1/17/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BB18 - 0x0700BB30 -static const Lights1 wf_seg7_lights_0700BB18 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BB30 - 0x0700BC20 static const Vtx wf_seg7_vertex_0700BB30[] = { @@ -73,8 +69,8 @@ static const Gfx wf_seg7_dl_0700BE30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700BB18.l, 1), - gsSPLight(&wf_seg7_lights_0700BB18.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700BB30, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/wf/areas/1/18/model.inc.c b/levels/wf/areas/1/18/model.inc.c index 4cf54bde..55c1a08f 100644 --- a/levels/wf/areas/1/18/model.inc.c +++ b/levels/wf/areas/1/18/model.inc.c @@ -1,8 +1,4 @@ // 0x0700BFE0 - 0x0700BFF8 -static const Lights1 wf_seg7_lights_0700BFE0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700BFF8 - 0x0700C0E8 static const Vtx wf_seg7_vertex_0700BFF8[] = { @@ -261,8 +257,8 @@ static const Gfx wf_seg7_dl_0700CC38[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700BFE0.l, 1), - gsSPLight(&wf_seg7_lights_0700BFE0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700BFF8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/19/model.inc.c b/levels/wf/areas/1/19/model.inc.c index d3371e7d..b3738758 100644 --- a/levels/wf/areas/1/19/model.inc.c +++ b/levels/wf/areas/1/19/model.inc.c @@ -1,8 +1,4 @@ // 0x0700D0A8 - 0x0700D0C0 -static const Lights1 wf_seg7_lights_0700D0A8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D0C0 - 0x0700D1B0 static const Vtx wf_seg7_vertex_0700D0C0[] = { @@ -43,8 +39,8 @@ static const Gfx wf_seg7_dl_0700D260[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700D0A8.l, 1), - gsSPLight(&wf_seg7_lights_0700D0A8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700D0C0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/2/model.inc.c b/levels/wf/areas/1/2/model.inc.c index 7ca0c7f9..eab1c03d 100644 --- a/levels/wf/areas/1/2/model.inc.c +++ b/levels/wf/areas/1/2/model.inc.c @@ -1,8 +1,4 @@ // 0x070051C8 - 0x070051E0 -static const Lights1 wf_seg7_lights_070051C8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070051E0 - 0x07005260 static const Vtx wf_seg7_vertex_070051E0[] = { @@ -21,8 +17,8 @@ static const Gfx wf_seg7_dl_07005260[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wf_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_070051C8.l, 1), - gsSPLight(&wf_seg7_lights_070051C8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_070051E0, 8, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/wf/areas/1/5/1.inc.c b/levels/wf/areas/1/5/1.inc.c index 57d8fccd..454128d7 100644 --- a/levels/wf/areas/1/5/1.inc.c +++ b/levels/wf/areas/1/5/1.inc.c @@ -1,8 +1,4 @@ // 0x070056C0 - 0x070056D8 -static const Lights1 wf_seg7_lights_070056C0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070056D8 - 0x070057C8 static const Vtx wf_seg7_vertex_070056D8[] = { @@ -119,8 +115,8 @@ static const Gfx wf_seg7_dl_07005C38[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09009800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_070056C0.l, 1), - gsSPLight(&wf_seg7_lights_070056C0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_070056D8, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/5/2.inc.c b/levels/wf/areas/1/5/2.inc.c index 853874b3..3aee9de9 100644 --- a/levels/wf/areas/1/5/2.inc.c +++ b/levels/wf/areas/1/5/2.inc.c @@ -1,8 +1,4 @@ // 0x07005E48 - 0x07005E60 -static const Lights1 wf_seg7_lights_07005E48 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005E60 - 0x07005EA0 static const Vtx wf_seg7_vertex_07005E60[] = { @@ -17,8 +13,8 @@ static const Gfx wf_seg7_dl_07005EA0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09009800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07005E48.l, 1), - gsSPLight(&wf_seg7_lights_07005E48.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07005E60, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/6/1.inc.c b/levels/wf/areas/1/6/1.inc.c index c94c56d7..5a4aaf35 100644 --- a/levels/wf/areas/1/6/1.inc.c +++ b/levels/wf/areas/1/6/1.inc.c @@ -1,8 +1,4 @@ // 0x07005F58 - 0x07005F70 -static const Lights1 wf_seg7_lights_07005F58 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07005F70 - 0x07006060 static const Vtx wf_seg7_vertex_07005F70[] = { @@ -96,8 +92,8 @@ static const Gfx wf_seg7_dl_070063A0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07005F58.l, 1), - gsSPLight(&wf_seg7_lights_07005F58.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07005F70, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/areas/1/6/2.inc.c b/levels/wf/areas/1/6/2.inc.c index 345689b8..e985a3e8 100644 --- a/levels/wf/areas/1/6/2.inc.c +++ b/levels/wf/areas/1/6/2.inc.c @@ -1,8 +1,4 @@ // 0x07006558 - 0x07006570 -static const Lights1 wf_seg7_lights_07006558 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07006570 - 0x070065B0 static const Vtx wf_seg7_vertex_07006570[] = { @@ -17,8 +13,8 @@ static const Gfx wf_seg7_dl_070065B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07006558.l, 1), - gsSPLight(&wf_seg7_lights_07006558.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07006570, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/7/model.inc.c b/levels/wf/areas/1/7/model.inc.c index 23349c1b..1d3f76ff 100644 --- a/levels/wf/areas/1/7/model.inc.c +++ b/levels/wf/areas/1/7/model.inc.c @@ -1,8 +1,4 @@ // 0x07006668 - 0x07006680 -static const Lights1 wf_seg7_lights_07006668 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07006680 - 0x070066C0 static const Vtx wf_seg7_vertex_07006680[] = { @@ -33,8 +29,8 @@ static const Gfx wf_seg7_dl_07006780[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07006668.l, 1), - gsSPLight(&wf_seg7_lights_07006668.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_07006680, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/areas/1/9/model.inc.c b/levels/wf/areas/1/9/model.inc.c index d4f9916f..e69151ab 100644 --- a/levels/wf/areas/1/9/model.inc.c +++ b/levels/wf/areas/1/9/model.inc.c @@ -1,8 +1,4 @@ // 0x07007298 - 0x070072B0 -static const Lights1 wf_seg7_lights_07007298 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x070072B0 - 0x070073A0 static const Vtx wf_seg7_vertex_070072B0[] = { @@ -47,8 +43,8 @@ static const Gfx wf_seg7_dl_07007450[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_07007298.l, 1), - gsSPLight(&wf_seg7_lights_07007298.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_070072B0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/beta_extending_platform/model.inc.c b/levels/wf/beta_extending_platform/model.inc.c index 5780e3ee..2a61fb62 100644 --- a/levels/wf/beta_extending_platform/model.inc.c +++ b/levels/wf/beta_extending_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x0700EBB8 - 0x0700EBD0 -static const Lights1 wf_seg7_lights_0700EBB8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700EBD0 - 0x0700ECC0 static const Vtx wf_seg7_vertex_0700EBD0[] = { @@ -39,8 +35,8 @@ static const Gfx wf_seg7_dl_0700ED30[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700EBB8.l, 1), - gsSPLight(&wf_seg7_lights_0700EBB8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700EBD0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/breakable_wall_left/model.inc.c b/levels/wf/breakable_wall_left/model.inc.c index df1b13de..66df6d85 100644 --- a/levels/wf/breakable_wall_left/model.inc.c +++ b/levels/wf/breakable_wall_left/model.inc.c @@ -1,8 +1,4 @@ // 0x0700F220 - 0x0700F238 -static const Lights1 wf_seg7_lights_0700F220 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F238 - 0x0700F268 static const Vtx wf_seg7_vertex_0700F238[] = { @@ -26,8 +22,8 @@ static const Gfx wf_seg7_dl_0700F2C8[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700F220.l, 1), - gsSPLight(&wf_seg7_lights_0700F220.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700F238, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/breakable_wall_right/model.inc.c b/levels/wf/breakable_wall_right/model.inc.c index 16b8a4d7..7b131263 100644 --- a/levels/wf/breakable_wall_right/model.inc.c +++ b/levels/wf/breakable_wall_right/model.inc.c @@ -1,8 +1,4 @@ // 0x0700F088 - 0x0700F0A0 -static const Lights1 wf_seg7_lights_0700F088 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F0A0 - 0x0700F0D0 static const Vtx wf_seg7_vertex_0700F0A0[] = { @@ -26,8 +22,8 @@ static const Gfx wf_seg7_dl_0700F130[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09001000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700F088.l, 1), - gsSPLight(&wf_seg7_lights_0700F088.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700F0A0, 3, 0), gsSP1Triangle( 0, 1, 2, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/extending_platform/model.inc.c b/levels/wf/extending_platform/model.inc.c index 0f129b32..38b116c8 100644 --- a/levels/wf/extending_platform/model.inc.c +++ b/levels/wf/extending_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x0700EE30 - 0x0700EE48 -static const Lights1 wf_seg7_lights_0700EE30 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700EE48 - 0x0700EF48 static const Vtx wf_seg7_vertex_0700EE48[] = { @@ -37,8 +33,8 @@ static const Gfx wf_seg7_dl_0700EF88[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700EE30.l, 1), - gsSPLight(&wf_seg7_lights_0700EE30.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700EE48, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), diff --git a/levels/wf/kickable_board/1.inc.c b/levels/wf/kickable_board/1.inc.c index 0d70cb85..0a9025b2 100644 --- a/levels/wf/kickable_board/1.inc.c +++ b/levels/wf/kickable_board/1.inc.c @@ -1,8 +1,4 @@ // 0x0700F3B8 - 0x0700F3D0 -static const Lights1 wf_seg7_lights_0700F3B8 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F3D0 - 0x0700F4C0 static const Vtx wf_seg7_vertex_0700F3D0[] = { @@ -43,8 +39,8 @@ static const Gfx wf_seg7_dl_0700F570[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700F3B8.l, 1), - gsSPLight(&wf_seg7_lights_0700F3B8.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700F3D0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/large_bomp/model.inc.c b/levels/wf/large_bomp/model.inc.c index 0762cbdb..032ac58f 100644 --- a/levels/wf/large_bomp/model.inc.c +++ b/levels/wf/large_bomp/model.inc.c @@ -1,8 +1,4 @@ // 0x0700DA68 - 0x0700DA80 -static const Lights1 wf_seg7_lights_0700DA68 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700DA80 - 0x0700DB70 static const Vtx wf_seg7_vertex_0700DA80[] = { @@ -67,8 +63,8 @@ static const Gfx wf_seg7_dl_0700DD20[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700DA68.l, 1), - gsSPLight(&wf_seg7_lights_0700DA68.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700DA80, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/wf/rotating_wooden_platform/1.inc.c b/levels/wf/rotating_wooden_platform/1.inc.c index 6eafd27a..31b4b348 100644 --- a/levels/wf/rotating_wooden_platform/1.inc.c +++ b/levels/wf/rotating_wooden_platform/1.inc.c @@ -1,8 +1,4 @@ // 0x0700E440 - 0x0700E458 -static const Lights1 wf_seg7_lights_0700E440 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700E458 - 0x0700E548 static const Vtx wf_seg7_vertex_0700E458[] = { @@ -57,8 +53,8 @@ static const Gfx wf_seg7_dl_0700E698[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700E440.l, 1), - gsSPLight(&wf_seg7_lights_0700E440.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700E458, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0), diff --git a/levels/wf/rotating_wooden_platform/2.inc.c b/levels/wf/rotating_wooden_platform/2.inc.c index 40009697..2cb4faf2 100644 --- a/levels/wf/rotating_wooden_platform/2.inc.c +++ b/levels/wf/rotating_wooden_platform/2.inc.c @@ -1,8 +1,4 @@ // 0x0700E7D0 - 0x0700E7E8 -static const Lights1 wf_seg7_lights_0700E7D0 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700E7E8 - 0x0700E8E8 static const Vtx wf_seg7_vertex_0700E7E8[] = { @@ -36,8 +32,8 @@ static const Gfx wf_seg7_dl_0700E918[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09006800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700E7D0.l, 1), - gsSPLight(&wf_seg7_lights_0700E7D0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700E7E8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), diff --git a/levels/wf/sliding_platform/model.inc.c b/levels/wf/sliding_platform/model.inc.c index d6f06de7..05132e86 100644 --- a/levels/wf/sliding_platform/model.inc.c +++ b/levels/wf/sliding_platform/model.inc.c @@ -1,8 +1,4 @@ // 0x0700EA28 - 0x0700EA40 -static const Lights1 wf_seg7_lights_0700EA28 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700EA40 - 0x0700EA80 static const Vtx wf_seg7_vertex_0700EA40[] = { @@ -25,8 +21,8 @@ static const Gfx wf_seg7_dl_0700EAC0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700EA28.l, 1), - gsSPLight(&wf_seg7_lights_0700EA28.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700EA40, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/small_bomp/1.inc.c b/levels/wf/small_bomp/1.inc.c index dd97bc10..421de3dc 100644 --- a/levels/wf/small_bomp/1.inc.c +++ b/levels/wf/small_bomp/1.inc.c @@ -1,8 +1,4 @@ // 0x0700D370 - 0x0700D388 -static const Lights1 wf_seg7_lights_0700D370 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D388 - 0x0700D488 static const Vtx wf_seg7_vertex_0700D388[] = { @@ -65,8 +61,8 @@ static const Gfx wf_seg7_dl_0700D608[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700D370.l, 1), - gsSPLight(&wf_seg7_lights_0700D370.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700D388, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/small_bomp/2.inc.c b/levels/wf/small_bomp/2.inc.c index 973d9b63..7f88d21c 100644 --- a/levels/wf/small_bomp/2.inc.c +++ b/levels/wf/small_bomp/2.inc.c @@ -1,8 +1,4 @@ // 0x0700D780 - 0x0700D798 -static const Lights1 wf_seg7_lights_0700D780 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700D798 - 0x0700D898 static const Vtx wf_seg7_vertex_0700D798[] = { @@ -47,8 +43,8 @@ static const Gfx wf_seg7_dl_0700D938[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700D780.l, 1), - gsSPLight(&wf_seg7_lights_0700D780.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700D798, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/tower_door/model.inc.c b/levels/wf/tower_door/model.inc.c index 74b4594e..1b1c319c 100644 --- a/levels/wf/tower_door/model.inc.c +++ b/levels/wf/tower_door/model.inc.c @@ -1,8 +1,4 @@ // 0x0700F758 - 0x0700F770 -static const Lights1 wf_seg7_lights_0700F758 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700F770 - 0x0700F7B0 static const Vtx wf_seg7_vertex_0700F770[] = { @@ -17,8 +13,8 @@ static const Gfx wf_seg7_dl_0700F7B0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700F758.l, 1), - gsSPLight(&wf_seg7_lights_0700F758.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700F770, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSPEndDisplayList(), diff --git a/levels/wf/tumbling_bridge_far/model.inc.c b/levels/wf/tumbling_bridge_far/model.inc.c index e79f3d58..5dec642c 100644 --- a/levels/wf/tumbling_bridge_far/model.inc.c +++ b/levels/wf/tumbling_bridge_far/model.inc.c @@ -1,8 +1,4 @@ // 0x0700E160 - 0x0700E178 -static const Lights1 wf_seg7_lights_0700E160 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700E178 - 0x0700E278 static const Vtx wf_seg7_vertex_0700E178[] = { @@ -44,8 +40,8 @@ static const Gfx wf_seg7_dl_0700E328[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700E160.l, 1), - gsSPLight(&wf_seg7_lights_0700E160.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700E178, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wf/tumbling_bridge_near/model.inc.c b/levels/wf/tumbling_bridge_near/model.inc.c index 581e4b89..9149aa97 100644 --- a/levels/wf/tumbling_bridge_near/model.inc.c +++ b/levels/wf/tumbling_bridge_near/model.inc.c @@ -1,8 +1,4 @@ // 0x0700DE98 - 0x0700DEB0 -static const Lights1 wf_seg7_lights_0700DE98 = gdSPDefLights1( - 0x66, 0x66, 0x66, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700DEB0 - 0x0700DFA0 static const Vtx wf_seg7_vertex_0700DEB0[] = { @@ -43,8 +39,8 @@ static const Gfx wf_seg7_dl_0700E050[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004000), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wf_seg7_lights_0700DE98.l, 1), - gsSPLight(&wf_seg7_lights_0700DE98.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x666666ff), gsSPVertex(wf_seg7_vertex_0700DEB0, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), diff --git a/levels/wmotr/areas/1/model.inc.c b/levels/wmotr/areas/1/model.inc.c index 7346c691..a6cc6110 100644 --- a/levels/wmotr/areas/1/model.inc.c +++ b/levels/wmotr/areas/1/model.inc.c @@ -1,14 +1,6 @@ // 0x07001800 - 0x07001818 -static const Lights1 wmotr_seg7_lights_07001800 = gdSPDefLights1( - 0xbf, 0xbf, 0xbf, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x07001818 - 0x07001830 -static const Lights1 wmotr_seg7_lights_07001818 = gdSPDefLights1( - 0x72, 0x72, 0x72, - 0x99, 0x99, 0x99, 0x28, 0x28, 0x28 -); // 0x07001830 - 0x07001920 static const Vtx wmotr_seg7_vertex_07001830[] = { @@ -2415,8 +2407,8 @@ static const Gfx wmotr_seg7_dl_07008EF0[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wmotr_seg7_texture_07001600), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 8 * 32 - 1, CALC_DXT(8, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wmotr_seg7_lights_07001800.l, 1), - gsSPLight(&wmotr_seg7_lights_07001800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0xbfbfbfff), gsSPVertex(wmotr_seg7_vertex_07001830, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -2468,8 +2460,8 @@ static const Gfx wmotr_seg7_dl_07009148[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wmotr_seg7_texture_07000800), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 16 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wmotr_seg7_lights_07001818.l, 1), - gsSPLight(&wmotr_seg7_lights_07001818.a, 2), + gsSPLightColor(LIGHT_1, 0x999999ff), + gsSPLightColor(LIGHT_2, 0x727272ff), gsSPVertex(wmotr_seg7_vertex_07002010, 15, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), @@ -2513,8 +2505,8 @@ static const Gfx wmotr_seg7_dl_070092A0[] = { gsSP1Triangle( 0, 14, 1, 0x0), gsSPVertex(wmotr_seg7_vertex_07002630, 4, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), - gsSPLight(&wmotr_seg7_lights_07001800.l, 1), - gsSPLight(&wmotr_seg7_lights_07001800.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0xbfbfbfff), gsSPVertex(wmotr_seg7_vertex_07002670, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0), @@ -3377,10 +3369,6 @@ const Gfx wmotr_seg7_dl_0700C1F8[] = { }; // 0x0700C2A0 - 0x0700C2B8 -static const Lights1 wmotr_seg7_lights_0700C2A0 = gdSPDefLights1( - 0x3f, 0x3f, 0x3f, - 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 -); // 0x0700C2B8 - 0x0700C3B8 static const Vtx wmotr_seg7_vertex_0700C2B8[] = { @@ -4008,8 +3996,8 @@ static const Gfx wmotr_seg7_dl_0700E188[] = { gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wmotr_seg7_texture_07000C00), gsDPLoadSync(), gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), - gsSPLight(&wmotr_seg7_lights_0700C2A0.l, 1), - gsSPLight(&wmotr_seg7_lights_0700C2A0.a, 2), + gsSPLightColor(LIGHT_1, 0xffffffff), + gsSPLightColor(LIGHT_2, 0x3f3f3fff), gsSPVertex(wmotr_seg7_vertex_0700C2B8, 16, 0), gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), gsSP2Triangles( 2, 4, 5, 0x0, 2, 5, 6, 0x0), diff --git a/src/engine/graph_node.h b/src/engine/graph_node.h index fb6c0ea5..0fff4613 100644 --- a/src/engine/graph_node.h +++ b/src/engine/graph_node.h @@ -400,6 +400,7 @@ extern struct GraphNodePerspective *gCurGraphNodeCamFrustum; extern struct GraphNodeCamera *gCurGraphNodeCamera; extern struct GraphNodeHeldObject *gCurGraphNodeHeldObject; extern u16 gAreaUpdateCounter; +extern Mat4 gCameraTransform; extern struct GraphNode *gCurRootGraphNode; extern struct GraphNode *gCurGraphNodeList[]; diff --git a/src/engine/math_util.c b/src/engine/math_util.c index c410e558..8f6cb6a8 100644 --- a/src/engine/math_util.c +++ b/src/engine/math_util.c @@ -547,52 +547,50 @@ void mtxf_billboard(Mat4 dest, Mat4 mtx, Vec3f position, Vec3f scale, s32 angle) register s32 i; register f32 sx = scale[0]; register f32 sy = scale[1]; - register f32 sz = ((f32 *) scale)[2]; - register f32 *temp2, *temp = (f32 *)dest; - for (i = 0; i < 16; i++) { - *temp = 0; - temp++; - } - if (angle == 0x0) { - // ((u32 *) dest)[0] = FLOAT_ONE; - dest[0][0] = sx; // [0][0] - dest[0][1] = 0; - dest[1][0] = 0; - // ((u32 *) dest)[5] = FLOAT_ONE; - dest[1][1] = sy; // [1][1] - } else { - dest[0][0] = (coss(angle) * sx); - dest[0][1] = (sins(angle) * sx); - dest[1][0] = (-dest[0][1] * sy); - dest[1][1] = ( dest[0][0] * sy); - } - // ((u32 *) dest)[10] = FLOAT_ONE; - // dest[2][2] = sz; // [2][2] - ((f32 *) dest)[10] = sz; // [2][2] - dest[2][3] = 0; - ((u32 *) dest)[15] = FLOAT_ONE; // [3][3] - - temp = (f32 *)dest; - temp2 = (f32 *)mtx; + register f32 sz = scale[2]; + Mat4* cameraMat = &gCameraTransform; for (i = 0; i < 3; i++) { - temp[12] = ((temp2[ 0] * position[0]) - + (temp2[ 4] * position[1]) - + (temp2[ 8] * position[2]) - + temp2[12]); - temp++; - temp2++; + for (int j = 0; j < 3; j++) { + dest[i][j] = (*cameraMat)[j][i]; + } + dest[i][3] = 0.0f; } + if (angle != 0x0) { + float m00 = dest[0][0]; + float m01 = dest[0][1]; + float m02 = dest[0][2]; + float m10 = dest[1][0]; + float m11 = dest[1][1]; + float m12 = dest[1][2]; + float cosa = coss(angle); + float sina = sins(angle); + dest[0][0] = cosa * m00 + sina * m10; + dest[0][1] = cosa * m01 + sina * m11; + dest[0][2] = cosa * m02 + sina * m12; + dest[1][0] = -sina * m00 + cosa * m10; + dest[1][1] = -sina * m01 + cosa * m11; + dest[1][2] = -sina * m02 + cosa * m12; + } + for (i = 0; i < 3; i++) { + dest[0][i] *= sx; + dest[1][i] *= sy; + dest[2][i] *= sz; + } + + // Translation = input translation + position + vec3f_copy(dest[3], position); + vec3f_add(dest[3], mtx[3]); + dest[3][3] = 1.0f; } /** * Mostly the same as 'mtxf_align_terrain_normal', but also applies a scale and multiplication. - * 'src' is the matrix to multiply from * 'upDir' is the terrain normal * 'pos' is the object's position in the world * 'scale' is the scale of the shadow * 'yaw' is the angle which it should face */ -void mtxf_shadow(Mat4 dest, Mat4 src, Vec3f upDir, Vec3f pos, Vec3f scale, s32 yaw) { +void mtxf_shadow(Mat4 dest, Vec3f upDir, Vec3f pos, Vec3f scale, s32 yaw) { Vec3f lateralDir; Vec3f leftDir; Vec3f forwardDir; @@ -602,15 +600,11 @@ void mtxf_shadow(Mat4 dest, Mat4 src, Vec3f upDir, Vec3f pos, Vec3f scale, s32 y vec3f_normalize(leftDir); vec3f_cross(forwardDir, leftDir, upDir); vec3f_normalize(forwardDir); - Vec3f entry; - vec3f_prod(entry, leftDir, scale); - linear_mtxf_mul_vec3f(src, dest[0], entry); - vec3f_prod(entry, upDir, scale); - linear_mtxf_mul_vec3f(src, dest[1], entry); - vec3f_prod(entry, forwardDir, scale); - linear_mtxf_mul_vec3f(src, dest[2], entry); - linear_mtxf_mul_vec3f(src, dest[3], pos); - vec3f_add(dest[3], src[3]); + + vec3f_prod(dest[0], leftDir, scale); + vec3f_prod(dest[1], upDir, scale); + vec3f_prod(dest[2], forwardDir, scale); + vec3f_copy(dest[3], pos); MTXF_END(dest); } @@ -782,39 +776,6 @@ void mtxf_rotate_xy(Mtx *mtx, s32 angle) { ((s16 *) mtx)[15] = 1; } -/** - * Extract a position given an object's transformation matrix and a camera matrix. - * This is used for determining the world position of the held object: since objMtx - * inherits the transformation from both the camera and Mario, it calculates this - * by taking the camera matrix and inverting its transformation by first rotating - * objMtx back from screen orientation to world orientation, and then subtracting - * the camera position. - */ -void get_pos_from_transform_mtx(Vec3f dest, Mat4 objMtx, register Mat4 camMtx) { - register s32 i; - register f32 *temp1 = (f32 *)dest; - register f32 *temp2 = (f32 *)camMtx; - f32 y[3]; - register f32 *x = y; - register f32 *temp3 = (f32 *)objMtx; - - for (i = 0; i < 3; i++) { - *x = (temp3[12] - temp2[12]); - temp2++; - temp3++; - x = (f32 *)(((u32)x) + 4); - } - temp2 -= 3; - for (i = 0; i < 3; i++) { - *temp1 = ((x[-3] * temp2[0]) - + (x[-2] * temp2[1]) - + (x[-1] * temp2[2])); - temp1++; - temp2 += 4; - } -} - - /** * Take the vector starting at 'from' pointed at 'to' an retrieve the length * of that vector, as well as the yaw and pitch angles. diff --git a/src/engine/math_util.h b/src/engine/math_util.h index 2c131d1a..2ff4587d 100644 --- a/src/engine/math_util.h +++ b/src/engine/math_util.h @@ -544,7 +544,7 @@ void mtxf_rotate_xyz_and_translate(Mat4 dest, Vec3f trans, Vec3s rot); void mtxf_rotate_zxy_and_translate_and_mul(Vec3s rot, Vec3f trans, Mat4 dest, Mat4 src); void mtxf_rotate_xyz_and_translate_and_mul(Vec3s rot, Vec3f trans, Mat4 dest, Mat4 src); void mtxf_billboard(Mat4 dest, Mat4 mtx, Vec3f position, Vec3f scale, s32 angle); -void mtxf_shadow(Mat4 dest, Mat4 src, Vec3f upDir, Vec3f pos, Vec3f scale, s32 yaw); +void mtxf_shadow(Mat4 dest, Vec3f upDir, Vec3f pos, Vec3f scale, s32 yaw); void mtxf_align_terrain_normal(Mat4 dest, Vec3f upDir, Vec3f pos, s32 yaw); void mtxf_align_terrain_triangle(Mat4 mtx, Vec3f pos, s32 yaw, f32 radius); void mtxf_mul(Mat4 dest, Mat4 a, Mat4 b); @@ -561,7 +561,6 @@ void mtxf_rotate_xy(Mtx *mtx, s32 angle); void linear_mtxf_mul_vec3f(Mat4 m, Vec3f dst, Vec3f v); void linear_mtxf_mul_vec3f_and_translate(Mat4 m, Vec3f dst, Vec3f v); void linear_mtxf_transpose_mul_vec3f(Mat4 m, Vec3f dst, Vec3f v); -void get_pos_from_transform_mtx(Vec3f dest, Mat4 objMtx, Mat4 camMtx); void vec2f_get_lateral_dist( Vec2f from, Vec2f to, f32 *lateralDist ); void vec3f_get_lateral_dist( Vec3f from, Vec3f to, f32 *lateralDist ); diff --git a/src/game/area.c b/src/game/area.c index ea53b1ca..c0a49ee5 100644 --- a/src/game/area.c +++ b/src/game/area.c @@ -433,9 +433,10 @@ void render_game(void) { gViewportOverride = NULL; gViewportClip = NULL; - + profiler_update(PROFILER_TIME_GFX); profiler_print_times(); + #if PUPPYPRINT_DEBUG puppyprint_render_profiler(); #endif diff --git a/src/game/behavior_actions.c b/src/game/behavior_actions.c index 1fd7468e..d2f80578 100644 --- a/src/game/behavior_actions.c +++ b/src/game/behavior_actions.c @@ -129,13 +129,11 @@ void spawn_mist_particles_variable(s32 count, s32 offsetY, f32 size) { // not sure what this is doing here. not in a behavior file. Gfx *geo_move_mario_part_from_parent(s32 callContext, UNUSED struct GraphNode *node, Mat4 mtx) { - Mat4 mtx2; if (callContext == GEO_CONTEXT_RENDER) { struct Object *obj = (struct Object *) gCurGraphNodeObject; if (obj == gMarioObject && obj->prevObj != NULL) { - create_transformation_from_matrices(mtx2, mtx, *gCurGraphNodeCamera->matrixPtr); - obj_update_pos_from_parent_transformation(mtx2, obj->prevObj); + obj_update_pos_from_parent_transformation(mtx, obj->prevObj); obj_set_gfx_pos_from_pos(obj->prevObj); } } diff --git a/src/game/behaviors/bowser.inc.c b/src/game/behaviors/bowser.inc.c index f559adea..e801768a 100644 --- a/src/game/behaviors/bowser.inc.c +++ b/src/game/behaviors/bowser.inc.c @@ -1716,11 +1716,9 @@ void bhv_bowser_init(void) { Gfx *geo_update_body_rot_from_parent(s32 callContext, UNUSED struct GraphNode *node, Mat4 mtx) { if (callContext == GEO_CONTEXT_RENDER) { - Mat4 mtx2; struct Object *obj = (struct Object *) gCurGraphNodeObject; if (obj->prevObj != NULL) { - create_transformation_from_matrices(mtx2, mtx, *gCurGraphNodeCamera->matrixPtr); - obj_update_pos_from_parent_transformation(mtx2, obj->prevObj); + obj_update_pos_from_parent_transformation(mtx, obj->prevObj); obj_set_gfx_pos_from_pos(obj->prevObj); } } diff --git a/src/game/behaviors/king_bobomb.inc.c b/src/game/behaviors/king_bobomb.inc.c index 274ef48b..f70d0319 100644 --- a/src/game/behaviors/king_bobomb.inc.c +++ b/src/game/behaviors/king_bobomb.inc.c @@ -3,11 +3,9 @@ // Copy of geo_update_projectile_pos_from_parent Gfx *geo_update_held_mario_pos(s32 callContext, UNUSED struct GraphNode *node, Mat4 mtx) { if (callContext == GEO_CONTEXT_RENDER) { - Mat4 mtx2; struct Object *obj = (struct Object *) gCurGraphNodeObject; if (obj->prevObj != NULL) { - create_transformation_from_matrices(mtx2, mtx, *gCurGraphNodeCamera->matrixPtr); - obj_update_pos_from_parent_transformation(mtx2, obj->prevObj); + obj_update_pos_from_parent_transformation(mtx, obj->prevObj); obj_set_gfx_pos_from_pos(obj->prevObj); } } diff --git a/src/game/behaviors/ukiki.inc.c b/src/game/behaviors/ukiki.inc.c index ed844c01..293e0eb5 100644 --- a/src/game/behaviors/ukiki.inc.c +++ b/src/game/behaviors/ukiki.inc.c @@ -33,15 +33,13 @@ s32 is_cap_ukiki_and_mario_has_normal_cap_on_head(void) { * Unused copy of geo_update_projectile_pos_from_parent. Perhaps a copy paste mistake. */ Gfx *geo_update_projectile_pos_from_parent_copy(s32 callContext, UNUSED struct GraphNode *node, Mat4 mtx) { - Mat4 mtx2; if (callContext == GEO_CONTEXT_RENDER) { // TODO: change global type to Object pointer struct Object *obj = (struct Object *) gCurGraphNodeObject; if (obj->prevObj != NULL) { - create_transformation_from_matrices(mtx2, mtx, *gCurGraphNodeCamera->matrixPtr); - obj_update_pos_from_parent_transformation(mtx2, obj->prevObj); + obj_update_pos_from_parent_transformation(mtx, obj->prevObj); obj_set_gfx_pos_from_pos(obj->prevObj); } } diff --git a/src/game/debug_box.c b/src/game/debug_box.c index 4032cbe4..cd7a9e73 100644 --- a/src/game/debug_box.c +++ b/src/game/debug_box.c @@ -133,12 +133,12 @@ extern Mat4 gMatStack[32]; // XXX: Hack /** * The debug boxes' default color. sCurBoxColor is reset to this every frame. */ -#define DBG_BOX_DEF_COLOR 0xFF0000 +#define DBG_BOX_DEF_COLOR 0xFF000000 /** * The color that new boxes will be drawn with. */ -u32 sCurBoxColor = ((DBG_BOX_ALPHA << 24) | DBG_BOX_DEF_COLOR); +u32 sCurBoxColor = DBG_BOX_DEF_COLOR | DBG_BOX_ALPHA; /** * The allocated size of a rotated box's dl @@ -349,21 +349,17 @@ void visual_surface_loop(void) { || !gMarioState->marioObj) { return; } - Mtx *mtx = alloc_display_list(sizeof(Mtx)); Vtx *verts = alloc_display_list((iterate_surface_count(gMarioState->pos[0], gMarioState->pos[2]) * 3) * sizeof(Vtx)); gVisualSurfaceCount = 0; gVisualOffset = 0; - if ((mtx == NULL) || (verts == NULL)) { + if (verts == NULL) { return; } - mtxf_to_mtx(mtx, gMatStack[1]); gSPDisplayList(gDisplayListHead++, dl_visual_surface); - gSPMatrix(gDisplayListHead++, mtx, (G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH)); - iterate_surfaces_visual(gMarioState->pos[0], gMarioState->pos[2], verts); visual_surface_display(verts, 0); @@ -374,7 +370,6 @@ void visual_surface_loop(void) { visual_surface_display(verts, 1); - gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW); gSPDisplayList(gDisplayListHead++, dl_debug_box_end); } @@ -402,12 +397,12 @@ static void append_debug_box(Vec3f center, Vec3f bounds, s16 yaw, s32 type) { /** * Draw new boxes with the given color. - * Color format is 32-bit ARGB. + * Color format is 32-bit RGBA. * If the alpha component is zero, DBG_BOX_ALPHA (0x7f) will be used instead. - * Ex: 0xFF0000 becomes 0x7FFF0000 + * Ex: 0xFF000000 becomes 0xFF00007F */ void debug_box_color(u32 color) { - if ((color >> 24) == 0) color |= (DBG_BOX_ALPHA << 24); + if ((color & 0xFF) == 0) color |= (DBG_BOX_ALPHA); sCurBoxColor = color; } @@ -456,34 +451,36 @@ void debug_box_pos_rot(Vec3f pMin, Vec3f pMax, s16 yaw, s32 type) { static void render_box(int index) { struct DebugBox *box = &sBoxes[index]; s32 color = box->color; + Mat4 mtxFloat; - // Translate to the origin, rotate, then translate back, effectively rotating the box about its center - Mtx *mtx = alloc_display_list(sizeof(Mtx)); - Mtx *translate = alloc_display_list(sizeof(Mtx)); - Mtx *rotate = alloc_display_list(sizeof(Mtx)); - Mtx *scale = alloc_display_list(sizeof(Mtx)); + // Allocate the transformation matrix for this box + Mtx *mtx = alloc_display_list(sizeof(Mtx)); - if ((mtx == NULL) - || (translate == NULL) - || (rotate == NULL) - || (scale == NULL)) return; + if (mtx == NULL) return; - mtxf_to_mtx(mtx, gMatStack[1]); - guTranslate(translate, box->center[0], box->center[1], box->center[2]); - guRotate(rotate, ((box->yaw / (f32)0x10000) * 360.0f), 0, 1.0f, 0); - guScale(scale, ((f32) box->bounds[0] * 0.01f), - ((f32) box->bounds[1] * 0.01f), - ((f32) box->bounds[2] * 0.01f)); + // Calculate rotation matrix + guRotateF(mtxFloat, ((box->yaw / (f32)0x10000) * 360.0f), 0, 1.0f, 0); - gSPMatrix(gDisplayListHead++, mtx, (G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH)); - gSPMatrix(gDisplayListHead++, translate, (G_MTX_MODELVIEW | G_MTX_MUL | G_MTX_NOPUSH)); - gSPMatrix(gDisplayListHead++, rotate, (G_MTX_MODELVIEW | G_MTX_MUL | G_MTX_NOPUSH)); - gSPMatrix(gDisplayListHead++, scale, (G_MTX_MODELVIEW | G_MTX_MUL | G_MTX_NOPUSH)); + // Apply scale to column vectors of matrix + for (int i = 0; i < 3; i++) { + for (int j = 0; j < 3; j++) { + mtxFloat[i][j] *= box->bounds[j] * 0.01f; + } + } - gDPSetEnvColor(gDisplayListHead++, ((color >> 16) & 0xFF), - ((color >> 8) & 0xFF), - ((color ) & 0xFF), - ((color >> 24) & 0xFF)); + // Copy translation into matrix + for (int i = 0; i < 3; i++) { + mtxFloat[3][i] = box->center[i]; + } + + // Convert the matrix from floating-point to fixed-point + mtxf_to_mtx(mtx, mtxFloat); + + // Load the calculated matrix + gSPMatrix(gDisplayListHead++, mtx, G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH); + + // Set env color to the color of this box + gDPSetColor(gDisplayListHead++, G_SETENVCOLOR, color); if (box->type & DEBUG_SHAPE_BOX) { gSPDisplayList(gDisplayListHead++, dl_debug_box_verts); @@ -491,8 +488,6 @@ static void render_box(int index) { if (box->type & DEBUG_SHAPE_CYLINDER) { gSPDisplayList(gDisplayListHead++, dl_debug_cylinder_verts); } - - gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW); } void render_debug_boxes(s32 type) { diff --git a/src/game/game_init.c b/src/game/game_init.c index 7382d826..71c021cc 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -136,7 +136,6 @@ const Gfx init_rsp[] = { gsDPPipeSync(), gsSPClearGeometryMode(G_CULL_FRONT | G_FOG | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR | G_LOD), gsSPSetGeometryMode(G_SHADE | G_SHADING_SMOOTH | G_CULL_BACK | G_LIGHTING), - gsSPNumLights(NUMLIGHTS_1), gsSPTexture(0, 0, 0, G_TX_RENDERTILE, G_OFF), // @bug Failing to set the clip ratio will result in warped triangles in F3DEX2 // without this change: https://jrra.zone/n64/doc/n64man/gsp/gSPClipRatio.htm diff --git a/src/game/mario_misc.c b/src/game/mario_misc.c index 8c81465e..d4d4e7fe 100644 --- a/src/game/mario_misc.c +++ b/src/game/mario_misc.c @@ -571,8 +571,7 @@ Gfx *geo_switch_mario_hand_grab_pos(s32 callContext, struct GraphNode *node, Mat // ! The HOLP is set here, which is why it only updates when the held object is drawn. // This is why it won't update during a pause buffered hitstun or when the camera is very far // away. - get_pos_from_transform_mtx(marioState->marioBodyState->heldObjLastPosition, *curTransform, - *gCurGraphNodeCamera->matrixPtr); + vec3f_copy(marioState->marioBodyState->heldObjLastPosition, (*curTransform)[3]); } return NULL; } diff --git a/src/game/object_helpers.c b/src/game/object_helpers.c index c63dd3be..64d7cdf5 100644 --- a/src/game/object_helpers.c +++ b/src/game/object_helpers.c @@ -34,11 +34,9 @@ static s32 clear_move_flag(u32 *bitSet, s32 flag); Gfx *geo_update_projectile_pos_from_parent(s32 callContext, UNUSED struct GraphNode *node, Mat4 mtx) { if (callContext == GEO_CONTEXT_RENDER) { - Mat4 mtx2; struct Object *projObj = (struct Object *) gCurGraphNodeObject; // TODO: change global type to Object pointer if (projObj->prevObj) { - create_transformation_from_matrices(mtx2, mtx, *gCurGraphNodeCamera->matrixPtr); - obj_update_pos_from_parent_transformation(mtx2, projObj->prevObj); + obj_update_pos_from_parent_transformation(mtx, projObj->prevObj); obj_set_gfx_pos_from_pos(projObj->prevObj); } } diff --git a/src/game/puppycam2.c b/src/game/puppycam2.c index 5b072153..01fd5f3c 100644 --- a/src/game/puppycam2.c +++ b/src/game/puppycam2.c @@ -935,7 +935,7 @@ static s32 puppycam_check_volume_bounds(struct sPuppyVolume *volume, s32 index) Vec3f debugPos[2]; vec3f_set(debugPos[0], sPuppyVolumeStack[index]->pos[0], sPuppyVolumeStack[index]->pos[1], sPuppyVolumeStack[index]->pos[2]); vec3f_set(debugPos[1], sPuppyVolumeStack[index]->radius[0], sPuppyVolumeStack[index]->radius[1], sPuppyVolumeStack[index]->radius[2]); - debug_box_color(0x0000FF00); + debug_box_color(0x00FF0000); debug_box_rot(debugPos[0], debugPos[1], sPuppyVolumeStack[index]->rot, DEBUG_SHAPE_BOX | DEBUG_UCODE_DEFAULT); #endif // Now compare values. @@ -953,7 +953,7 @@ static s32 puppycam_check_volume_bounds(struct sPuppyVolume *volume, s32 index) Vec3f debugPos[2]; vec3f_set(debugPos[0], sPuppyVolumeStack[index]->pos[0], sPuppyVolumeStack[index]->pos[1], sPuppyVolumeStack[index]->pos[2]); vec3f_set(debugPos[1], sPuppyVolumeStack[index]->radius[0], sPuppyVolumeStack[index]->radius[1], sPuppyVolumeStack[index]->radius[2]); - debug_box_color(0x0000FF00); + debug_box_color(0x00FF0000); debug_box_rot(debugPos[0], debugPos[1], sPuppyVolumeStack[index]->rot, DEBUG_SHAPE_CYLINDER | DEBUG_UCODE_DEFAULT); #endif f32 distCheck = (dist < sqr(sPuppyVolumeStack[index]->radius[0])); diff --git a/src/game/puppylights.c b/src/game/puppylights.c index 8cdacaf6..ad01a4e2 100644 --- a/src/game/puppylights.c +++ b/src/game/puppylights.c @@ -117,7 +117,7 @@ void puppylights_iterate(struct PuppyLight *light, Lights1 *src, struct Object * #ifdef VISUAL_DEBUG vec3f_set(debugPos[0], light->pos[0][0], light->pos[0][1], light->pos[0][2]); vec3f_set(debugPos[1], light->pos[1][0], light->pos[1][1], light->pos[1][2]); - debug_box_color(0x08FF00FF); + debug_box_color(0xFF00FF08); if (light->flags & PUPPYLIGHT_SHAPE_CYLINDER) { debug_box_rot(debugPos[0], debugPos[1], light->yaw, DEBUG_SHAPE_CYLINDER | DEBUG_UCODE_DEFAULT); } else { diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index 6763218b..e4239179 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -163,10 +163,7 @@ ALIGNED16 struct GraphNodeCamera *gCurGraphNodeCamera = NULL; ALIGNED16 struct GraphNodeObject *gCurGraphNodeObject = NULL; ALIGNED16 struct GraphNodeHeldObject *gCurGraphNodeHeldObject = NULL; u16 gAreaUpdateCounter = 0; - -#ifdef F3DEX_GBI_2 -LookAt lookAt; -#endif +LookAt* gCurLookAt; #if SILHOUETTE // AA_EN Enable anti aliasing (not actually used for AA in this case). @@ -268,6 +265,21 @@ void switch_ucode(s32 ucode) { } #endif +#define UPPER_FIXED(x) ((int)((unsigned int)((x) * 0x10000) >> 16)) +#define LOWER_FIXED(x) ((int)((unsigned int)((x) * 0x10000) & 0xFFFF)) + +// Fixed-point identity matrix with the inverse of world scale +Mtx identityMatrixWorldScale = {{ + {UPPER_FIXED(1.0f / WORLD_SCALE) << 16, 0x00000000, + UPPER_FIXED(1.0f / WORLD_SCALE) << 0, 0x00000000}, + {0x00000000, UPPER_FIXED(1.0f / WORLD_SCALE) << 16, + 0x00000000, UPPER_FIXED(1.0f) << 0}, + {LOWER_FIXED(1.0f / WORLD_SCALE) << 16, 0x00000000, + LOWER_FIXED(1.0f / WORLD_SCALE) << 0, 0x00000000}, + {0x00000000, LOWER_FIXED(1.0f / WORLD_SCALE) << 16, + 0x00000000, LOWER_FIXED(1.0f) << 0} +}}; + /** * Process a master list node. This has been modified, so now it runs twice, for each microcode. * It iterates through the first 5 layers of if the first index using F3DLX2.Rej, then it switches @@ -287,18 +299,6 @@ void geo_process_master_list_sub(struct GraphNodeMasterList *node) { struct RenderModeContainer *mode1List = &renderModeTable_1Cycle[enableZBuffer]; struct RenderModeContainer *mode2List = &renderModeTable_2Cycle[enableZBuffer]; -#ifdef F3DEX_GBI_2 - // @bug This is where the LookAt values should be calculated but aren't. - // As a result, environment mapping is broken on Fast3DEX2 without the - // changes below. - Mtx lMtx; - #ifdef FIX_REFLECT_MTX - guLookAtReflect(&lMtx, &lookAt, 0.0f, 0.0f, 0.0f, /* eye */ 0.0f, 0.0f, 1.0f, /* at */ 0.0f, -1.0f, 0.0f /* up */); - #else - guLookAtReflect(&lMtx, &lookAt, 0.0f, 0.0f, 0.0f, /* eye */ 0.0f, 0.0f, 1.0f, /* at */ 1.0f, 0.0f, 0.0f /* up */); - #endif -#endif // F3DEX_GBI_2 - // Loop through the render phases for (phaseIndex = RENDER_PHASE_FIRST; phaseIndex < RENDER_PHASE_END; phaseIndex++) { // Get the render phase information. @@ -309,7 +309,7 @@ void geo_process_master_list_sub(struct GraphNodeMasterList *node) { ucode = renderPhase->ucode; // Set the ucode for the current render phase switch_ucode(ucode); - gSPLookAt(gDisplayListHead++, &lookAt); + gSPLookAt(gDisplayListHead++, gCurLookAt); #endif if (enableZBuffer) { // Enable z buffer. @@ -374,6 +374,8 @@ void geo_process_master_list_sub(struct GraphNodeMasterList *node) { #endif #ifdef VISUAL_DEBUG if ( hitboxView) render_debug_boxes(DEBUG_UCODE_DEFAULT | DEBUG_BOX_CLEAR); + // Load the world scale identity matrix + gSPMatrix(gDisplayListHead++, &identityMatrixWorldScale, G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH); if (surfaceView) visual_surface_loop(); #endif } @@ -386,7 +388,7 @@ void geo_process_master_list_sub(struct GraphNodeMasterList *node) { void geo_append_display_list(void *displayList, s32 layer) { s32 ucode = GRAPH_NODE_UCODE_DEFAULT; #ifdef F3DEX_GBI_2 - gSPLookAt(gDisplayListHead++, &lookAt); + gSPLookAt(gDisplayListHead++, gCurLookAt); #endif #if defined(OBJECTS_REJ) || SILHOUETTE if (gCurGraphNodeObject != NULL) { @@ -501,7 +503,7 @@ void geo_process_perspective(struct GraphNodePerspective *node) { sAspectRatio = 4.0f / 3.0f; // 1.33333f #endif - guPerspective(mtx, &perspNorm, node->fov, sAspectRatio, node->near / (f32)WORLD_SCALE, node->far / (f32)WORLD_SCALE, 1.0f); + guPerspective(mtx, &perspNorm, node->fov, sAspectRatio, node->near / WORLD_SCALE, node->far / WORLD_SCALE, 1.0f); gSPPerspNormalize(gDisplayListHead++, perspNorm); gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(mtx), G_MTX_PROJECTION | G_MTX_LOAD | G_MTX_NOPUSH); @@ -512,6 +514,13 @@ void geo_process_perspective(struct GraphNodePerspective *node) { } } +static f32 get_dist_from_camera(Vec3f pos) { + return -((gCameraTransform[0][2] * pos[0]) + + (gCameraTransform[1][2] * pos[1]) + + (gCameraTransform[2][2] * pos[2]) + + gCameraTransform[3][2]); +} + /** * Process a level of detail node. From the current transformation matrix, * the perpendicular distance to the camera is extracted and the children @@ -520,9 +529,9 @@ void geo_process_perspective(struct GraphNodePerspective *node) { */ void geo_process_level_of_detail(struct GraphNodeLevelOfDetail *node) { #ifdef AUTO_LOD - f32 distanceFromCam = gIsConsole ? -gMatStack[gMatStackIndex][3][2] : 50.0f; + f32 distanceFromCam = gIsConsole ? get_dist_from_camera(gMatStack[gMatStackIndex][3]) : 50.0f; #else - f32 distanceFromCam = -gMatStack[gMatStackIndex][3][2]; + f32 distanceFromCam = get_dist_from_camera(gMatStack[gMatStackIndex][3]); #endif if ((f32)node->minDistance <= distanceFromCam @@ -552,12 +561,34 @@ void geo_process_switch(struct GraphNodeSwitchCase *node) { } } +Mat4 gCameraTransform; + +Lights1 defaultLight = gdSPDefLights1( + 0x3F, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00 +); + +Vec3f globalLightDirection = { 0x28, 0x28, 0x28 }; + +void setup_global_light() { + Lights1* curLight = (Lights1*)alloc_display_list(sizeof(Lights1)); + bcopy(&defaultLight, curLight, sizeof(Lights1)); + + Vec3f transformedLightDirection; + + linear_mtxf_transpose_mul_vec3f(gCameraTransform, transformedLightDirection, globalLightDirection); + + curLight->l->l.dir[0] = (s8)(transformedLightDirection[0]); + curLight->l->l.dir[1] = (s8)(transformedLightDirection[1]); + curLight->l->l.dir[2] = (s8)(transformedLightDirection[2]); + gSPSetLights1(gDisplayListHead++, (*curLight)); +} + /** * Process a camera node. */ void geo_process_camera(struct GraphNodeCamera *node) { - Mat4 cameraTransform; Mtx *rollMtx = alloc_display_list(sizeof(*rollMtx)); + Mtx *viewMtx = alloc_display_list(sizeof(Mtx)); if (node->fnNode.func != NULL) { node->fnNode.func(GEO_CONTEXT_RENDER, &node->fnNode.node, gMatStack[gMatStackIndex]); @@ -566,13 +597,46 @@ void geo_process_camera(struct GraphNodeCamera *node) { gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(rollMtx), G_MTX_PROJECTION | G_MTX_MUL | G_MTX_NOPUSH); - mtxf_lookat(cameraTransform, node->pos, node->focus, node->roll); - mtxf_mul(gMatStack[gMatStackIndex + 1], cameraTransform, gMatStack[gMatStackIndex]); - inc_mat_stack(); + mtxf_lookat(gCameraTransform, node->pos, node->focus, node->roll); + + // Calculate the lookAt +#ifdef F3DEX_GBI_2 + // @bug This is where the LookAt values should be calculated but aren't. + // As a result, environment mapping is broken on Fast3DEX2 without the + // changes below. + Mat4* cameraMatrix = &gCameraTransform; + #ifdef FIX_REFLECT_MTX + gCurLookAt->l[0].l.dir[0] = (s8)(127.0f * (*cameraMatrix)[0][0]); + gCurLookAt->l[0].l.dir[1] = (s8)(127.0f * (*cameraMatrix)[1][0]); + gCurLookAt->l[0].l.dir[2] = (s8)(127.0f * (*cameraMatrix)[2][0]); + gCurLookAt->l[1].l.dir[0] = (s8)(127.0f * -(*cameraMatrix)[0][1]); + gCurLookAt->l[1].l.dir[1] = (s8)(127.0f * -(*cameraMatrix)[1][1]); + gCurLookAt->l[1].l.dir[2] = (s8)(127.0f * -(*cameraMatrix)[2][1]); + #else + gCurLookAt->l[0].l.dir[0] = (s8)(127.0f * (*cameraMatrix)[0][0]); + gCurLookAt->l[0].l.dir[1] = (s8)(127.0f * (*cameraMatrix)[1][0]); + gCurLookAt->l[0].l.dir[2] = (s8)(127.0f * (*cameraMatrix)[2][0]); + gCurLookAt->l[1].l.dir[0] = (s8)(127.0f * (*cameraMatrix)[0][1]); + gCurLookAt->l[1].l.dir[1] = (s8)(127.0f * (*cameraMatrix)[1][1]); + gCurLookAt->l[1].l.dir[2] = (s8)(127.0f * (*cameraMatrix)[2][1]); + #endif +#endif // F3DEX_GBI_2 + + // Make a copy of the view matrix and scale its translation based on WORLD_SCALE + Mat4 scaledCamera; + mtxf_copy(scaledCamera, gCameraTransform); + for (int i = 0; i < 3; i++) { + scaledCamera[3][i] /= WORLD_SCALE; + } + + // Convert the scaled matrix to fixed-point and integrate it into the projection matrix stack + guMtxF2L(scaledCamera, viewMtx); + gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(viewMtx), G_MTX_PROJECTION | G_MTX_MUL | G_MTX_NOPUSH); + setup_global_light(); if (node->fnNode.node.children != 0) { gCurGraphNodeCamera = node; - node->matrixPtr = &gMatStack[gMatStackIndex]; + node->matrixPtr = &gCameraTransform; geo_process_node_and_siblings(node->fnNode.node.children); gCurGraphNodeCamera = NULL; } @@ -877,8 +941,7 @@ void geo_process_shadow(struct GraphNodeShadow *node) { f32 shadowScale; if (gCurGraphNodeHeldObject != NULL) { - get_pos_from_transform_mtx(shadowPos, gMatStack[gMatStackIndex], - *gCurGraphNodeCamera->matrixPtr); + vec3f_copy(shadowPos, gMatStack[gMatStackIndex][3]); shadowScale = node->shadowScale * gCurGraphNodeHeldObject->objNode->header.gfx.scale[0]; } else { vec3f_copy(shadowPos, gCurGraphNodeObject->pos); @@ -917,7 +980,7 @@ void geo_process_shadow(struct GraphNodeShadow *node) { node->shadowSolidity, node->shadowType, shifted); if (shadowList != NULL) { - mtxf_shadow(gMatStack[gMatStackIndex + 1], *gCurGraphNodeCamera->matrixPtr, + mtxf_shadow(gMatStack[gMatStackIndex + 1], gCurrShadow.floorNormal, shadowPos, gCurrShadow.scale, gCurGraphNodeObject->angle[1]); inc_mat_stack(); @@ -966,7 +1029,7 @@ void geo_process_shadow(struct GraphNodeShadow *node) { * * Since (0,0,0) is unaffected by rotation, columns 0, 1 and 2 are ignored. */ -s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) { +s32 obj_is_in_view(struct GraphNodeObject *node) { if (node->node.flags & GRAPH_RENDER_INVISIBLE) { return FALSE; } @@ -982,7 +1045,7 @@ s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) { } // Don't render if the object is close to or behind the camera - if (matrix[3][2] > -100.0f + cullingRadius) { + if (node->cameraToObject[2] > -100.0f + cullingRadius) { return FALSE; } @@ -990,14 +1053,14 @@ s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) { // makes PU travel safe when the camera is locked on the main map. // If Mario were rendered with a depth over 65536 it would cause overflow // when converting the transformation matrix to a fixed point matrix. - if (matrix[3][2] < -20000.0f - cullingRadius) { + if (node->cameraToObject[2] < -20000.0f - cullingRadius) { return FALSE; } // half of the fov in in-game angle units instead of degrees s16 halfFov = (((((gCurGraphNodeCamFrustum->fov * sAspectRatio) / 2.0f) + 1.0f) * 32768.0f) / 180.0f) + 0.5f; - f32 hScreenEdge = -matrix[3][2] * tans(halfFov); + f32 hScreenEdge = -node->cameraToObject[2] * tans(halfFov); // -matrix[3][2] is the depth, which gets multiplied by tan(halfFov) to get // the amount of units between the center of the screen and the horizontal edge // given the distance from the object to the camera. @@ -1008,10 +1071,10 @@ s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) { // hScreenEdge *= GFX_DIMENSIONS_ASPECT_RATIO; // Check whether the object is horizontally in view - if (matrix[3][0] > hScreenEdge + cullingRadius) { + if (node->cameraToObject[0] > hScreenEdge + cullingRadius) { return FALSE; } - if (matrix[3][0] < -hScreenEdge - cullingRadius) { + if (node->cameraToObject[0] < -hScreenEdge - cullingRadius) { return FALSE; } @@ -1054,25 +1117,23 @@ void visualise_object_hitbox(struct Object *node) { void geo_process_object(struct Object *node) { if (node->header.gfx.areaIndex == gCurGraphNodeRoot->areaIndex) { if (node->header.gfx.throwMatrix != NULL) { - mtxf_mul(gMatStack[gMatStackIndex + 1], *node->header.gfx.throwMatrix, - gMatStack[gMatStackIndex]); - mtxf_scale_vec3f(gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex + 1], node->header.gfx.scale); + mtxf_scale_vec3f(gMatStack[gMatStackIndex + 1], *node->header.gfx.throwMatrix, node->header.gfx.scale); } else if (node->header.gfx.node.flags & GRAPH_RENDER_BILLBOARD) { mtxf_billboard(gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex], node->header.gfx.pos, node->header.gfx.scale, gCurGraphNodeCamera->roll); } else { - mtxf_rotate_zxy_and_translate_and_mul(node->header.gfx.angle, node->header.gfx.pos, gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex]); + mtxf_rotate_zxy_and_translate(gMatStack[gMatStackIndex + 1], node->header.gfx.pos, node->header.gfx.angle); mtxf_scale_vec3f(gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex + 1], node->header.gfx.scale); } node->header.gfx.throwMatrix = &gMatStack[++gMatStackIndex]; - vec3_copy(node->header.gfx.cameraToObject, gMatStack[gMatStackIndex][3]); + linear_mtxf_mul_vec3f_and_translate(gCameraTransform, node->header.gfx.cameraToObject, (*node->header.gfx.throwMatrix)[3]); // FIXME: correct types if (node->header.gfx.animInfo.curAnim != NULL) { geo_set_animation_globals(&node->header.gfx.animInfo, (node->header.gfx.node.flags & GRAPH_RENDER_HAS_ANIMATION) != 0); } - if (obj_is_in_view(&node->header.gfx, gMatStack[gMatStackIndex])) { + if (obj_is_in_view(&node->header.gfx)) { gMatStackIndex--; inc_mat_stack(); @@ -1122,7 +1183,7 @@ void geo_process_held_object(struct GraphNodeHeldObject *node) { Mat4 tempMtx; #ifdef F3DEX_GBI_2 - gSPLookAt(gDisplayListHead++, &lookAt); + gSPLookAt(gDisplayListHead++, gCurLookAt); #endif if (node->fnNode.func != NULL) { @@ -1245,6 +1306,9 @@ void geo_process_root(struct GraphNodeRoot *node, Vp *b, Vp *c, s32 clearColor) gDisplayListHeap = alloc_only_pool_init(main_pool_available() - sizeof(struct AllocOnlyPool), MEMORY_POOL_LEFT); initialMatrix = alloc_display_list(sizeof(*initialMatrix)); + gCurLookAt = (LookAt*)alloc_display_list(sizeof(LookAt)); + bzero(gCurLookAt, sizeof(LookAt)); + gMatStackIndex = 0; gCurrAnimType = ANIM_TYPE_NONE; vec3s_set(viewport->vp.vtrans, node->x * 4, node->y * 4, 511); diff --git a/tools/fixlights.py b/tools/fixlights.py new file mode 100755 index 00000000..87f12739 --- /dev/null +++ b/tools/fixlights.py @@ -0,0 +1,110 @@ +#!/usr/bin/python3 + +import sys, subprocess + +if len(sys.argv) != 2: + print(f"Usage: {sys.argv[0]} [folder to search]") + sys.exit() + +lightFiles = set() + +# The original command that was run across the entire repo to convert all assets +# cmds = ("grep -Rl \"gsSPSetLight\" levels actors bin","grep -Rl \"gsSPLight\" levels actors bin","grep -Rl \"Lights1\" levels actors bin") + +# Operate on the folder passed as an argument to this program +cmds = [f"grep -Rl \"gsSPSetLight\" {sys.argv[1]}",f"grep -Rl \"gsSPLight\" {sys.argv[1]}",f"grep -Rl \"Lights1\" {sys.argv[1]}"] + +for cmd in cmds: + try: + output = subprocess.check_output(cmd, shell=True).decode('UTF-8').split("\n")[:-1] + lightFiles = set.union(lightFiles,set(output)) + except subprocess.CalledProcessError: + continue + +lightStructs = {} +# FIRST PASS: COLLECT LIGHT STRUCT INFO, REMOVE LIGHT STRUCTS +for file in lightFiles: + changed = False + with open(file, "r") as f: + fileLines = f.readlines() + index = 0 + while index < len(fileLines): + curLine = fileLines[index].strip() + + if "const Lights1" in curLine and "gdSPDefLights1" in curLine: + structName = curLine.split("const Lights1")[1].strip().split(" ")[0] # Get string between Lights 1 and following space + del fileLines[index] # Remove beginning + args = "" + while not ")" in fileLines[index]: + args += fileLines[index].strip() + del fileLines[index] + del fileLines[index] # Remove ending line + args = args.strip(");") + args = [int(arg.strip()[2:],16) for arg in args.split(",")] + lightStructs[structName] = args + changed = True + elif "Lights1" in curLine and "gdSPDefLights1" in curLine: + structName = curLine.split("Lights1")[1].strip().split(" ")[0] # Get string between Lights 1 and following space + del fileLines[index] # Remove beginning + args = "" + while True: + args += fileLines[index].strip() + if ")" in fileLines[index]: + break + del fileLines[index] + del fileLines[index] # Remove ending line + args = args.strip(");") + args = [int(arg.strip()[2:],16) for arg in args.split(",")] + lightStructs[structName] = args + changed = True + + index += 1 + # Don't write to the file if the contents haven't been changed, as this will trigger a rebuild by Make + if changed: + with open(file, "w") as f: + f.writelines(fileLines) + +# SECOND PASS - CHANGE LIGHT COMMANDS +for file in lightFiles: + changed = False + with open(file, "r") as f: + fileLines = f.readlines() + index = 0 + while index < len(fileLines): + curLine = fileLines[index].strip() + + if curLine.startswith("gsSPSetLights1("): + structName = curLine.split("(")[1].split(")")[0] # Get string between ( and ) + if structName in lightStructs.keys(): + changed = True + args = lightStructs[structName] + light1Args = args[3]*0x1000000 + args[4]*0x10000 + args[5]*0x100 + 0xFF + light2Args = args[0]*0x1000000 + args[1]*0x10000 + args[2]*0x100 + 0xFF + fileLines[index] = " gsSPLightColor(LIGHT_1, 0x%x),\n" % light1Args + fileLines.insert(index+1," gsSPLightColor(LIGHT_2, 0x%x),\n" % light2Args) + index += 1 + else: + print("Missing light definition %s in file %s. Skipping..." % (structName, file)) + + elif curLine.startswith("gsSPLight("): + if not "&" in curLine or not "." in curLine: + print("Malformed gsSPLight command in file %s, line %d. Skipping..." % (file, index+1)) + index += 1 + continue + structName = curLine.split("&")[1].split(".")[0] # Get string between & and . (&lightname.l or &lightname.a) + if structName in lightStructs.keys(): + changed = True + args = lightStructs[structName] + lightNum = int(curLine.split(",")[1].strip()[0]) # , 1), + argIndex = (3 if lightNum == 1 else 0) + lightArgs = args[argIndex]*0x1000000 + args[argIndex+1]*0x10000 + args[argIndex+2]*0x100 + 0xFF + fileLines[index] = " gsSPLightColor(LIGHT_%d, 0x%x),\n" % (lightNum, lightArgs) + else: + print("Missing light definition %s in file %s, line %d. Skipping..." % (structName, file, index+1)) + + index += 1 + # Don't write to the file if the contents haven't been changed, as this will trigger a rebuild by Make + if changed: + with open(file, "w") as f: + f.writelines(fileLines) + From 5b7b0ab8d6086c61d7bdb4ccf3ce29f80d6e59c1 Mon Sep 17 00:00:00 2001 From: Reonu Date: Tue, 19 Jul 2022 14:34:00 +0100 Subject: [PATCH 021/180] moved CASTLE_MUSIC_FIX into level specific checks (#437) --- include/config/config_audio.h | 3 --- src/game/level_update.c | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index a419451c..d81a8603 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -4,9 +4,6 @@ * AUDIO SETTINGS * ******************/ -// Fixes the castle music sometimes triggering after getting a dialog. -#define CASTLE_MUSIC_FIX - // Do not restart the music on cap grabs. #define PERSISTENT_CAP_MUSIC diff --git a/src/game/level_update.c b/src/game/level_update.c index 6b2d27c0..e0b17652 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -1287,10 +1287,10 @@ s32 lvl_init_from_save_file(UNUSED s16 initOrUpdate, s32 levelNum) { #endif sWarpDest.type = WARP_TYPE_NOT_WARPING; sDelayedWarpOp = WARP_OP_NONE; -#ifdef CASTLE_MUSIC_FIX - gNeverEnteredCastle = 0; -#else +#ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS gNeverEnteredCastle = !save_file_exists(gCurrSaveFileNum - 1); +#else + gNeverEnteredCastle = 0; #endif gCurrLevelNum = levelNum; gCurrCourseNum = COURSE_NONE; From 3149239b9a40ccf54690a08a26d3b113710c86ab Mon Sep 17 00:00:00 2001 From: Arceveti <73617174+Arceveti@users.noreply.github.com> Date: Fri, 22 Jul 2022 06:58:17 -0700 Subject: [PATCH 022/180] Clean up gotos from find_wall_collisions_from_list (#288) --- src/engine/surface_collision.c | 126 ++++++++++++++++++++------------- 1 file changed, 78 insertions(+), 48 deletions(-) diff --git a/src/engine/surface_collision.c b/src/engine/surface_collision.c index 73bb7034..9b428e03 100644 --- a/src/engine/surface_collision.c +++ b/src/engine/surface_collision.c @@ -14,18 +14,36 @@ * WALLS * **************************************************/ -#define CALC_OFFSET(vert, next_step) { \ - if (FLT_IS_NONZERO((vert)[1])) { \ - v = (v2[1] / (vert)[1]); \ - if ((v < 0.0f) || (v > 1.0f)) next_step;\ - d00 = (((vert)[0] * v) - v2[0]); \ - d01 = (((vert)[2] * v) - v2[2]); \ - invDenom = sqrtf(sqr(d00) + sqr(d01)); \ - offset = (invDenom - margin_radius); \ - if (offset > 0.0f) next_step; \ - goto check_collision; \ - } \ - next_step; \ +static s32 check_wall_vw(f32 d00, f32 d01, f32 d11, f32 d20, f32 d21, f32 invDenom) { + f32 v = ((d11 * d20) - (d01 * d21)) * invDenom; + if (v < 0.0f || v > 1.0f) { + return TRUE; + } + + f32 w = ((d00 * d21) - (d01 * d20)) * invDenom; + if (w < 0.0f || w > 1.0f || v + w > 1.0f) { + return TRUE; + } + + return FALSE; +} + +s32 check_wall_edge(Vec3f vert, Vec3f v2, f32 *d00, f32 *d01, f32 *invDenom, f32 *offset, f32 margin_radius) { + if (FLT_IS_NONZERO(vert[1])) { + f32 v = (v2[1] / vert[1]); + if (v < 0.0f || v > 1.0f) { + return TRUE; + } + + *d00 = ((vert[0] * v) - v2[0]); + *d01 = ((vert[2] * v) - v2[2]); + *invDenom = sqrtf(sqr(*d00) + sqr(*d01)); + *offset = (*invDenom - margin_radius); + + return (*offset > 0.0f); + } + + return TRUE; } /** @@ -34,16 +52,15 @@ */ static s32 find_wall_collisions_from_list(struct SurfaceNode *surfaceNode, struct WallCollisionData *data) { const f32 corner_threshold = -0.9f; - register struct Surface *surf; - register f32 offset; - register f32 radius = data->radius; + struct Surface *surf; + f32 offset; + f32 radius = data->radius; Vec3f pos = { data->x, data->y + data->offsetY, data->z }; Vec3f v0, v1, v2; - register f32 d00, d01, d11, d20, d21; - register f32 invDenom; - register f32 v, w; - register TerrainData type = SURFACE_DEFAULT; + f32 d00, d01, d11, d20, d21; + f32 invDenom; + TerrainData type = SURFACE_DEFAULT; s32 numCols = 0; // Max collision radius = 200 @@ -79,11 +96,14 @@ static s32 find_wall_collisions_from_list(struct SurfaceNode *surfaceNode, struc } // Dot of normal and pos, + origin offset - offset = (surf->normal.x * pos[0]) + (surf->normal.y * pos[1]) + (surf->normal.z * pos[2]) + surf->originOffset; + offset = (surf->normal.x * pos[0]) + + (surf->normal.y * pos[1]) + + (surf->normal.z * pos[2]) + + surf->originOffset; // Exclude surfaces outside of the radius. if (offset < -radius || offset > radius) continue; - + vec3_diff(v0, surf->vertex2, surf->vertex1); vec3_diff(v1, surf->vertex3, surf->vertex1); vec3_diff(v2, pos, surf->vertex1); @@ -96,38 +116,48 @@ static s32 find_wall_collisions_from_list(struct SurfaceNode *surfaceNode, struc d21 = vec3_dot(v2, v1); invDenom = (d00 * d11) - (d01 * d01); - if (FLT_IS_NONZERO(invDenom)) invDenom = 1.0f / invDenom; + if (FLT_IS_NONZERO(invDenom)) { + invDenom = 1.0f / invDenom; + } - v = ((d11 * d20) - (d01 * d21)) * invDenom; - if (v < 0.0f || v > 1.0f) goto edge_1_2; + if (check_wall_vw(d00, d01, d11, d20, d21, invDenom)) { + if (offset < 0) { + continue; + } - w = ((d00 * d21) - (d01 * d20)) * invDenom; - if (w < 0.0f || w > 1.0f || v + w > 1.0f) goto edge_1_2; + // Edge 1-2 + if (check_wall_edge(v0, v2, &d00, &d01, &invDenom, &offset, margin_radius)) { + // Edge 1-3 + if (check_wall_edge(v1, v2, &d00, &d01, &invDenom, &offset, margin_radius)) { + vec3_diff(v1, surf->vertex3, surf->vertex2); + vec3_diff(v2, pos, surf->vertex2); + // Edge 2-3 + if (check_wall_edge(v1, v2, &d00, &d01, &invDenom, &offset, margin_radius)) { + continue; + } + } + } - pos[0] += surf->normal.x * (radius - offset); - pos[2] += surf->normal.z * (radius - offset); - goto hasCollision; + // Check collision + if (FLT_IS_NONZERO(invDenom)) { + invDenom = (offset / invDenom); + } - edge_1_2: - if (offset < 0) continue; - CALC_OFFSET(v0, goto edge_1_3); + // Update pos + pos[0] += (d00 *= invDenom); + pos[2] += (d01 *= invDenom); + margin_radius += 0.01f; - edge_1_3: - CALC_OFFSET(v1, goto edge_2_3); + if ((d00 * surf->normal.x) + (d01 * surf->normal.z) < (corner_threshold * offset)) { + continue; + } + } else { + // Update pos + pos[0] += surf->normal.x * (radius - offset); + pos[2] += surf->normal.z * (radius - offset); + } - edge_2_3: - vec3_diff(v1, surf->vertex3, surf->vertex2); - vec3_diff(v2, pos, surf->vertex2); - CALC_OFFSET(v1, continue); - - check_collision: - if (FLT_IS_NONZERO(invDenom)) invDenom = (offset / invDenom); - pos[0] += (d00 *= invDenom); - pos[2] += (d01 *= invDenom); - margin_radius += 0.01f; - if ((d00 * surf->normal.x) + (d01 * surf->normal.z) < (corner_threshold * offset)) continue; - - hasCollision: + // Has collision if (data->numWalls < MAX_REFERENCED_WALLS) { data->walls[data->numWalls++] = surf; } @@ -137,11 +167,11 @@ static s32 find_wall_collisions_from_list(struct SurfaceNode *surfaceNode, struc break; } } + data->x = pos[0]; data->z = pos[2]; return numCols; } -#undef CALC_OFFSET /** * Formats the position and wall search for find_wall_collisions. From 27ff45daaffab26b145a3ff5ed24fa5646b8b28e Mon Sep 17 00:00:00 2001 From: Reonu Date: Fri, 22 Jul 2022 15:00:03 +0100 Subject: [PATCH 023/180] Replace unused 0C bank with aglab's / scut's extended 0C bank (#412) --- include/config/config_audio.h | 5 +- sound/sound_banks/0C.json | 275 ----------- sound/sound_banks/0C_extended_bank.json | 626 ++++++++++++++++++++++++ 3 files changed, 630 insertions(+), 276 deletions(-) delete mode 100644 sound/sound_banks/0C.json create mode 100644 sound/sound_banks/0C_extended_bank.json diff --git a/include/config/config_audio.h b/include/config/config_audio.h index d81a8603..edb0dbed 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -7,7 +7,10 @@ // Do not restart the music on cap grabs. #define PERSISTENT_CAP_MUSIC -// Increases the audio heap size to allow for larger/more custom sequences/banks/sfx to be imported without causing issues (not supported for SH). +/** + * Increase audio heap size to allow for larger/more custom sequences/banks/sfx to be imported without causing issues (not supported for SH). + * Note that this is REQUIRED in order to use the extended 0C audio bank. Do not disable this if you're planning on using it. + */ #define EXPAND_AUDIO_HEAP /** diff --git a/sound/sound_banks/0C.json b/sound/sound_banks/0C.json deleted file mode 100644 index 2b35bbe1..00000000 --- a/sound/sound_banks/0C.json +++ /dev/null @@ -1,275 +0,0 @@ -{ - "date": "1996-03-19", - "sample_bank": "instruments", - "envelopes": { - "envelope0": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope1": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope2": [ - [2, 32700], - [205, 1651], - [211, 0], - "hang" - ], - "envelope3": [ - [2, 32700], - [205, 1651], - [211, 0], - "hang" - ], - "envelope4": [ - [2, 32700], - [205, 1651], - [211, 0], - "hang" - ], - "envelope5": [ - [2, 32700], - [205, 1651], - [211, 0], - "hang" - ], - "envelope6": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope7": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope8": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope9": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope10": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope11": [ - [2, 32700], - [55, 32700], - [127, 0], - "hang" - ], - "envelope12": [ - [2, 32700], - [1, 32700], - [32700, 29430], - "hang" - ], - "envelope13": [ - [2, 32700], - [103, 24112], - [409, 0], - "hang" - ] - }, - "instruments": { - "inst0": { - "release_rate": 19, - "normal_range_lo": 29, - "normal_range_hi": 63, - "envelope": "envelope0", - "sound_lo": "3B_banjo_2", - "sound": "3C_acoustic_guitar", - "sound_hi": "3D" - }, - "inst1": { - "release_rate": 24, - "normal_range_lo": 29, - "normal_range_hi": 61, - "envelope": "envelope1", - "sound_lo": "3B_banjo_2", - "sound": "3C_acoustic_guitar", - "sound_hi": "3D" - }, - "inst2": { - "release_rate": 38, - "normal_range_lo": 29, - "normal_range_hi": 61, - "envelope": "envelope2", - "sound_lo": "3B_banjo_2", - "sound": "3C_acoustic_guitar", - "sound_hi": "3D" - }, - "inst3": { - "release_rate": 38, - "normal_range_lo": 29, - "normal_range_hi": 61, - "envelope": "envelope3", - "sound_lo": "3B_banjo_2", - "sound": "3C_acoustic_guitar", - "sound_hi": "3D" - }, - "inst4": { - "release_rate": 38, - "normal_range_lo": 29, - "normal_range_hi": 61, - "envelope": "envelope4", - "sound_lo": "3B_banjo_2", - "sound": "3C_acoustic_guitar", - "sound_hi": "3D" - }, - "inst5": { - "release_rate": 38, - "normal_range_lo": 29, - "normal_range_hi": 61, - "envelope": "envelope5", - "sound_lo": "3B_banjo_2", - "sound": "3C_acoustic_guitar", - "sound_hi": "3D" - }, - "inst6": { - "release_rate": 208, - "envelope": "envelope6", - "sound": "21_sine_bass" - }, - "inst7": { - "release_rate": 114, - "envelope": "envelope7", - "sound": "34_alto_flute" - }, - "inst8": { - "release_rate": 208, - "envelope": "envelope8", - "sound": "34_alto_flute" - }, - "percussion": [ - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.210224}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.2227245}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.2359685}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.25}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.264866}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.2806155}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.297302}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.3149805}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.33371}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.3535535}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.374577}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.3968505}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.4204485}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.4454495}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.4719375}}, - {"release_rate": 10, "pan": 62, "envelope": "envelope9", "sound": {"sample": "06_kick_drum_1", "tuning": 0.5}}, - {"release_rate": 10, "pan": 57, "envelope": "envelope9", "sound": "07_rimshot"}, - {"release_rate": 10, "pan": 65, "envelope": "envelope9", "sound": {"sample": "08", "tuning": 1.1905508}}, - {"release_rate": 10, "pan": 66, "envelope": "envelope9", "sound": {"sample": "08", "tuning": 0.8418465}}, - {"release_rate": 10, "pan": 66, "envelope": "envelope9", "sound": {"sample": "08", "tuning": 0.8919052}}, - {"release_rate": 10, "pan": 6, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 0.471937}}, - {"release_rate": 10, "pan": 6, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 0.5}}, - {"release_rate": 10, "pan": 27, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 0.66742}}, - {"release_rate": 10, "pan": 27, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 0.707107}}, - {"release_rate": 10, "pan": 45, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 0.793701}}, - {"release_rate": 10, "pan": 45, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 0.840897}}, - {"release_rate": 10, "pan": 53, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 1.0}}, - {"release_rate": 10, "pan": 53, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 1.059463}}, - {"release_rate": 10, "pan": 83, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 1.189207}}, - {"release_rate": 10, "pan": 83, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 1.259921}}, - {"release_rate": 10, "pan": 83, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 1.33484}}, - {"release_rate": 10, "pan": 83, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 1.414214}}, - {"release_rate": 10, "pan": 83, "envelope": "envelope9", "sound": {"sample": "09", "tuning": 1.498307}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.189207}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.259921}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.33484}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.414214}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.498307}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.587401}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.681793}}, - {"release_rate": 10, "pan": 35, "envelope": "envelope9", "sound": {"sample": "0A_tambourine", "tuning": 1.781798}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.5469096}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.5794306}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.61388505}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.65038884}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.6890625}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.7300362}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.77344644}}, - {"release_rate": 10, "pan": 54, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 0.81943786}}, - {"release_rate": 10, "pan": 70, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 1.5468929}}, - {"release_rate": 10, "pan": 70, "envelope": "envelope9", "sound": {"sample": "0B", "tuning": 1.6388757}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 0.793701}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 0.840897}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 0.890899}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 0.943875}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.0}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.059463}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.122462}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.189207}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.259921}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.33484}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.414214}}, - {"release_rate": 10, "pan": 82, "envelope": "envelope9", "sound": {"sample": "0C_conga_stick", "tuning": 1.498307}}, - {"release_rate": 10, "pan": 128, "envelope": "envelope9", "sound": "0D_clave"} - ], - "inst9": { - "release_rate": 10, - "normal_range_lo": 28, - "normal_range_hi": 28, - "envelope": "envelope10", - "sound_lo": "10_cymbal_bell", - "sound": "11_splash_cymbal", - "sound_hi": "10_cymbal_bell" - }, - "inst10": { - "release_rate": 10, - "normal_range_lo": 18, - "envelope": "envelope11", - "sound_lo": "12_snare_drum_1", - "sound": "13_snare_drum_2" - }, - "inst11": { - "release_rate": 208, - "normal_range_lo": 60, - "normal_range_hi": 60, - "envelope": "envelope12", - "sound_lo": "1E_closed_triangle", - "sound": "1F_open_triangle", - "sound_hi": "20_cabasa" - }, - "inst12": { - "release_rate": 10, - "envelope": "envelope13", - "sound": "42_vibraphone" - } - }, - "instrument_list": [ - "inst0", - "inst1", - "inst2", - "inst3", - "inst4", - "inst5", - "inst6", - "inst7", - "inst8", - null, - null, - "inst9", - "inst10", - "inst11", - null, - "inst12" - ] -} diff --git a/sound/sound_banks/0C_extended_bank.json b/sound/sound_banks/0C_extended_bank.json new file mode 100644 index 00000000..f8aae740 --- /dev/null +++ b/sound/sound_banks/0C_extended_bank.json @@ -0,0 +1,626 @@ +{ + "date": "1996-03-19", + "sample_bank": "instruments", + "envelopes": { + "envelope0": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope1": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope2": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope3": [ + [6, 32700], + [298, 0], + [1, 0], + "hang" + ], + "envelope4": [ + [2, 32700], + [205, 0], + [1, 0], + "hang" + ], + "envelope5": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope6": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope7": [ + [6, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope8_unused": [ + [3, 32700], + [298, 0], + [1, 0], + "hang" + ], + "envelope9": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope10": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope11": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope12_unused": [ + [11, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope13_unused": [ + [2, 32700], + [205, 0], + [1, 0], + "hang" + ], + "envelope14": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope15": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope16": [ + [2, 32700], + [103, 24112], + [409, 0], + "hang" + ], + "envelope17": [ + [2, 32700], + [130, 4954], + [523, 0], + "hang" + ], + "envelope18": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope19": [ + [2, 32700], + [55, 32700], + [127, 0], + "hang" + ], + "envelope20": [ + [2, 32700], + [136, 0], + [32700, 0], + "hang" + ], + "envelope21": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope22": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope23": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope24": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope25": [ + [2, 32700], + [205, 19818], + [535, 0], + "hang" + ], + "envelope26": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope27": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope28": [ + [6, 32700], + [298, 32700], + [32700, 29430], + "hang" + ], + "envelope29": [ + [2, 32700], + [205, 0], + [1, 0], + "hang" + ], + "envelope30": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ], + "envelope31": [ + [2, 32700], + [55, 32700], + [127, 0], + "hang" + ], + "envelope32": [ + [2, 32700], + [55, 32700], + [127, 0], + "hang" + ], + "envelope33": [ + [2, 32700], + [1, 32700], + [32700, 29430], + "hang" + ] + }, + "instruments": { + "Accordion": { + "release_rate": 19, + "envelope": "envelope0", + "sound": "2E_accordion" + }, + "Slap Bass": { + "release_rate": 208, + "envelope": "envelope1", + "sound": "1A_slap_bass" + }, + "Ele Guitar": { + "release_rate": 208, + "envelope": "envelope2", + "sound": "1C" + }, + "Ele Piano": { + "release_rate": 10, + "envelope": "envelope3", + "sound": "26_crystal_rhodes" + }, + "Grand Piano": { + "release_rate": 34, + "envelope": "envelope4", + "sound": "44_grand_piano" + }, + "French Horn": { + "release_rate": 53, + "normal_range_hi": 50, + "envelope": "envelope5", + "sound": "16_french_horns", + "sound_hi": "45_french_horns_lq" + }, + "Pan Flute": { + "release_rate": 43, + "envelope": "envelope6", + "sound": "41_pan_flute" + }, + "Strings": { + "release_rate": 15, + "normal_range_lo": 27, + "normal_range_hi": 46, + "envelope": "envelope7", + "sound_lo": "23_strings_1", + "sound": "24_strings_2", + "sound_hi": "25_strings_3" + }, + "Acoustic Guitar": { + "release_rate": 19, + "normal_range_lo": 29, + "normal_range_hi": 63, + "envelope": "envelope9", + "sound_lo": "3B_banjo_2", + "sound": "3C_acoustic_guitar", + "sound_hi": "3D" + }, + "Jingles": { + "release_rate": 208, + "envelope": "envelope10", + "sound": "2F_sleigh_bells" + }, + "Hi-Hat": { + "release_rate": 208, + "normal_range_lo": 24, + "envelope": "envelope11", + "sound_lo": "0E_hihat_closed", + "sound": "0F_hihat_open" + }, + "Crash Cymbal": { + "release_rate": 19, + "normal_range_lo": 28, + "normal_range_hi": 28, + "envelope": "envelope0", + "sound_lo": "10_cymbal_bell", + "sound": "11_splash_cymbal", + "sound_hi": "10_cymbal_bell" + }, + "Triangle&Cabasa": { + "release_rate": 208, + "normal_range_lo": 60, + "normal_range_hi": 60, + "envelope": "envelope15", + "sound_lo": "1E_closed_triangle", + "sound": "1F_open_triangle", + "sound_hi": "20_cabasa" + }, + "Celesta": { + "release_rate": 10, + "envelope": "envelope16", + "sound": "42_vibraphone" + }, + "Banjo": { + "release_rate": 100, + "normal_range_lo": 41, + "envelope": "envelope17", + "sound_lo": {"sample": "00", "tuning": 1.781798}, + "sound": "01_banjo_1" + }, + "Fiddle": { + "release_rate": 180, + "envelope": "envelope2", + "sound": "02" + }, + "Whistle": { + "release_rate": 76, + "envelope": "envelope18", + "sound": "03_human_whistle" + }, + "Acoustic Bass": { + "release_rate": 208, + "envelope": "envelope6", + "sound": "05_acoustic_bass" + }, + "Snare Clap": { + "release_rate": 10, + "normal_range_lo": 18, + "envelope": "envelope19", + "sound_lo": "12_snare_drum_1", + "sound": "13_snare_drum_2" + }, + "Pizzicato Strings": { + "release_rate": 43, + "normal_range_hi": 47, + "envelope": "envelope20", + "sound": "46_pizzicato_strings_1", + "sound_hi": "47_pizzicato_strings_2" + }, + "Cello": { + "release_rate": 119, + "envelope": "envelope18", + "sound": "2D_trombone" + }, + "Choir Ooh": { + "release_rate": 10, + "envelope": "envelope1", + "sound": "22_boys_choir" + }, + "Sitar Drone": { + "release_rate": 90, + "envelope": "envelope2", + "sound": "28_sitar_1" + }, + "Sitar": { + "release_rate": 10, + "envelope": "envelope21", + "sound": "39_sitar_2" + }, + "Drum Snare Split": { + "release_rate": 10, + "normal_range_lo": 19, + "normal_range_hi": 19, + "envelope": "envelope0", + "sound_lo": "38_electric_kick_drum", + "sound": {"sample": "08", "tuning": 2.121321}, + "sound_hi": "38_electric_kick_drum" + }, + "Bass+Lead": { + "release_rate": 208, + "envelope": "envelope1", + "sound": "21_sine_bass" + }, + "Percussive Organ": { + "release_rate": 208, + "envelope": "envelope22", + "sound": "35_gospel_organ" + }, + "Steel Drum": { + "release_rate": 10, + "envelope": "envelope23", + "sound": "48_steel_drum" + }, + "Brass": { + "release_rate": 208, + "envelope": "envelope24", + "sound": "19_brass" + }, + "Synth Voice": { + "release_rate": 128, + "envelope": "envelope25", + "sound": "1B_organ_2" + }, + "Ele Guitar (Clean)": { + "release_rate": 208, + "envelope": "envelope26", + "sound": "1C" + }, + "Charang": { + "release_rate": 10, + "envelope": "envelope0", + "sound": "30_rarefaction-lahna" + }, + "Overdriven Guitar": { + "release_rate": 208, + "envelope": "envelope1", + "sound": "31_rarefaction-convolution" + }, + "Orchestra Hit": { + "release_rate": 208, + "envelope": "envelope21", + "sound": "29_orchestra_hit" + }, + "Recorder": { + "release_rate": 114, + "envelope": "envelope18", + "sound": "34_alto_flute" + }, + "Drum Sample 18": { + "release_rate": 10, + "normal_range_lo": 14, + "normal_range_hi": 15, + "envelope": "envelope27", + "sound_lo": {"sample": "32_metal_rimshot", "tuning": 2.244924}, + "sound": "33_kick_drum_2", + "sound_hi": {"sample": "32_metal_rimshot", "tuning": 2.828428} + }, + "Music Box": { + "release_rate": 119, + "envelope": "envelope28", + "sound": "1D" + }, + "Melodic Tom": { + "release_rate": 34, + "envelope": "envelope0", + "sound": "1D" + }, + "Steel Guitar": { + "release_rate": 53, + "envelope": "envelope29", + "sound": "04_bright_piano" + }, + "Pah": { + "release_rate": 208, + "envelope": "envelope0", + "sound": {"sample": "1D", "tuning": 0.793701} + }, + "Organ": { + "release_rate": 208, + "envelope": "envelope0", + "sound": "2E_accordion" + }, + "Synth Bass": { + "release_rate": 208, + "envelope": "envelope1", + "sound": "36_sawtooth_synth" + }, + "Saw Wave": { + "release_rate": 208, + "envelope": "envelope2", + "sound": "37_square_synth" + }, + "Orchestra Hit 2": { + "release_rate": 208, + "envelope": "envelope21", + "sound": "29_orchestra_hit" + }, + "Trumpet": { + "release_rate": 208, + "envelope": "envelope1", + "sound": "19_brass" + }, + "Timpani": { + "release_rate": 10, + "envelope": "envelope30", + "sound": "18_timpani" + }, + "Drump Sample 26": { + "release_rate": 10, + "normal_range_lo": 18, + "envelope": "envelope31", + "sound_lo": "12_snare_drum_1", + "sound": "13_snare_drum_2" + }, + "Drump Sample 27": { + "release_rate": 10, + "normal_range_lo": 18, + "envelope": "envelope32", + "sound_lo": "12_snare_drum_1", + "sound": "13_snare_drum_2" + }, + "Xylophone": { + "release_rate": 119, + "envelope": "envelope28", + "sound": "3A_music_box" + }, + "Church Organ": { + "release_rate": 19, + "normal_range_hi": 50, + "envelope": "envelope0", + "sound": {"sample": "1B_organ_2", "tuning": 1.0}, + "sound_hi": "1B_organ_2" + }, + "Bells": { + "release_rate": 208, + "envelope": "envelope33", + "sound": "2F_sleigh_bells" + }, + "percussion": [ + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.210224}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.2227245}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.2359685}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.25}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.264866}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.2806155}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.297302}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.3149805}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.33371}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.3535535}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.374577}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.3968505}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.4204485}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.4454495}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.4719375}}, + {"release_rate": 10, "pan": 62, "envelope": "envelope11", "sound": {"sample": "06_kick_drum_1", "tuning": 0.5}}, + {"release_rate": 10, "pan": 57, "envelope": "envelope11", "sound": "07_rimshot"}, + {"release_rate": 10, "pan": 65, "envelope": "envelope11", "sound": {"sample": "08", "tuning": 1.1905508}}, + {"release_rate": 10, "pan": 66, "envelope": "envelope11", "sound": {"sample": "08", "tuning": 0.8418465}}, + {"release_rate": 10, "pan": 66, "envelope": "envelope11", "sound": {"sample": "08", "tuning": 0.8919052}}, + {"release_rate": 10, "pan": 6, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 0.471937}}, + {"release_rate": 10, "pan": 6, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 0.5}}, + {"release_rate": 10, "pan": 27, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 0.66742}}, + {"release_rate": 10, "pan": 27, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 0.707107}}, + {"release_rate": 10, "pan": 45, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 0.793701}}, + {"release_rate": 10, "pan": 45, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 0.840897}}, + {"release_rate": 10, "pan": 53, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 1.0}}, + {"release_rate": 10, "pan": 53, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 1.059463}}, + {"release_rate": 10, "pan": 83, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 1.189207}}, + {"release_rate": 10, "pan": 83, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 1.259921}}, + {"release_rate": 10, "pan": 83, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 1.33484}}, + {"release_rate": 10, "pan": 83, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 1.414214}}, + {"release_rate": 10, "pan": 83, "envelope": "envelope11", "sound": {"sample": "09", "tuning": 1.498307}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.189207}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.259921}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.33484}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.414214}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.498307}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.587401}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.681793}}, + {"release_rate": 10, "pan": 35, "envelope": "envelope11", "sound": {"sample": "0A_tambourine", "tuning": 1.781798}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.5469096}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.5794306}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.61388505}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.65038884}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.6890625}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.7300362}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.77344644}}, + {"release_rate": 10, "pan": 54, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 0.81943786}}, + {"release_rate": 10, "pan": 70, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 1.5468929}}, + {"release_rate": 10, "pan": 70, "envelope": "envelope11", "sound": {"sample": "0B", "tuning": 1.6388757}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 0.793701}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 0.840897}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 0.890899}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 0.943875}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.0}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.059463}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.122462}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.189207}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.259921}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.33484}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.414214}}, + {"release_rate": 10, "pan": 82, "envelope": "envelope11", "sound": {"sample": "0C_conga_stick", "tuning": 1.498307}}, + {"release_rate": 10, "pan": 128, "envelope": "envelope11", "sound": "0D_clave"} + ] + }, + "instrument_list": [ + "Accordion", + "Slap Bass", + "Ele Guitar", + "Ele Piano", + "Grand Piano", + "French Horn", + "Pan Flute", + "Strings", + "Acoustic Guitar", + "Jingles", + "Hi-Hat", + "Crash Cymbal", + "Triangle&Cabasa", + "Celesta", + "Banjo", + "Fiddle", + "Whistle", + "Acoustic Bass", + "Snare Clap", + "Pizzicato Strings", + "Cello", + "Choir Ooh", + "Sitar Drone", + "Sitar", + "Drum Snare Split", + "Bass+Lead", + "Percussive Organ", + "Steel Drum", + "Brass", + "Synth Voice", + "Ele Guitar (Clean)", + "Charang", + "Overdriven Guitar", + "Orchestra Hit", + "Recorder", + "Drum Sample 18", + "Music Box", + "Melodic Tom", + "Steel Guitar", + "Pah", + "Organ", + "Synth Bass", + "Saw Wave", + "Orchestra Hit 2", + "Trumpet", + "Timpani", + "Drump Sample 26", + "Drump Sample 27", + "Xylophone", + "Church Organ", + "Bells" + ] +} From 77f4bec4bc6bc3ab5c8e07d268124d108a72eef3 Mon Sep 17 00:00:00 2001 From: Reonu Date: Fri, 22 Jul 2022 15:20:29 +0100 Subject: [PATCH 024/180] Delete config_interaction.h (#440) --- include/config.h | 1 - include/config/config_interaction.h | 14 -------------- include/config/config_movement.h | 9 +++++++++ 3 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 include/config/config_interaction.h diff --git a/include/config.h b/include/config.h index 9c6dd908..c4fc3e2b 100644 --- a/include/config.h +++ b/include/config.h @@ -14,7 +14,6 @@ #include "config/config_game.h" #include "config/config_goddard.h" #include "config/config_graphics.h" -#include "config/config_interaction.h" #include "config/config_menu.h" #include "config/config_movement.h" #include "config/config_objects.h" diff --git a/include/config/config_interaction.h b/include/config/config_interaction.h deleted file mode 100644 index 3cf48eed..00000000 --- a/include/config/config_interaction.h +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -/************************ - * INTERACTION SETTINGS * - ************************/ - -// Various interaction related settings, bug fixes or QoL changes - -/** - * This fixes a bug which allows mario to move when initiating - * a dialog. just as long as mario doesn't enter an action that - * can be interrupted with text. - */ -// #define BUGFIX_DIALOG_TIME_STOP diff --git a/include/config/config_movement.h b/include/config/config_movement.h index 6fa9ff7f..4d909c11 100644 --- a/include/config/config_movement.h +++ b/include/config/config_movement.h @@ -82,3 +82,12 @@ // Re-enables upwarping when entering water. Forces you to only enter water from the top. // #define WATER_PLUNGE_UPWARP + +/** + * This bug allows mario to move when initiating a dialog, + * just as long as mario doesn't enter an action that can + * be interrupted with text + * Uncomment this to fix this bug, and frustrate speedrunners + */ +// #define BUGFIX_DIALOG_TIME_STOP + From 98958df32459dd9c9deeeec80da00affee80230d Mon Sep 17 00:00:00 2001 From: Gregory Heskett Date: Sat, 23 Jul 2022 16:56:18 -0400 Subject: [PATCH 025/180] Line endings for all text files now forced to \n instead of \r\n (#464) --- .gitattributes | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitattributes b/.gitattributes index 2757aa51..e5f43222 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,19 +2,19 @@ * text=auto # List text files in case git doesn't characterize correctly -*.c text -*.h text -*.s text -*.in text -*.js text -*.md text -*.py text -*.sh text -*.ld text -*.inc text -*.txt text -*.json text -*.yaml text +*.c text eol=lf +*.h text eol=lf +*.s text eol=lf +*.in text eol=lf +*.js text eol=lf +*.md text eol=lf +*.py text eol=lf +*.sh text eol=lf +*.ld text eol=lf +*.inc text eol=lf +*.txt text eol=lf +*.json text eol=lf +*.yaml text eol=lf # Same for binary *.bin binary From 93fd414035e9b0deb6882a25f6906dfaa3e2b5c2 Mon Sep 17 00:00:00 2001 From: someone2639 Date: Tue, 26 Jul 2022 20:56:17 -0400 Subject: [PATCH 026/180] add scheduler entry for when RCP locks up --- src/boot/main.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/boot/main.c b/src/boot/main.c index abe98e12..b98a01bc 100644 --- a/src/boot/main.c +++ b/src/boot/main.c @@ -7,6 +7,7 @@ #include "sm64.h" #include "audio/external.h" #include "game/game_init.h" +#include "game/debug.h" #include "game/memory.h" #include "game/sound_init.h" #include "buffers/buffers.h" @@ -32,6 +33,7 @@ enum MessageIDs { MESG_VI_VBLANK, MESG_START_GFX_SPTASK, MESG_NMI_REQUEST, + MESG_RCP_HUNG, }; // OSThread gUnkThread; // unused? @@ -303,6 +305,19 @@ void handle_dp_complete(void) { sCurrentDisplaySPTask = NULL; } +OSTimer RCPHangTimer; +void start_rcp_hang_timer(void) { + osSetTimer(&RCPHangTimer, OS_USEC_TO_CYCLES(3000000), (OSTime) 0, &gIntrMesgQueue, MESG_RCP_HUNG); +} + +void stop_rcp_hang_timer(void) { + osStopTimer(&RCPHangTimer); +} + +void alert_rcp_hung_up(void) { + assert(0, "RCP is HUNG UP!! Oh! MY GOD!!"); +} + void check_cache_emulation() { // Disable interrupts to ensure that nothing evicts the variable from cache while we're using it. u32 saved = __osDisableInt(); @@ -369,14 +384,19 @@ void thread3_main(UNUSED void *arg) { handle_sp_complete(); break; case MESG_DP_COMPLETE: + stop_rcp_hang_timer(); handle_dp_complete(); break; case MESG_START_GFX_SPTASK: + start_rcp_hang_timer(); start_gfx_sptask(); break; case MESG_NMI_REQUEST: handle_nmi_request(); break; + case MESG_RCP_HUNG: + alert_rcp_hung_up(); + break; } } } From f65eb9a003702a9734b173f3aa85ff276c9d5231 Mon Sep 17 00:00:00 2001 From: Tubular Bells <60239773+MSpiller7@users.noreply.github.com> Date: Wed, 3 Aug 2022 15:05:03 -0500 Subject: [PATCH 027/180] Reformat config comments (#470) --- include/config/config_audio.h | 10 ++- include/config/config_benchmark.h | 2 +- include/config/config_camera.h | 66 ++++++++++++------ include/config/config_collision.h | 28 +++++--- include/config/config_cutscenes.h | 12 +++- include/config/config_debug.h | 74 ++++++++++++++------ include/config/config_game.h | 84 ++++++++++++++++------- include/config/config_goddard.h | 12 +++- include/config/config_graphics.h | 108 +++++++++++++++++++++--------- include/config/config_menu.h | 14 ++-- include/config/config_movement.h | 108 ++++++++++++++++++++++-------- include/config/config_objects.h | 108 ++++++++++++++++++++++-------- include/config/config_rom.h | 22 ++++-- include/config/config_world.h | 16 +++-- 14 files changed, 473 insertions(+), 191 deletions(-) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index edb0dbed..5148c0d9 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -4,7 +4,9 @@ * AUDIO SETTINGS * ******************/ -// Do not restart the music on cap grabs. +/** + * Do not restart the music on cap grabs. + */ #define PERSISTENT_CAP_MUSIC /** @@ -22,6 +24,8 @@ #define MAX_SIMULTANEOUS_NOTES_EMULATOR 40 #define MAX_SIMULTANEOUS_NOTES_CONSOLE 24 -// Uses a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. -// Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. +/** + * Uses a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. + * Reverb parameters can be configured in audio/synthesis.c to meet desired aesthetic/performance needs. Currently US/JP only. Hurts emulator and console performance. + */ // #define BETTER_REVERB diff --git a/include/config/config_benchmark.h b/include/config/config_benchmark.h index 16a24391..478443d6 100644 --- a/include/config/config_benchmark.h +++ b/include/config/config_benchmark.h @@ -7,7 +7,7 @@ /** * Enabling this will enable a set of defines in order to run a benchmark on the game. * Currently this just starts the credits, and enables PUPPYPRINT_DEBUG. -*/ + */ // #define ENABLE_CREDITS_BENCHMARK #ifdef ENABLE_CREDITS_BENCHMARK diff --git a/include/config/config_camera.h b/include/config/config_camera.h index 0cbc7269..3fea62ba 100644 --- a/include/config/config_camera.h +++ b/include/config/config_camera.h @@ -4,51 +4,73 @@ * CAMERA SETTINGS * *******************/ -// Forces the camera mode to your choice (except when swimming or flying). -// It does this by setting the area's camera->defMode to this mode, and also -// changes hardcoded modes to use c->defMode. -// Note: removes door cutscenes due to the way they're designed to work with specific modes. -// Search for FORCED_CAMERA_MODE in camera.c for more information. +/** + * Forces the camera mode to your choice (except when swimming or flying). + * It does this by setting the area's camera->defMode to this mode, and also + * changes hardcoded modes to use c->defMode. + * Note: removes door cutscenes due to the way they're designed to work with specific modes. + * Search for FORCED_CAMERA_MODE in camera.c for more information. + */ #define FORCED_CAMERA_MODE CAMERA_MODE_8_DIRECTIONS -// Changes hardcoded camera mode reverting to instead use the area's default mode (defMode). -// If you're using a FORCED_CAMERA_MODE, this must be on for it to work. +/** + * Changes hardcoded camera mode reverting to instead use the area's default mode (defMode). + * If you're using a FORCED_CAMERA_MODE, this must be on for it to work. + */ #define USE_COURSE_DEFAULT_MODE /***** Movement specific camera modes: *****/ -// Camera mode when Mario is < 400 units away from the water surface (default is CAMERA_MODE_WATER_SURFACE). +/** + * Camera mode when Mario is < 400 units away from the water surface (default is CAMERA_MODE_WATER_SURFACE). + */ #define WATER_SURFACE_CAMERA_MODE CAMERA_MODE_WATER_SURFACE -// Camera mode when Mario is > 800 units away from the water surface (default is CAMERA_MODE_BEHIND_MARIO). +/** + * Camera mode when Mario is > 800 units away from the water surface (default is CAMERA_MODE_BEHIND_MARIO). + */ #define DEEP_WATER_CAMERA_MODE CAMERA_MODE_BEHIND_MARIO -// Camera mode when Mario is flying (default is CAMERA_MODE_BEHIND_MARIO). +/** + * Camera mode when Mario is flying (default is CAMERA_MODE_BEHIND_MARIO). + */ #define FLYING_CAMERA_MODE CAMERA_MODE_BEHIND_MARIO /*******************************************/ -// Makes the camera approach Mario's height much more quickly. +/** + * Makes the camera approach Mario's height much more quickly. + */ #define FAST_VERTICAL_CAMERA_MOVEMENT -// Enables "parallel lakitu camera" or "aglab cam" which lets you move the camera smoothly with the D-pad. +/** + * Enables "parallel lakitu camera" or "aglab cam" which lets you move the camera smoothly with the D-pad. + */ #define PARALLEL_LAKITU_CAM -// Enables Puppy Camera 2, a rewritten camera that can be freely configured and modified. +/** + * Enables Puppy Camera 2, a rewritten camera that can be freely configured and modified. + */ // #define PUPPYCAM -// Note: Reonucam is available, but because we had no time to test it properly, it's included as a patch rather than being in the code by default. -// Run this command to apply the patch if you want to use it: -// tools/apply_patch.sh enhancements/reonucam.patch -// Consider it a beta, but it should work fine. Please report any bugs with it. Applying the patch will simply add a define here, so you can still turn it off even after patching. +/** + * Note: Reonucam is available, but because we had no time to test it properly, it's included as a patch rather than being in the code by default. + * Run this command to apply the patch if you want to use it: + * tools/apply_patch.sh enhancements/reonucam.patch + * Consider it a beta, but it should work fine. Please report any bugs with it. Applying the patch will simply add a define here, so you can still turn it off even after patching. + */ /**********************************/ /***** Vanilla config options *****/ /**********************************/ -// Included for ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS define. +/** + * Included for ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS define. + */ #include "config_game.h" -// Allow course specific camera processing. -// You will likely want this disabled in non-vanilla hacks. -// This is automatically enabled when ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS is enabled, -// but feel free to override it if you really want to for some reason/ +/** + * Allow course specific camera processing. + * You will likely want this disabled in non-vanilla hacks. + * This is automatically enabled when ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS is enabled, + * but feel free to override it if you really want to for some reason. + */ #ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS #define ENABLE_VANILLA_CAM_PROCESSING #endif diff --git a/include/config/config_collision.h b/include/config/config_collision.h index f5c162c6..83e2782e 100644 --- a/include/config/config_collision.h +++ b/include/config/config_collision.h @@ -4,22 +4,32 @@ * COLLISION SETTINGS * **********************/ -// Reduces some find_floor calls, at the cost of some barely noticeable smoothness in Mario's visual movement in a few actions at higher speeds. -// The defined number is the forward speed threshold before the change is active, since it's only noticeable at lower speeds. +/** + * Reduces some find_floor calls, at the cost of some barely noticeable smoothness in Mario's visual movement in a few actions at higher speeds. + * The defined number is the forward speed threshold before the change is active, since it's only noticeable at lower speeds. + */ #define FAST_FLOOR_ALIGN 10 -// Automatically calculates the optimal collision distance for an object based on its vertices. +/** + * Automatically calculates the optimal collision distance for an object based on its vertices. + */ #define AUTO_COLLISION_DISTANCE -// Allows all surfaces types to have force, (doesn't require setting force, just allows it to be optional). +/** + * Allows all surfaces types to have force, (doesn't require setting force, just allows it to be optional). + */ #define ALL_SURFACES_HAVE_FORCE -// Number of walls that can push Mario at once. Vanilla is 4. +/** + * Number of walls that can push Mario at once. Vanilla is 4. + */ #define MAX_REFERENCED_WALLS 4 -// Collision data is the type that the collision system uses. All data by default is stored as an s16, but you may change it to s32. -// Naturally, that would double the size of all collision data, but would allow you to use 32 bit values instead of 16. -// Rooms are s8 in vanilla, but if you somehow have more than 255 rooms, you may raise this number. -// Currently, they *must* say as s8, because the room tables generated by literally anything are explicitly u8 and don't use a macro, making this currently infeasable. +/** + * Collision data is the type that the collision system uses. All data by default is stored as an s16, but you may change it to s32. + * Naturally, that would double the size of all collision data, but would allow you to use 32 bit values instead of 16. + * Rooms are s8 in vanilla, but if you somehow have more than 255 rooms, you may raise this number. + * Currently, they *must* say as s8, because the room tables generated by literally anything are explicitly u8 and don't use a macro, making this currently infeasable. + */ #define COLLISION_DATA_TYPE s16 #define ROOM_DATA_TYPE s8 diff --git a/include/config/config_cutscenes.h b/include/config/config_cutscenes.h index e39dcb7c..e1b0bdc5 100644 --- a/include/config/config_cutscenes.h +++ b/include/config/config_cutscenes.h @@ -4,10 +4,16 @@ * CUTSCENE SETTINGS * *********************/ -// -- CUTSCENE SKIPS -- +/************************ + * -- CUTSCENE SKIPS -- * + ************************/ -// Skips the peach letter cutscene. +/** + * Skips the peach letter cutscene. + */ #define PEACH_SKIP -// Skips the title/splash screen (Super Mario 64 logo). +/** + * Skips the title/splash screen (Super Mario 64 logo). + */ // #define SKIP_TITLE_SCREEN diff --git a/include/config/config_debug.h b/include/config/config_debug.h index 376c66bd..e384729a 100644 --- a/include/config/config_debug.h +++ b/include/config/config_debug.h @@ -4,54 +4,84 @@ * DEBUG SETTINGS * ******************/ -// Enables most debug options, including PUPPYPRINT_DEBUG. +/** + * Enables most debug options, including PUPPYPRINT_DEBUG. + */ // #define DEBUG_ALL -// Disables all debug options (except PUPPYPRINT). +/** + * Disables all debug options (except PUPPYPRINT). + */ #define DISABLE_ALL -// Enables a comprehensive standalone profiler. Automatically enabled by PUPPYPRINT_DEBUG. -// If not using PUPPYPRINT_DEBUG, press L to toggle the profiler. +/** + * Enables a comprehensive standalone profiler. Automatically enabled by PUPPYPRINT_DEBUG. + * If not using PUPPYPRINT_DEBUG, press L to toggle the profiler. + */ #define USE_PROFILER -// TEST LEVEL -// Uncomment this define and set a test level in order to boot straight into said level. -// This allows you to quickly test the level you're working on. -// If you want the game to boot normally, just comment out the define again. +/** + * -- TEST LEVEL -- + * Uncomment this define and set a test level in order to boot straight into said level. + * This allows you to quickly test the level you're working on. + * If you want the game to boot normally, just comment out the define again. + */ // #define TEST_LEVEL LEVEL_BOB -// Enables debug level select. Hold L while the game boots to turn it on. +/** + * Enables debug level select. Hold L while the game boots to turn it on. + */ #define DEBUG_LEVEL_SELECT -// Enables debug free move (D-pad up to enter, A to exit). +/** + * Enables debug free move (D-pad up to enter, A to exit). + */ #define ENABLE_DEBUG_FREE_MOVE -// Enables a custom, enhanced performance profiler. (Enables PUPPYPRINT by default in config_safeguards). +/** + * Enables a custom, enhanced performance profiler. (Enables PUPPYPRINT by default in config_safeguards). + */ // #define PUPPYPRINT_DEBUG 1 -// Uses cycles instead of microseconds in Puppyprint debug output. +/** + * Uses cycles instead of microseconds in Puppyprint debug output. + */ // #define PUPPYPRINT_DEBUG_CYCLES -// A vanilla style debug mode. It doesn't rely on a text engine, but it's much less powerful that PUPPYPRINT_DEBUG. -// Press D-pad left to show the debug UI. +/** + * A vanilla style debug mode. It doesn't rely on a text engine, but it's much less powerful that PUPPYPRINT_DEBUG. + * Press D-pad left to show the debug UI. + */ // #define VANILLA_STYLE_CUSTOM_DEBUG -// Visual debug enables some collision visuals. Tapping Right on the D-pad will cycle between visual hitboxes, visual surfaces, both, and neither. -// If puppyprint is enabled, then this can be cycled only while the screen is active. +/** + * Visual debug enables some collision visuals. Tapping Right on the D-pad will cycle between visual hitboxes, visual surfaces, both, and neither. + * If puppyprint is enabled, then this can be cycled only while the screen is active. + */ // #define VISUAL_DEBUG -// Opens all courses and doors. Used for debugging purposes to unlock all content. +/** + * Opens all courses and doors. Used for debugging purposes to unlock all content. + */ #define UNLOCK_ALL -// Same as above, but also reads all save file flags as complete. -// This will not overwrite existing save file data unless you save over it. +/** + * Same as above, but also reads all save file flags as complete. + * This will not overwrite existing save file data unless you save over it. + */ // #define COMPLETE_SAVE_FILE -// Removes the limit on FPS. +/** + * Removes the limit on FPS. + */ // #define UNLOCK_FPS -// Includes vanilla debug functionality. +/** + * Includes vanilla debug functionality. + */ // #define VANILLA_DEBUG -// Forces a crash when the game starts. Useful for debugging the crash screen. +/** + * Forces a crash when the game starts. Useful for debugging the crash screen. + */ // #define DEBUG_FORCE_CRASH_ON_BOOT diff --git a/include/config/config_game.h b/include/config/config_game.h index 5c9456eb..4af73dd2 100644 --- a/include/config/config_game.h +++ b/include/config/config_game.h @@ -11,63 +11,101 @@ */ // #define ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS -// Disables lives and hides the lives counter. +/** + * Disables lives and hides the lives counter. + */ #define DISABLE_LIVES -// Saves the number of lives to the save file (Does nothing if DISABLE_LIVES is enabled). +/** + * Saves the number of lives to the save file (Does nothing if DISABLE_LIVES is enabled). + */ #define SAVE_NUM_LIVES -// This is the number of lives Mario starts with after a game over or starting the game for the first time (must be lower than 127). +/** + * This is the number of lives Mario starts with after a game over or starting the game for the first time (must be lower than 127). + */ #define DEFAULT_NUM_LIVES 4 -// This can be 0..127. +/** + * This can be 0..127. + */ #define MAX_NUM_LIVES 100 -// This can be 0..32767. +/** + * This can be 0..32767. + */ #define MAX_NUM_COINS 999 -// Air/breath meter is separate from health meter when underwater. +/** + * Air/breath meter is separate from health meter when underwater. + */ // #define BREATH_METER -// Number of coins to spawn the "100 coin" star. If you remove the define altogether, then there won't be a 100 coin star at all. +/** + * Number of coins to spawn the "100 coin" star. If you remove the define altogether, then there won't be a 100 coin star at all. + */ #define X_COIN_STAR 100 -// Stars don't kick you out of the level (does not play nicely with vanilla). +/** + * Stars don't kick you out of the level (does not play nicely with vanilla). + */ // #define NON_STOP_STARS -// Bowser keys always exit the level. Only has an effect if NON_STOP_STARS is enabled. +/** + * Bowser keys always exit the level. Only has an effect if NON_STOP_STARS is enabled. + */ // #define KEYS_EXIT_LEVEL -// Uncomment this if you want global star IDs (useful for creating an open world hack ala MVC). +/** + * Uncomment this if you want global star IDs (useful for creating an open world hack ala MVC). + */ // #define GLOBAL_STAR_IDS -// Number of possible unique model ID's (keep it higher than 256). +/** + * Number of possible unique model ID's (keep it higher than 256). + */ #define MODEL_ID_COUNT 256 -// Number of supported areas per level. +/** + * Number of supported areas per level. + */ #define AREA_COUNT 8 -// Makes signs and NPCs easier to talk to. +/** + * Makes signs and NPCs easier to talk to. + */ // #define EASIER_DIALOG_TRIGGER -// Shows an "A" when Mario is able to talk [requires EASIER_DIALOG_TRIGGER]. +/** + * Shows an "A" when Mario is able to talk [requires EASIER_DIALOG_TRIGGER]. + */ // #define DIALOG_INDICATOR -// Include the English characters that were missing from US segment2 -// J, Q, V, X, Z, ĀØ, !, !!, ?, &, %, ., and the beta key. -// [MAKE SURE TO INCLUDE EU AND JP/SH BASEROMS IN THE REPO TO OBTAIN THE ASSETS] -// If this is disabled, backup assets will be used. +/** + * Include the English characters that were missing from US segment2 + * J, Q, V, X, Z, ĀØ, !, !!, ?, &, %, ., and the beta key. + * [MAKE SURE TO INCLUDE EU AND JP/SH BASEROMS IN THE REPO TO OBTAIN THE ASSETS] + * If this is disabled, backup assets will be used. + */ // #define COMPLETE_EN_US_SEGMENT2 -// Removes multi-language cake screen. +/** + * Removes multi-language cake screen. + */ #define EU_CUSTOM_CAKE_FIX -// Adds multiple languages to the game. Just a placeholder for the most part, because it only works with EU, and must be enabled with EU. +/** + * Adds multiple languages to the game. Just a placeholder for the most part, because it only works with EU, and must be enabled with EU. + */ #define MULTILANG (0 || VERSION_EU) -// Prevents infinite death loops by always restoring Mario's health when he's warped to any kind of warp while dead. +/** + * Prevents infinite death loops by always restoring Mario's health when he's warped to any kind of warp while dead. + */ #define PREVENT_DEATH_LOOP -// The level that the game starts with immediately after file select. -// The levelscript needs to have a MARIO_POS command for this to work. +/** + * The level that the game starts with immediately after file select. + * The levelscript needs to have a MARIO_POS command for this to work. + */ #define START_LEVEL LEVEL_CASTLE_GROUNDS diff --git a/include/config/config_goddard.h b/include/config/config_goddard.h index a7d7a94f..42b0ef9b 100644 --- a/include/config/config_goddard.h +++ b/include/config/config_goddard.h @@ -4,11 +4,17 @@ * GODDARD SETTINGS * ********************/ -// Enables Goddard (the Mario head). +/** + * Enables Goddard (the Mario head). + */ // #define KEEP_MARIO_HEAD -// Enables the Goddard easter egg from Shindou (has no effect if KEEP_MARIO_HEAD is disabled). +/** + * Enables the Goddard easter egg from Shindou (has no effect if KEEP_MARIO_HEAD is disabled). + */ #define GODDARD_EASTER_EGG -// Disables the demo that plays when idle on the start screen (has no effect if KEEP_MARIO_HEAD is disabled). +/** + * Disables the demo that plays when idle on the start screen (has no effect if KEEP_MARIO_HEAD is disabled). + */ #define DISABLE_DEMO diff --git a/include/config/config_graphics.h b/include/config/config_graphics.h index 1b210736..34efdeb0 100644 --- a/include/config/config_graphics.h +++ b/include/config/config_graphics.h @@ -4,44 +4,66 @@ * GRAPHICS SETTINGS * *********************/ -// The size of the master display list (gDisplayListHead). 6400 is vanilla. +/** + * The size of the master display list (gDisplayListHead). 6400 is vanilla. + */ #define GFX_POOL_SIZE 10000 -// Show a watermark on the title screen that reads "Made with HackerSM64", instead of the copyright message. +/** + * Show a watermark on the title screen that reads "Made with HackerSM64", instead of the copyright message. + */ #define INTRO_CREDIT -// Spawns floombas on the title screen. +/** + * Spawns floombas on the title screen. + */ #define INTRO_FLOOMBAS -// Enables widescreen (16:9) support. +/** + * Enables widescreen (16:9) support. + */ #define WIDE -// Skybox size modifier, changing this will add support for larger skybox images. NOTE: Vanilla skyboxes may break if you change this option. Be sure to rescale them accordingly. -// Whenever you change this, make sure to run "make -C tools clean" to rebuild the skybox tool (alternatively go into skyconv.c and change the file in any way (like adding/deleting a space) to specifically rebuild that tool). -// When increasing this, you should probably also increase the GFX pool size (the GFX_POOL_SIZE define above). +/** + * Skybox size modifier, changing this will add support for larger skybox images. NOTE: Vanilla skyboxes may break if you change this option. Be sure to rescale them accordingly. + * Whenever you change this, make sure to run "make -C tools clean" to rebuild the skybox tool (alternatively go into skyconv.c and change the file in any way (like adding/deleting a space) to specifically rebuild that tool). + * When increasing this, you should probably also increase the GFX pool size (the GFX_POOL_SIZE define above). + */ #define SKYBOX_SIZE 1 -// When this option is enabled, LODs will ONLY work on console. -// When this option is disabled, LODs will work regardless of whether console or emulator is used. -// Regardless of whether this setting is enabled or not, you can use gIsConsole to wrap your own code in a console check. +/** + * When this option is enabled, LODs will ONLY work on console. + * When this option is disabled, LODs will work regardless of whether console or emulator is used. + * Regardless of whether this setting is enabled or not, you can use gIsConsole to wrap your own code in a console check. + */ #define AUTO_LOD -// Enables Puppyprint, a display library for text and large images. -// Automatically enabled when PUPPYPRINT_DEBUG is enabled. +/** + * Enables Puppyprint, a display library for text and large images. + * Automatically enabled when PUPPYPRINT_DEBUG is enabled. + */ // #define PUPPYPRINT -// Disables AA (Improves console performance but causes visible seams between unconnected geometry). +/** + * Disables AA (Improves console performance but causes visible seams between unconnected geometry). + */ // #define DISABLE_AA -// Makes the coins ia8 64x64 instead of ia16 32x32. Uses new ia8 textures so that vanilla coins look better. +/** + * Makes the coins ia8 64x64 instead of ia16 32x32. Uses new ia8 textures so that vanilla coins look better. + */ #define IA8_COINS -// Similar to the above, but 30 FPS (Textures by InTheBeef, cleaned up by Arceveti). +/** + * Similar to the above, but 30 FPS (Textures by InTheBeef, cleaned up by Arceveti). + */ #define IA8_30FPS_COINS -// Use .rej microcode for certain objects (experimental - only should be used when F3DEX_GBI_2 is defined). -// For advanced users only. Does not work perfectly out the box, best used when exported actor models are -// using 64 vertex sizes, offered by Fast64 in the microcode menu. +/** + * Use .rej microcode for certain objects (experimental - only should be used when F3DEX_GBI_2 is defined). + * For advanced users only. Does not work perfectly out the box, best used when exported actor models are + * using 64 vertex sizes, offered by Fast64 in the microcode menu. + */ // #define OBJECTS_REJ /** @@ -54,37 +76,57 @@ */ // #define SILHOUETTE 127 -// Use 64x64 quarter shadow textures (Vanilla are 16x16). +/** + * Use 64x64 quarter shadow textures (Vanilla are 16x16). + */ #define HD_SHADOWS -// Makes certain objects (mainly trees) transparent when the camera gets close. +/** + * Makes certain objects (mainly trees) transparent when the camera gets close. + */ // #define OBJ_OPACITY_BY_CAM_DIST -// Fixes the game reading the ia8 burn smoke texture as an rgba16. +/** + * Fixes the game reading the ia8 burn smoke texture as an rgba16. + */ #define BURN_SMOKE_FIX -// Disables the fix to Koopa's unshelled model. +/** + * Disables the fix to Koopa's unshelled model. + */ #define KOOPA_KEEP_PINK_SHORTS -// Uses the star object's model in the star dance cutscene. -// This has a side effect of making the star dance star also transparent when Mario collects a transparent star. +/** + * Uses the star object's model in the star dance cutscene. + * This has a side effect of making the star dance star also transparent when Mario collects a transparent star. + */ // #define STAR_DANCE_USES_STARS_MODEL -// Lightweight directional lighting engine by Fazana. Intended for giving proximity and positional pointlights to small objects. -// NOTE: Still breaks occasionally, and PUPPYLIGHT_NODE might not work in areas that aren't area 1. +/** + * Lightweight directional lighting engine by Fazana. Intended for giving proximity and positional pointlights to small objects. + * NOTE: Still breaks occasionally, and PUPPYLIGHT_NODE might not work in areas that aren't area 1. + */ // #define PUPPYLIGHTS -// Uses the correct "up" vector for the guLookAtReflect call in geo_process_master_list_sub. -// It is sideways in vanilla, and since vanilla's environment map textures are sideways too, those will appear as sideways in-game if this is enabled. -// Make sure your custom environment map textures are the correct orientation. +/** + * Uses the correct "up" vector for the guLookAtReflect call in geo_process_master_list_sub. + * It is sideways in vanilla, and since vanilla's environment map textures are sideways too, those will appear as sideways in-game if this is enabled. + * Make sure your custom environment map textures are the correct orientation. + */ // #define FIX_REFLECT_MTX -// This improves performance a bit, and does not seem to break anything. +/** + * This improves performance a bit, and does not seem to break anything. + */ #define DISABLE_GRAPH_NODE_TYPE_FUNCTIONAL -// Disables all object shadows. You'll probably only want this either as a last resort for performance or if you're making a super stylized hack. +/** + * Disables all object shadows. You'll probably only want this either as a last resort for performance or if you're making a super stylized hack. + */ // #define DISABLE_SHADOWS -// Uses old shadow IDs for Fast64 compatibility. This is a temporary fix until Fast64 is updated to use the enum defines. -// NOTE: When this is enabled, The 49th hardcoded rectangle shadow will act as a regular circular shadow, due to Mario's shadow ID being 99 in vanilla. +/** + * Uses old shadow IDs for Fast64 compatibility. This is a temporary fix until Fast64 is updated to use the enum defines. + * NOTE: When this is enabled, The 49th hardcoded rectangle shadow will act as a regular circular shadow, due to Mario's shadow ID being 99 in vanilla. + */ #define LEGACY_SHADOW_IDS diff --git a/include/config/config_menu.h b/include/config/config_menu.h index 0eae45b5..c3909221 100644 --- a/include/config/config_menu.h +++ b/include/config/config_menu.h @@ -6,14 +6,20 @@ // -- EXIT COURSE SETTINGS -- -// Disables Exit Course. +/** + * Disables Exit Course. + */ // #define DISABLE_EXIT_COURSE -// Decides whether you can exit course while moving (has no effect if you disable Exit Course). +/** + * Decides whether you can exit course while moving (has no effect if you disable Exit Course). + */ #define EXIT_COURSE_WHILE_MOVING -// Decides which level, area and warp ID the "Exit Course" option takes you to (has no effect if you disable Exit Course). -// Ensure that the warp exists, or else the game will crash. +/** + * Decides which level, area and warp ID the "Exit Course" option takes you to (has no effect if you disable Exit Course). + * Ensure that the warp exists, or else the game will crash. + */ #define EXIT_COURSE_LEVEL LEVEL_CASTLE #define EXIT_COURSE_AREA 0x01 #define EXIT_COURSE_NODE 0x1F diff --git a/include/config/config_movement.h b/include/config/config_movement.h index 4d909c11..dddf8f25 100644 --- a/include/config/config_movement.h +++ b/include/config/config_movement.h @@ -4,83 +4,133 @@ * MOVEMENT SETTINGS * *********************/ -// Changes Mario's ground turn radius by making it dependent on the analog stick magnitude and speed. +/** + * Changes Mario's ground turn radius by making it dependent on the analog stick magnitude and speed. + */ // #define VELOCITY_BASED_TURN_SPEED -// Allows Mario to easily side flip when moving forwards at any speed. +/** + * Allows Mario to easily side flip when moving forwards at any speed. + */ // #define SIDE_FLIP_AT_LOW_SPEEDS -// Allows Mario to aim towards a new direction at the end of turning around, -// and allows Mario to turn around multiple times in a row. +/** + * Allows Mario to aim towards a new direction at the end of turning around, + * and allows Mario to turn around multiple times in a row. + */ // #define RESET_DIRECTION_WHEN_TURNING_AROUND -// Improved hanging: -// - Doesn't require holding down the A button. -// - Precise turning control. -// - Prevents falling from the edges. +/** + * Improved hanging: + * - Doesn't require holding down the A button. + * - Precise turning control. + * - Prevents falling from the edges. + */ #define BETTER_HANGING -// Change the movement speed when hanging from a ceiling (the vanilla value is 4.0f, has no effect if BETTER_HANGING is enabled). +/** + * Change the movement speed when hanging from a ceiling (the vanilla value is 4.0f, has no effect if BETTER_HANGING is enabled). + */ #define HANGING_SPEED 12.0f -// Prevents Mario from falling asleep while idle. +/** + * Prevents Mario from falling asleep while idle. + */ // #define NO_SLEEP -// Disables fall damage. +/** + * Disables fall damage. + */ #define NO_FALL_DAMAGE -// Disables the scream that mario makes when falling off a great height (this is separate from actual fall damage). +/** + * Disables the scream that mario makes when falling off a great height (this is separate from actual fall damage). + */ // #define NO_FALL_DAMAGE_SOUND -// Fall height for normal fall damage. Vanilla is 1150.0f. +/** + * Fall height for normal fall damage. Vanilla is 1150.0f. + */ #define FALL_DAMAGE_HEIGHT_SMALL 1150.0f -// Fall height for double fall damage. Vanilla is 3000.0f. +/** + * Fall height for double fall damage. Vanilla is 3000.0f. + */ #define FALL_DAMAGE_HEIGHT_LARGE 3000.0f -// Disables Mario getting stuck in snow and sand when falling. +/** + * Disables Mario getting stuck in snow and sand when falling. + */ // #define NO_GETTING_BURIED -// Prevents hands-free holding. +/** + * Prevents hands-free holding. + */ // #define HANDS_FREE_HOLDING_FIX -// Prevents Mario from losing his cap. +/** + * Prevents Mario from losing his cap. + */ // #define PREVENT_CAP_LOSS -// Enables Platform Displacement 2, also known as momentum patch. Makes Mario keep the momemtum from moving platforms. +/** + * Enables Platform Displacement 2, also known as momentum patch. Makes Mario keep the momemtum from moving platforms. + */ #define PLATFORM_DISPLACEMENT_2 -// Uses Shindou's pole behavior. +/** + * Uses Shindou's pole behavior. + */ // #define SHINDOU_POLES -// If A and Z are pressed on the same frame while running, Mario will long jump instead of ground pound. +/** + * If A and Z are pressed on the same frame while running, Mario will long jump instead of ground pound. + */ #define EASIER_LONG_JUMPS -// Enables the ability to hold Z while twirling to descend faster. +/** + * Enables the ability to hold Z while twirling to descend faster. + */ #define Z_TWIRL -// Disables bonks when ground pounding next to a wall. +/** + * Disables bonks when ground pounding next to a wall. + */ #define DISABLE_GROUNDPOUND_BONK -// Allows Mario to jump kick on steep surfaces that are set to be non slippery, instead of being forced to dive. +/** + * Allows Mario to jump kick on steep surfaces that are set to be non slippery, instead of being forced to dive. + */ #define JUMP_KICK_FIX -// Allows Mario to grab hangable ceilings from any state. +/** + * Allows Mario to grab hangable ceilings from any state. + */ #define HANGING_FIX -// The last frame after hitting a wall that will be considered a firsty when wallkicking. +/** + * The last frame after hitting a wall that will be considered a firsty when wallkicking. + */ #define FIRSTY_LAST_FRAME 1 -// The maximum angle the player can wall kick, in degrees. 0..90. To allow 45 degree wall kicks, you must supply `46` to allow 45 and under. +/** + * The maximum angle the player can wall kick, in degrees. 0..90. To allow 45 degree wall kicks, you must supply `46` to allow 45 and under. + */ #define WALL_KICK_DEGREES 45 -// This is vanilla behavior, disable it to allow ledge grabbing regardless of floor pitch. +/** + * This is vanilla behavior, disable it to allow ledge grabbing regardless of floor pitch. + */ // #define LEDGE_GRABS_CHECK_SLOPE_ANGLE -// Disables BLJs and crushes SimpleFlips's dreams. +/** + * Disables BLJs and crushes SimpleFlips's dreams. + */ // #define DISABLE_BLJ -// Re-enables upwarping when entering water. Forces you to only enter water from the top. +/** + * Re-enables upwarping when entering water. Forces you to only enter water from the top. + */ // #define WATER_PLUNGE_UPWARP /** diff --git a/include/config/config_objects.h b/include/config/config_objects.h index 6763d076..6f2a9952 100644 --- a/include/config/config_objects.h +++ b/include/config/config_objects.h @@ -4,71 +4,123 @@ * SPECIFIC OBJECT SETTINGS * ****************************/ -// -- COIN -- +/************** + * -- COIN -- + **************/ -// The distance from Mario at which coin formations spawn their coins. Vanilla is 2000.0f. -// Set this to o->oDrawingDistance for a more reasonable range at the cost of performance. +/** + * The distance from Mario at which coin formations spawn their coins. Vanilla is 2000.0f. + * Set this to o->oDrawingDistance for a more reasonable range at the cost of performance. + */ #define COIN_FORMATION_DISTANCE 2000.0f -// Moving Coins flicker and disappear when they hit lava instead of being instantly deleted. +/** + * Moving Coins flicker and disappear when they hit lava instead of being instantly deleted. + */ #define COIN_LAVA_FLICKER -// Allows for retries on collecting the remaining blue coins from a blue coin switch. +/** + * Allows for retries on collecting the remaining blue coins from a blue coin switch. + */ // #define BLUE_COIN_SWITCH_RETRY -// -- GOOMBA -- +/**************** + * -- GOOMBA -- + ****************/ -// Tiny Goombas (from THI) always drop their coin. +/** + * Tiny Goombas (from THI) always drop their coin. + */ // #define TINY_GOOMBA_ALWAYS_DROPS_COIN -// Floombas! These fellas sport custom behaviors (bhvFloomba, bhvFloombaTripletSpawner) and of course the iconic Floomba texture. -// Also supports macros (macro_floomba, macro_huge_floomba, macro_tiny_floomba, macro_floomba_triplet_spawner, macro_floomba_quintuplet_spawner). +/** + * Floombas! These fellas sport custom behaviors (bhvFloomba, bhvFloombaTripletSpawner) and of course the iconic Floomba texture. + * Also supports macros (macro_floomba, macro_huge_floomba, macro_tiny_floomba, macro_floomba_triplet_spawner, macro_floomba_quintuplet_spawner). + */ #define FLOOMBAS -// -- HOOT -- +/************** + * -- HOOT -- + **************/ -// Uses intendedYaw to control Hoot instead of the raw left and right inputs. +/** + * Uses intendedYaw to control Hoot instead of the raw left and right inputs. + */ #define HOOT_YAW_FIX -// Causes leaf particles to occasionally fall from trees which contain Hoot. +/** + * Causes leaf particles to occasionally fall from trees which contain Hoot. + */ #define HOOT_TREE_PARTICLES -// -- MR I -- +/************** + * -- MR I -- + **************/ -// Enables Mr I to shoot his particle in any direction. +/** + * Enables Mr I to shoot his particle in any direction. + */ // #define MR_I_PITCH_SHOOTING -// -- WATER RING -- +/******************** + * -- WATER RING -- + ********************/ -// Fix the water rings in DDD by checking for interaction rather than normals. +/** + * Fix the water rings in DDD by checking for interaction rather than normals. + */ #define FIX_WATER_RINGS -// -- POWER STAR -- +/******************** + * -- POWER STAR -- + ********************/ -// Collecting a Power Star will fully heal Mario. +/** + * Collecting a Power Star will fully heal Mario. + */ #define POWER_STARS_HEAL -// -- 1-UP MUSHROOM -- +/********************** + * -- 1-UP MUSHROOM -- + **********************/ -// Collecting a 1-Up Mushroom will fully heal Mario. +/** + * Collecting a 1-Up Mushroom will fully heal Mario. + */ #define MUSHROOMS_HEAL -// -- PLATFORM ON TRACK -- +/*************************** + * -- PLATFORM ON TRACK -- + ***************************/ -// Allows the speed of a platform on a track to be controlled by standing near the front or back of it. +/** + * Allows the speed of a platform on a track to be controlled by standing near the front or back of it. + */ // #define CONTROLLABLE_PLATFORM_SPEED -// -- CHAIN CHOMP -- +/********************* + * -- CHAIN CHOMP -- + *********************/ -// The number of chain balls the Chain Chomp has. Vanilla is 5. +/** + * The number of chain balls the Chain Chomp has. Vanilla is 5. + */ #define CHAIN_CHOMP_NUM_SEGMENTS 5 -// -- POKEY -- +/*************** + * -- POKEY -- + ***************/ -// The number of parts Pokey has, including the head. Vanilla is 5, max is 30. +/** + * The number of parts Pokey has, including the head. Vanilla is 5, max is 30. + */ #define POKEY_NUM_SEGMENTS 5 -// -- WIGGLER -- +/***************** + * -- WIGGLER -- + *****************/ -// The number of segments Wiggler has, not including the head. Vanilla is 4. +/** + * The number of segments Wiggler has, not including the head. Vanilla is 4. + */ #define WIGGLER_NUM_SEGMENTS 4 diff --git a/include/config/config_rom.h b/include/config/config_rom.h index 9866b51f..14ddd21c 100644 --- a/include/config/config_rom.h +++ b/include/config/config_rom.h @@ -4,19 +4,27 @@ * ROM SETTINGS * ****************/ -// Internal ROM name. NEEDS TO BE **EXACTLY** 20 CHARACTERS. Can't be 19 characters, can't be 21 characters. You can fill it with spaces. -// The end quote should be here: " +/** + * Internal ROM name. NEEDS TO BE **EXACTLY** 20 CHARACTERS. Can't be 19 characters, can't be 21 characters. You can fill it with spaces. + * The end quote should be here: " + */ #define INTERNAL_ROM_NAME "HackerSM64 " -// Enables Rumble Pak Support. -// Currently not recommended, as it may cause random crashes. +/** + * Enables Rumble Pak Support. + * Currently not recommended, as it may cause random crashes. + */ // #define ENABLE_RUMBLE (1 || VERSION_SH) -// Screen Size Defines. +/** + * Screen Size Defines. + */ #define SCREEN_WIDTH 320 #define SCREEN_HEIGHT 240 -// Height of the black borders at the top and bottom of the screen for NTSC Versions. You can set it to different values for console and emulator. -// There is generally no reason to have a value other than 0 for emulator. As for console, it provides a (small) performance boost. +/** + * Height of the black borders at the top and bottom of the screen for NTSC Versions. You can set it to different values for console and emulator. + * There is generally no reason to have a value other than 0 for emulator. As for console, it provides a (small) performance boost. + */ #define BORDER_HEIGHT_CONSOLE 0 #define BORDER_HEIGHT_EMULATOR 0 diff --git a/include/config/config_world.h b/include/config/config_world.h index 2840d33a..08ef1548 100644 --- a/include/config/config_world.h +++ b/include/config/config_world.h @@ -30,10 +30,14 @@ * 64x64 collision cells. */ -// Set this to the extended bounds mode you want, then do "make clean". +/** + * Set this to the extended bounds mode you want, then do "make clean". + */ #define EXTENDED_BOUNDS_MODE 1 -// Don't touch the stuff past this point unless you know what you're doing! +/************************************************************************** + * Don't touch the stuff past this point unless you know what you're doing! + **************************************************************************/ #if EXTENDED_BOUNDS_MODE == 0 // 1x, normal cell size #define LEVEL_BOUNDARY_MAX 0x2000L // 8192 @@ -63,8 +67,12 @@ STATIC_ASSERT(((EXTENDED_BOUNDS_MODE >= 0) && (EXTENDED_BOUNDS_MODE <= 3)), "You must set a valid extended bounds mode!"); -// The amount of cells in each axis in an area. +/** + * The amount of cells in each axis in an area. + */ #define NUM_CELLS (2 * LEVEL_BOUNDARY_MAX / CELL_SIZE) -// Use this to convert game units to cell coordinates. +/** + * Use this to convert game units to cell coordinates. + */ #define GET_CELL_COORD(p) ((((s32)(p) + LEVEL_BOUNDARY_MAX) / CELL_SIZE) & (NUM_CELLS - 1)) From b225c91d58fc557fe83dd930574a392e8586ce7f Mon Sep 17 00:00:00 2001 From: Reonu Date: Tue, 9 Aug 2022 17:08:49 +0100 Subject: [PATCH 028/180] fix level mesh not updating (#477) --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c3f63f92..18736d0a 100644 --- a/Makefile +++ b/Makefile @@ -819,10 +819,7 @@ $(BUILD_DIR)/src/game/version_data.h: tools/make_version.sh ifeq ($(FIXLIGHTS),1) # This must not be run multiple times at once, so we run it ahead of time rather than in a rule DUMMY != $(FIXLIGHTS_PY) actors -# Modify the leveldata build rule to fix lights for any files in that level's folder -$(BUILD_DIR)/levels/%/leveldata.o: levels/%/leveldata.c - $(V)$(FIXLIGHTS_PY) $(dir $<) - $(V)$(CC) -c $(CFLAGS) -MMD -MF $(BUILD_DIR)/$*.d -o $@ $< +DUMMY != $(FIXLIGHTS_PY) levels endif $(BUILD_DIR)/%.o: %.c $(call print,Compiling:,$<,$@) From aa5df070c0822f0191d62c8a22e296fe81ed12fd Mon Sep 17 00:00:00 2001 From: Gregory Heskett Date: Wed, 21 Sep 2022 11:58:25 -0400 Subject: [PATCH 029/180] Add define for using JP red coin sound (#489) --- include/config/config_audio.h | 5 +++++ sound/sequences/00_sound_player.s | 13 +++---------- src/game/behaviors/red_coin.inc.c | 5 +++++ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/include/config/config_audio.h b/include/config/config_audio.h index 5148c0d9..a770e6de 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -9,6 +9,11 @@ */ #define PERSISTENT_CAP_MUSIC +/** + * Red coins should use the unchanging JP sound effect. + */ +// #define JP_RED_COIN_SOUND + /** * Increase audio heap size to allow for larger/more custom sequences/banks/sfx to be imported without causing issues (not supported for SH). * Note that this is REQUIRED in order to use the extended 0C audio bank. Do not disable this if you're planning on using it. diff --git a/sound/sequences/00_sound_player.s b/sound/sequences/00_sound_player.s index ae2dc9a6..5fa05f40 100644 --- a/sound/sequences/00_sound_player.s +++ b/sound/sequences/00_sound_player.s @@ -4088,16 +4088,9 @@ layer_note1 31, 0x14, 127 layer_end .sound_general_red_coin: -#if defined(VERSION_EU) || defined(VERSION_SH) - chan_setbank 9 - chan_setinstr 3 -#else - chan_setinstr 128 -#endif -chan_setenvelope .envelope_3378 -// Small bugfix: .main_loop_023589 expects layer 0 to live the longest. -// I don't think this actually makes any audible difference given the -// silence at the end. +chan_setbank 9 +chan_setinstr 3 +# chan_setenvelope .envelope_3378 // Envelope for EU/SH not authentic to JP sound chan_setlayer 0, .layer_1907 chan_setlayer 1, .layer_1902 chan_setlayer 2, .layer_1909 diff --git a/src/game/behaviors/red_coin.inc.c b/src/game/behaviors/red_coin.inc.c index b9ebb0e8..36a56aa1 100644 --- a/src/game/behaviors/red_coin.inc.c +++ b/src/game/behaviors/red_coin.inc.c @@ -54,10 +54,15 @@ void bhv_red_coin_loop(void) { spawn_orange_number(o->parentObj->oHiddenStarTriggerCounter, 0, 0, 0); } +#ifdef JP_RED_COIN_SOUND + // For JP version, play an identical sound for all coins. + create_sound_spawner(SOUND_GENERAL_RED_COIN); +#else // On all versions but the JP version, each coin collected plays a higher noise. play_sound(SOUND_MENU_COLLECT_RED_COIN + (((u8) o->parentObj->oHiddenStarTriggerCounter - 1) << 16), gGlobalSoundSource); +#endif } coin_collected(); From ac45e70e5c7310ca7fd270452d158dea04bd3d99 Mon Sep 17 00:00:00 2001 From: Tubular Bells <60239773+MSpiller7@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:29:00 -0500 Subject: [PATCH 030/180] Restored exit course sound effect functionality independent of vanilla level check. (#475) May be worth revisiting in the future to address the fact the exit course warp node will always trigger this sound effect, even when shared with other warps. Would potentially also be nice to add an option for using this sound effect with 0xF3 floor warps. --- src/game/level_update.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game/level_update.c b/src/game/level_update.c index e0b17652..713b2a8f 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -410,7 +410,7 @@ void init_mario_after_warp(void) { } if (sWarpDest.levelNum == LEVEL_CASTLE && sWarpDest.areaIdx == 1 - && (sWarpDest.nodeId == 31 || sWarpDest.nodeId == 32) + && (sWarpDest.nodeId == 32) ) { play_sound(SOUND_MENU_MARIO_CASTLE_WARP, gGlobalSoundSource); } @@ -420,6 +420,13 @@ void init_mario_after_warp(void) { || sWarpDest.nodeId == 30)) { play_sound(SOUND_MENU_MARIO_CASTLE_WARP, gGlobalSoundSource); } +#endif +#ifndef DISABLE_EXIT_COURSE + if (sWarpDest.levelNum == EXIT_COURSE_LEVEL && sWarpDest.areaIdx == EXIT_COURSE_AREA + && sWarpDest.nodeId == EXIT_COURSE_NODE + ) { + play_sound(SOUND_MENU_MARIO_CASTLE_WARP, gGlobalSoundSource); + } #endif } } From 1af9f2b94a5ba305ad50a4807625790c9a41deba Mon Sep 17 00:00:00 2001 From: Tubular Bells <60239773+MSpiller7@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:49:23 -0500 Subject: [PATCH 031/180] Restores dither effect on teleport (#476) --- src/game/mario_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/mario_misc.c b/src/game/mario_misc.c index d4d4e7fe..b6fa44b1 100644 --- a/src/game/mario_misc.c +++ b/src/game/mario_misc.c @@ -309,7 +309,7 @@ static Gfx *make_gfx_mario_alpha(struct GraphNodeGenerated *node, s16 alpha) { SET_GRAPH_NODE_LAYER(node->fnNode.node.flags, LAYER_TRANSPARENT); gfxHead = alloc_display_list(3 * sizeof(*gfxHead)); gfx = gfxHead; - if (gMarioState->flags & MARIO_VANISH_CAP) { + if (gMarioState->flags & (MARIO_VANISH_CAP | MARIO_TELEPORTING)) { gDPSetAlphaCompare(gfx++, G_AC_DITHER); } else { gDPSetAlphaCompare(gfx++, G_AC_NONE); From c0e00beaf7606a4ebca63ff499a47da27343f0bb Mon Sep 17 00:00:00 2001 From: Gregory Heskett Date: Wed, 21 Sep 2022 19:51:31 -0400 Subject: [PATCH 032/180] Sound effect tables now support up to 255 sounds instead of 128 (#465) --- src/audio/external.c | 2 ++ src/audio/seqplayer.c | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/audio/external.c b/src/audio/external.c index 7b554b1a..bd189ee9 100644 --- a/src/audio/external.c +++ b/src/audio/external.c @@ -7,6 +7,7 @@ #include "external.h" #include "playback.h" #include "synthesis.h" +#include "game/debug.h" #include "game/main.h" #include "game/level_update.h" #include "game/object_list_processor.h" @@ -696,6 +697,7 @@ struct SPTask *create_next_audio_frame_task(void) { * Called from threads: thread5_game_loop */ void play_sound(s32 soundBits, f32 *pos) { + assert(((soundBits & SOUNDARGS_MASK_SOUNDID) >> SOUNDARGS_SHIFT_SOUNDID) != 0xff, "Sfx tables do not support a sound id of 0xff!"); sSoundRequests[sSoundRequestCount].soundBits = soundBits; sSoundRequests[sSoundRequestCount].position = pos; sSoundRequestCount++; diff --git a/src/audio/seqplayer.c b/src/audio/seqplayer.c index b64b8b9c..d4e9a546 100644 --- a/src/audio/seqplayer.c +++ b/src/audio/seqplayer.c @@ -1620,11 +1620,11 @@ void sequence_channel_process_script(struct SequenceChannel *seqChannel) { case 0xc5: // chan_dynsetdyntable if (value != -1) { #if defined(VERSION_EU) || defined(VERSION_SH) - seqData = (*seqChannel->dynTable)[value]; + seqData = (*seqChannel->dynTable)[(u8) value]; sp38 = (u16)((seqData[0] << 8) + seqData[1]); seqChannel->dynTable = (void *) (seqPlayer->seqData + sp38); #else - sp5A = (u16)((((*seqChannel->dynTable)[value])[0] << 8) + (((*seqChannel->dynTable)[value])[1])); + sp5A = (u16)((((*seqChannel->dynTable)[(u8) value])[0] << 8) + (((*seqChannel->dynTable)[(u8) value])[1])); seqChannel->dynTable = (void *) (seqPlayer->seqData + sp5A); #endif } @@ -1893,7 +1893,7 @@ void sequence_channel_process_script(struct SequenceChannel *seqChannel) { eu_stubbed_printf_0("Audio:Track: CTBLCALL Macro Level Over Error!\n"); } #endif - seqData = (*seqChannel->dynTable)[value]; + seqData = (*seqChannel->dynTable)[(u8) value]; #if defined(VERSION_EU) || defined(VERSION_SH) state->stack[state->depth++] = state->pc; sp38 = (u16)((seqData[0] << 8) + seqData[1]); @@ -2011,11 +2011,11 @@ void sequence_channel_process_script(struct SequenceChannel *seqChannel) { break; case 0xb5: - seqChannel->unkC8 = *(u16 *) (*seqChannel->dynTable)[value]; + seqChannel->unkC8 = *(u16 *) (*seqChannel->dynTable)[(u8) value]; break; case 0xb6: - value = (*seqChannel->dynTable)[0][value]; + value = (*seqChannel->dynTable)[0][(u8) value]; break; #endif } @@ -2045,7 +2045,7 @@ void sequence_channel_process_script(struct SequenceChannel *seqChannel) { case 0x98: if (value != -1 && seq_channel_set_layer(seqChannel, loBits) != -1) { - seqData = (*seqChannel->dynTable)[value]; + seqData = (*seqChannel->dynTable)[(u8) value]; sp5A = ((seqData[0] << 8) + seqData[1]); seqChannel->layers[loBits]->scriptState.pc = seqPlayer->seqData + sp5A; } @@ -2121,7 +2121,7 @@ void sequence_channel_process_script(struct SequenceChannel *seqChannel) { case 0xb0: // chan_dynsetlayer if (value != -1 && seq_channel_set_layer(seqChannel, loBits) != -1) { - seqData = (*seqChannel->dynTable)[value]; + seqData = (*seqChannel->dynTable)[(u8) value]; sp5A = ((seqData[0] << 8) + seqData[1]); seqChannel->layers[loBits]->scriptState.pc = seqPlayer->seqData + sp5A; } From 058399308ad5b4adcc54b4d8ac3b1a3b1092612b Mon Sep 17 00:00:00 2001 From: Arceveti <73617174+Arceveti@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:10:41 -0700 Subject: [PATCH 033/180] Fix inverted null check in obj_get_model_id (#484) --- src/game/object_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/object_helpers.c b/src/game/object_helpers.c index 64d7cdf5..c2762f81 100644 --- a/src/game/object_helpers.c +++ b/src/game/object_helpers.c @@ -866,7 +866,7 @@ s32 cur_obj_has_model(ModelID16 modelID) { // HackerSM64 function ModelID32 obj_get_model_id(struct Object *obj) { - if (!obj->header.gfx.sharedChild) { + if (obj->header.gfx.sharedChild != NULL) { for (s32 i = MODEL_NONE; i < MODEL_ID_COUNT; i++) { if (obj->header.gfx.sharedChild == gLoadedGraphNodes[i]) { return i; From d5019ffd786a44a04d634d1c40fb83bce5663f27 Mon Sep 17 00:00:00 2001 From: Tubular Bells <60239773+MSpiller7@users.noreply.github.com> Date: Wed, 21 Sep 2022 19:13:19 -0500 Subject: [PATCH 034/180] Clean up remaining DISABLE_LEVEL_CHECKS ifndefs (#479) --- src/game/level_update.c | 6 +++--- src/game/puppycam2.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/level_update.c b/src/game/level_update.c index 713b2a8f..0a12be7d 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -557,9 +557,9 @@ s16 music_unchanged_through_warp(s16 arg) { s16 destArea = warpNode->node.destArea; s16 unchanged = TRUE; - s16 currBgMusic; -#ifndef DISABLE_LEVEL_SPECIFIC_CHECKS +#ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS + s16 currBgMusic; if (levelNum == LEVEL_BOB && levelNum == gCurrLevelNum && destArea == gCurrAreaIndex) { currBgMusic = get_current_background_music(); if (currBgMusic == SEQUENCE_ARGS(4, SEQ_EVENT_POWERUP | SEQ_VARIATION) @@ -577,7 +577,7 @@ s16 music_unchanged_through_warp(s16 arg) { if (get_current_background_music() != destParam2) { unchanged = FALSE; } -#ifndef DISABLE_LEVEL_SPECIFIC_CHECKS +#ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS } #endif return unchanged; diff --git a/src/game/puppycam2.c b/src/game/puppycam2.c index 01fd5f3c..089155ad 100644 --- a/src/game/puppycam2.c +++ b/src/game/puppycam2.c @@ -486,7 +486,7 @@ void puppycam_init(void) { gPuppyCam.targetObj2 = NULL; gPuppyCam.intendedFlags = PUPPYCAM_BEHAVIOUR_DEFAULT; -#ifndef DISABLE_LEVEL_SPECIFIC_CHECKS +#ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS if (gCurrLevelNum == LEVEL_PSS || (gCurrLevelNum == LEVEL_TTM && gCurrAreaIndex == 2) || (gCurrLevelNum == LEVEL_CCM && gCurrAreaIndex == 2)) { gPuppyCam.intendedFlags |= PUPPYCAM_BEHAVIOUR_SLIDE_CORRECTION; } From c09f178df015a6387d2a6c64e4d39c15f17a253d Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Wed, 21 Sep 2022 19:14:12 -0500 Subject: [PATCH 035/180] reverted geo bone (#474) --- include/geo_commands.h | 17 ----------- src/engine/geo_layout.c | 25 ---------------- src/engine/geo_layout.h | 1 - src/engine/graph_node.c | 22 -------------- src/engine/graph_node.h | 16 ++-------- src/game/rendering_graph_node.c | 53 --------------------------------- 6 files changed, 3 insertions(+), 131 deletions(-) diff --git a/include/geo_commands.h b/include/geo_commands.h index 3735719d..d8c0c6e4 100644 --- a/include/geo_commands.h +++ b/include/geo_commands.h @@ -58,7 +58,6 @@ enum GeoLayoutCommands { /*0x1E*/ GEO_CMD_NOP_1E, /*0x1F*/ GEO_CMD_NOP_1F, /*0x20*/ GEO_CMD_NODE_CULLING_RADIUS, - /*0x21*/ GEO_CMD_BONE, }; // geo layout macros @@ -468,20 +467,4 @@ enum GeoLayoutCommands { #define GEO_CULLING_RADIUS(cullingRadius) \ CMD_BBH(GEO_CMD_NODE_CULLING_RADIUS, 0x00, cullingRadius) -/** - * 0x21: Create a scene graph node that is rotated by the object's animation + an initial rotation. - * u8 drawingLayer - * s16 xTranslation - * s16 yTranslation - * s16 zTranslation - * s16 xRotation - * s16 yRotation - * s16 zRotation - * u32 displayList: dislay list segmented address - */ -#define GEO_BONE(layer, tx, ty, tz, rx, ry, rz, displayList) \ - CMD_BBH(GEO_CMD_BONE, layer, 0x0000), \ - CMD_HHHHHH(tx, ty, tz, rx, ry, rz), \ - CMD_PTR(displayList) - #endif // GEO_COMMANDS_H diff --git a/src/engine/geo_layout.c b/src/engine/geo_layout.c index a291d05c..15172300 100644 --- a/src/engine/geo_layout.c +++ b/src/engine/geo_layout.c @@ -42,7 +42,6 @@ GeoLayoutCommandProc GeoLayoutJumpTable[] = { /*GEO_CMD_NOP_1E */ geo_layout_cmd_nop2, /*GEO_CMD_NOP_1F */ geo_layout_cmd_nop3, /*GEO_CMD_NODE_CULLING_RADIUS */ geo_layout_cmd_node_culling_radius, - /*GEO_CMD_NODE_BONE */ geo_layout_cmd_bone, }; struct GraphNode gObjParentGraphNode; @@ -751,30 +750,6 @@ void geo_layout_cmd_node_culling_radius(void) { gGeoLayoutCommand += 0x04 << CMD_SIZE_SHIFT; } -/* - Create a scene graph node that is rotated by the object's animation + an initial rotation. -*/ -void geo_layout_cmd_bone(void) { - struct GraphNodeBone *graphNode; - Vec3s translation; - Vec3s rotation; - s32 drawingLayer = cur_geo_cmd_u8(0x01); - void *displayList; - s16 *cmdPos = (s16 *) gGeoLayoutCommand; - - cmdPos = read_vec3s(translation, &cmdPos[2]); - cmdPos = read_vec3s(rotation, &cmdPos[0]); - displayList = *(void **) &cmdPos[0]; - cmdPos += 2 << CMD_SIZE_SHIFT; - - graphNode = - init_graph_node_bone(gGraphNodePool, NULL, drawingLayer, displayList, translation, rotation); - - register_scene_graph_node(&graphNode->node); - - gGeoLayoutCommand = (u8 *) cmdPos; -} - struct GraphNode *process_geo_layout(struct AllocOnlyPool *pool, void *segptr) { // set by register_scene_graph_node when gCurGraphNodeIndex is 0 // and gCurRootGraphNode is NULL diff --git a/src/engine/geo_layout.h b/src/engine/geo_layout.h index 8234fff7..fdfb0bff 100644 --- a/src/engine/geo_layout.h +++ b/src/engine/geo_layout.h @@ -82,7 +82,6 @@ void geo_layout_cmd_nop(void); void geo_layout_cmd_copy_view(void); void geo_layout_cmd_node_held_obj(void); void geo_layout_cmd_node_culling_radius(void); -void geo_layout_cmd_bone(void); struct GraphNode *process_geo_layout(struct AllocOnlyPool *pool, void *segptr); diff --git a/src/engine/graph_node.c b/src/engine/graph_node.c index 7143d9dd..cd64c9ee 100644 --- a/src/engine/graph_node.c +++ b/src/engine/graph_node.c @@ -356,28 +356,6 @@ struct GraphNodeAnimatedPart *init_graph_node_animated_part(struct AllocOnlyPool return graphNode; } -/** - * Allocates and returns a newly created bone node with initial rotation/translation - */ -struct GraphNodeBone *init_graph_node_bone(struct AllocOnlyPool *pool, - struct GraphNodeBone *graphNode, - s32 drawingLayer, void *displayList, - Vec3s translation, Vec3s rotation) { - if (pool != NULL) { - graphNode = alloc_only_pool_alloc(pool, sizeof(struct GraphNodeBone)); - } - - if (graphNode != NULL) { - init_scene_graph_node_links(&graphNode->node, GRAPH_NODE_TYPE_BONE); - vec3s_copy(graphNode->translation, translation); - vec3s_copy(graphNode->rotation, rotation); - SET_GRAPH_NODE_LAYER(graphNode->node.flags, drawingLayer); - graphNode->displayList = displayList; - } - - return graphNode; -} - /** * Allocates and returns a newly created billboard node */ diff --git a/src/engine/graph_node.h b/src/engine/graph_node.h index 0fff4613..fc0f5ed9 100644 --- a/src/engine/graph_node.h +++ b/src/engine/graph_node.h @@ -64,7 +64,6 @@ enum GraphNodeTypes { GRAPH_NODE_TYPE_ROTATION, GRAPH_NODE_TYPE_OBJECT, GRAPH_NODE_TYPE_ANIMATED_PART, - GRAPH_NODE_TYPE_BONE, GRAPH_NODE_TYPE_BILLBOARD, GRAPH_NODE_TYPE_DISPLAY_LIST, GRAPH_NODE_TYPE_SCALE, @@ -96,10 +95,9 @@ enum GraphNodeTypes { GRAPH_NODE_TYPE_ROTATION = 0x17, GRAPH_NODE_TYPE_OBJECT = 0x18, GRAPH_NODE_TYPE_ANIMATED_PART = 0x19, - GRAPH_NODE_TYPE_BONE = 0x1A, - GRAPH_NODE_TYPE_BILLBOARD = 0x1B, - GRAPH_NODE_TYPE_DISPLAY_LIST = 0x1C, - GRAPH_NODE_TYPE_SCALE = 0x1D, + GRAPH_NODE_TYPE_BILLBOARD = 0x1A, + GRAPH_NODE_TYPE_DISPLAY_LIST = 0x1B, + GRAPH_NODE_TYPE_SCALE = 0x1C, GRAPH_NODE_TYPE_SHADOW = 0x28, GRAPH_NODE_TYPE_OBJECT_PARENT = 0x29, GRAPH_NODE_TYPE_GENERATED_LIST = (0x2A | GRAPH_NODE_TYPE_FUNCTIONAL), @@ -293,13 +291,6 @@ struct GraphNodeAnimatedPart { /*0x18*/ Vec3s translation; }; -struct GraphNodeBone { - struct GraphNode node; - void *displayList; - Vec3s translation; - Vec3s rotation; -}; - /** A GraphNode that draws a display list rotated in a way to always face the * camera. Note that if the entire object is a billboard (like a coin or 1-up) * then it simply sets the billboard flag for the entire object, this node is @@ -424,7 +415,6 @@ struct GraphNodeScale *init_graph_node_scale (struct struct GraphNodeObject *init_graph_node_object (struct AllocOnlyPool *pool, struct GraphNodeObject *graphNode, struct GraphNode *sharedChild, Vec3f pos, Vec3s angle, Vec3f scale); struct GraphNodeCullingRadius *init_graph_node_culling_radius (struct AllocOnlyPool *pool, struct GraphNodeCullingRadius *graphNode, s16 radius); struct GraphNodeAnimatedPart *init_graph_node_animated_part (struct AllocOnlyPool *pool, struct GraphNodeAnimatedPart *graphNode, s32 drawingLayer, void *displayList, Vec3s translation); -struct GraphNodeBone *init_graph_node_bone (struct AllocOnlyPool *pool, struct GraphNodeBone *graphNode, s32 drawingLayer, void *displayList, Vec3s translation, Vec3s rotation); struct GraphNodeBillboard *init_graph_node_billboard (struct AllocOnlyPool *pool, struct GraphNodeBillboard *graphNode, s32 drawingLayer, void *displayList, Vec3s translation); struct GraphNodeDisplayList *init_graph_node_display_list (struct AllocOnlyPool *pool, struct GraphNodeDisplayList *graphNode, s32 drawingLayer, void *displayList); struct GraphNodeShadow *init_graph_node_shadow (struct AllocOnlyPool *pool, struct GraphNodeShadow *graphNode, s16 shadowScale, u8 shadowSolidity, u8 shadowType); diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index e4239179..9b562e92 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -844,58 +844,6 @@ void geo_process_animated_part(struct GraphNodeAnimatedPart *node) { append_dl_and_return(((struct GraphNodeDisplayList *)node)); } -/** - * Render an animated part that has an initial rotation value - */ -void geo_process_bone(struct GraphNodeBone *node) { - Vec3s rotation = { node->rotation[0], node->rotation[1], node->rotation[2] }; - Vec3f translation = { node->translation[0], node->translation[1], node->translation[2] }; - - if (gCurrAnimType == ANIM_TYPE_TRANSLATION) { - translation[0] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] - * gCurrAnimTranslationMultiplier; - translation[1] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] - * gCurrAnimTranslationMultiplier; - translation[2] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] - * gCurrAnimTranslationMultiplier; - gCurrAnimType = ANIM_TYPE_ROTATION; - } else { - if (gCurrAnimType == ANIM_TYPE_LATERAL_TRANSLATION) { - translation[0] += - gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] - * gCurrAnimTranslationMultiplier; - gCurrAnimAttribute += 2; - translation[2] += - gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] - * gCurrAnimTranslationMultiplier; - gCurrAnimType = ANIM_TYPE_ROTATION; - } else { - if (gCurrAnimType == ANIM_TYPE_VERTICAL_TRANSLATION) { - gCurrAnimAttribute += 2; - translation[1] += - gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)] - * gCurrAnimTranslationMultiplier; - gCurrAnimAttribute += 2; - gCurrAnimType = ANIM_TYPE_ROTATION; - } else if (gCurrAnimType == ANIM_TYPE_NO_TRANSLATION) { - gCurrAnimAttribute += 6; - gCurrAnimType = ANIM_TYPE_ROTATION; - } - } - } - - if (gCurrAnimType == ANIM_TYPE_ROTATION) { - rotation[0] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)]; - rotation[1] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)]; - rotation[2] += gCurrAnimData[retrieve_animation_index(gCurrAnimFrame, &gCurrAnimAttribute)]; - } - - mtxf_rotate_xyz_and_translate_and_mul(rotation, translation, gMatStack[gMatStackIndex + 1], gMatStack[gMatStackIndex]); - - inc_mat_stack(); - append_dl_and_return((struct GraphNodeDisplayList *)node); -} - /** * Initialize the animation-related global variables for the currently drawn * object's animation. @@ -1282,7 +1230,6 @@ void geo_process_node_and_siblings(struct GraphNode *firstNode) { case GRAPH_NODE_TYPE_GENERATED_LIST: geo_process_generated_list ((struct GraphNodeGenerated *) curGraphNode); break; case GRAPH_NODE_TYPE_BACKGROUND: geo_process_background ((struct GraphNodeBackground *) curGraphNode); break; case GRAPH_NODE_TYPE_HELD_OBJ: geo_process_held_object ((struct GraphNodeHeldObject *) curGraphNode); break; - case GRAPH_NODE_TYPE_BONE: geo_process_bone ((struct GraphNodeBone *) curGraphNode); break; default: geo_try_process_children ((struct GraphNode *) curGraphNode); break; } } From 4ae3a431bc71e6e8e95bfc3ec7c844ab4ded0d78 Mon Sep 17 00:00:00 2001 From: someone2639 Date: Wed, 21 Sep 2022 20:36:39 -0400 Subject: [PATCH 036/180] Use the error macro for rcp hang --- src/boot/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/main.c b/src/boot/main.c index b98a01bc..67a0530b 100644 --- a/src/boot/main.c +++ b/src/boot/main.c @@ -315,7 +315,7 @@ void stop_rcp_hang_timer(void) { } void alert_rcp_hung_up(void) { - assert(0, "RCP is HUNG UP!! Oh! MY GOD!!"); + error("RCP is HUNG UP!! Oh! MY GOD!!"); } void check_cache_emulation() { From 2e701ad9e739666ed8e170dc2d2b5006f3bbe729 Mon Sep 17 00:00:00 2001 From: someone2639 Date: Wed, 21 Sep 2022 21:03:24 -0400 Subject: [PATCH 037/180] add error macro that will always fire (#492) * add error macro that will always fire * add an aggress macro like an assert macro but more aggressive and independent of DEBUG being defined (gives us 3 crash reporting options) Co-authored-by: someone2639 --- src/game/debug.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/game/debug.h b/src/game/debug.h index c5246e37..522ace2d 100644 --- a/src/game/debug.h +++ b/src/game/debug.h @@ -45,11 +45,27 @@ extern u32 __n64Assert_LineNum; extern char *__n64Assert_Message; extern void __n64Assert(char *fileName, u32 lineNum, char *message); +/** + * Will always cause a crash with your message of choice + */ +#define error(message) __n64Assert(__FILE__, __LINE__, (message)) +/** + * Will always cause a crash if cond is not true (handle with care) + */ +#define aggress(cond, message) do {\ + if ((cond) == FALSE) { \ + error(message); \ + } \ +} while (0); + +/** + * Will cause a crash if cond is not true, and DEBUG is defined (allows for quick removal of littered asserts) + */ #ifdef DEBUG #define assert(cond, message) do {\ if ((cond) == FALSE) { \ - __n64Assert(__FILE__, __LINE__, (message)); \ + error(message); \ } \ } while (0); #else From de34eb3b84764bc79912561b410457d77933b0b3 Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Wed, 21 Sep 2022 20:18:37 -0500 Subject: [PATCH 038/180] Remove redundant s2d directory and delete unused files/defines (#457) --- .vscode/c_cpp_properties.json | 4 +- CHANGES | 416 --- Doxyfile | 2482 ----------------- Jenkinsfile | 60 - Makefile | 45 +- gziprules.mk => compression/gziprules.mk | 0 mio0rules.mk => compression/mio0rules.mk | 0 rnc1rules.mk => compression/rnc1rules.mk | 0 rnc2rules.mk => compression/rnc2rules.mk | 0 uncomprules.mk => compression/uncomprules.mk | 0 yay0rules.mk => compression/yay0rules.mk | 0 data/sein.s | 7 - data/sein800.hvqm | Bin 3573004 -> 0 bytes diff.py | 1525 ---------- diff_settings.py | 20 - first-diff.py | 320 --- haveyourcake2.patch | 752 ----- include/macros.h | 6 - levels/bbh/leveldata.c | 1 - .../bbh/tumbling_platform_far/collision.inc.c | 2 - levels/castle_courtyard/leveldata.c | 1 - levels/castle_courtyard/texture.inc.c | 2 - .../clock_hour_hand/collision.inc.c | 2 - .../clock_minute_hand/collision.inc.c | 2 - levels/castle_inside/leveldata.c | 2 - levels/sa/leveldata.c | 1 - levels/sa/texture.inc.c | 2 - levels/ssl/eyerok_col/geo.inc.c | 2 - levels/ssl/eyerok_col/model.inc.c | 2 - levels/ssl/geo.c | 1 - levels/ssl/leveldata.c | 1 - levels/totwc/cloud/collision.inc.c | 2 - levels/totwc/leveldata.c | 1 - levels/ttc/large_gear/collision.inc.c | 2 - levels/ttc/leveldata.c | 2 - levels/ttc/small_gear/collision.inc.c | 2 - rename_sym.sh | 13 - src/goddard/bad_declarations.h | 40 - src/goddard/debug_utils.c | 6 - src/goddard/draw_objects.c | 13 +- src/goddard/dynlist_proc.c | 10 +- src/goddard/objects.c | 12 - src/goddard/old_menu.h | 3 - src/goddard/renderer.c | 16 +- src/goddard/shape_helper.h | 3 - src/s2d_engine/Makefile | 2 +- src/s2d_engine/s2d_engine/Makefile | 45 - src/s2d_engine/s2d_engine/README.md | 54 - src/s2d_engine/s2d_engine/config.h | 98 - src/s2d_engine/s2d_engine/debug.h | 15 - src/s2d_engine/s2d_engine/f3d_draw.c | 92 - src/s2d_engine/s2d_engine/fixed_point_math.c | 32 - src/s2d_engine/s2d_engine/fixedpoint.h | 5 - src/s2d_engine/s2d_engine/fonts/comicsans.c | 1796 ------------ src/s2d_engine/s2d_engine/fonts/comicsans.h | 136 - src/s2d_engine/s2d_engine/fonts/delfino.c | 1796 ------------ src/s2d_engine/s2d_engine/fonts/delfino.h | 136 - src/s2d_engine/s2d_engine/fonts/impact.c | 1796 ------------ src/s2d_engine/s2d_engine/fonts/impact.h | 136 - src/s2d_engine/s2d_engine/fonts/papyrus.c | 1796 ------------ src/s2d_engine/s2d_engine/fonts/papyrus.h | 136 - .../s2d_engine/fonts/timesnewroman.c | 1796 ------------ .../s2d_engine/fonts/timesnewroman.h | 136 - src/s2d_engine/s2d_engine/fonts/ubuntu.c | 1796 ------------ src/s2d_engine/s2d_engine/fonts/ubuntu.h | 136 - src/s2d_engine/s2d_engine/init.c | 24 - src/s2d_engine/s2d_engine/init.h | 14 - src/s2d_engine/s2d_engine/mtx.c | 95 - src/s2d_engine/s2d_engine/mtx.h | 25 - src/s2d_engine/s2d_engine/s2d_buffer.c | 39 - src/s2d_engine/s2d_engine/s2d_draw.c | 86 - src/s2d_engine/s2d_engine/s2d_draw.h | 23 - src/s2d_engine/s2d_engine/s2d_error.c | 23 - src/s2d_engine/s2d_engine/s2d_error.h | 9 - src/s2d_engine/s2d_engine/s2d_kerning_table.c | 0 src/s2d_engine/s2d_engine/s2d_parse.c | 352 --- src/s2d_engine/s2d_engine/s2d_print.h | 35 - src/s2d_engine/s2d_engine/s2d_ustdlib.c | 55 - src/s2d_engine/s2d_engine/s2d_ustdlib.h | 5 - .../s2d_engine/x86_testing_ground/atoi.c | 227 -- 80 files changed, 16 insertions(+), 18714 deletions(-) delete mode 100644 CHANGES delete mode 100644 Doxyfile delete mode 100644 Jenkinsfile rename gziprules.mk => compression/gziprules.mk (100%) rename mio0rules.mk => compression/mio0rules.mk (100%) rename rnc1rules.mk => compression/rnc1rules.mk (100%) rename rnc2rules.mk => compression/rnc2rules.mk (100%) rename uncomprules.mk => compression/uncomprules.mk (100%) rename yay0rules.mk => compression/yay0rules.mk (100%) delete mode 100644 data/sein.s delete mode 100644 data/sein800.hvqm delete mode 100755 diff.py delete mode 100644 diff_settings.py delete mode 100755 first-diff.py delete mode 100644 haveyourcake2.patch delete mode 100644 levels/bbh/tumbling_platform_far/collision.inc.c delete mode 100644 levels/castle_courtyard/texture.inc.c delete mode 100644 levels/castle_inside/clock_hour_hand/collision.inc.c delete mode 100644 levels/castle_inside/clock_minute_hand/collision.inc.c delete mode 100644 levels/sa/texture.inc.c delete mode 100644 levels/ssl/eyerok_col/geo.inc.c delete mode 100644 levels/ssl/eyerok_col/model.inc.c delete mode 100644 levels/totwc/cloud/collision.inc.c delete mode 100644 levels/ttc/large_gear/collision.inc.c delete mode 100644 levels/ttc/small_gear/collision.inc.c delete mode 100755 rename_sym.sh delete mode 100644 src/goddard/bad_declarations.h delete mode 100644 src/s2d_engine/s2d_engine/Makefile delete mode 100644 src/s2d_engine/s2d_engine/README.md delete mode 100644 src/s2d_engine/s2d_engine/config.h delete mode 100644 src/s2d_engine/s2d_engine/debug.h delete mode 100644 src/s2d_engine/s2d_engine/f3d_draw.c delete mode 100644 src/s2d_engine/s2d_engine/fixed_point_math.c delete mode 100644 src/s2d_engine/s2d_engine/fixedpoint.h delete mode 100644 src/s2d_engine/s2d_engine/fonts/comicsans.c delete mode 100644 src/s2d_engine/s2d_engine/fonts/comicsans.h delete mode 100644 src/s2d_engine/s2d_engine/fonts/delfino.c delete mode 100644 src/s2d_engine/s2d_engine/fonts/delfino.h delete mode 100644 src/s2d_engine/s2d_engine/fonts/impact.c delete mode 100644 src/s2d_engine/s2d_engine/fonts/impact.h delete mode 100644 src/s2d_engine/s2d_engine/fonts/papyrus.c delete mode 100644 src/s2d_engine/s2d_engine/fonts/papyrus.h delete mode 100644 src/s2d_engine/s2d_engine/fonts/timesnewroman.c delete mode 100644 src/s2d_engine/s2d_engine/fonts/timesnewroman.h delete mode 100644 src/s2d_engine/s2d_engine/fonts/ubuntu.c delete mode 100644 src/s2d_engine/s2d_engine/fonts/ubuntu.h delete mode 100644 src/s2d_engine/s2d_engine/init.c delete mode 100644 src/s2d_engine/s2d_engine/init.h delete mode 100644 src/s2d_engine/s2d_engine/mtx.c delete mode 100644 src/s2d_engine/s2d_engine/mtx.h delete mode 100644 src/s2d_engine/s2d_engine/s2d_buffer.c delete mode 100644 src/s2d_engine/s2d_engine/s2d_draw.c delete mode 100644 src/s2d_engine/s2d_engine/s2d_draw.h delete mode 100644 src/s2d_engine/s2d_engine/s2d_error.c delete mode 100644 src/s2d_engine/s2d_engine/s2d_error.h delete mode 100644 src/s2d_engine/s2d_engine/s2d_kerning_table.c delete mode 100644 src/s2d_engine/s2d_engine/s2d_parse.c delete mode 100644 src/s2d_engine/s2d_engine/s2d_print.h delete mode 100644 src/s2d_engine/s2d_engine/s2d_ustdlib.c delete mode 100644 src/s2d_engine/s2d_engine/s2d_ustdlib.h delete mode 100644 src/s2d_engine/s2d_engine/x86_testing_ground/atoi.c diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 71be5a3d..1c0a20dc 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -26,9 +26,7 @@ "VERSION_US=1", "F3DEX_GBI_2=1", "F3DZEX_NON_GBI_2=1", - "F3DEX_GBI_SHARED=1", - "NON_MATCHING=1", - "AVOID_UB=1" + "F3DEX_GBI_SHARED=1" ], "compilerPath": "/usr/bin/mips-linux-gnu-gcc", "cStandard": "gnu17", diff --git a/CHANGES b/CHANGES deleted file mode 100644 index f12a7381..00000000 --- a/CHANGES +++ /dev/null @@ -1,416 +0,0 @@ -Refresh 15 (mostly a hotfix for RSP microcode selection) - -1.) Renamed frame_buffer funcs and _ZBUFFER (#1184) -2.) RSP Microcode Hotfix (#1183) -3.) Label osSetTimer.c (#1182) -4.) Fix styling (#1177) -5.) Rename all `FrameBuffer` variants to `Framebuffer` (#1176) -6.) Remove (WIP) from sh. -7.) Allow both archives and ELF objects to be patched (#1127) - -Refresh 14 - -1.) Label whomp and some object fields (#1174) -2.) Generate MIO0 object files using binutils `ld` instead of `as` (#1173) -3.) Bowser documentation (#1166) -4.) Fix comment syntax in 00_sound_player.0 (#1172) -5.) Rename in-game menu variables (#1163) -6.) Document double red coin sound and JP sound glitch (#1170) -7.) Document different bug in external.c (#1168) -8.) updated names/types of octagonal platform data (#1164) -9.) Label a number of unnamed variables. (#1169) -10.) Document JP PU sound glitch (#1167) -11.) Set model ids to spawn_triangle_break_particles (#1165) -12.) Fix borders in clear_frame_buffer (#1162) -13.) Fix seq header files for 64-bit (#1161) -14.) Game_init.c remaining doc (#1158) -15.) Label a couple static variables in sound_init.c (#1159) -16.) Properly define dialog values (status, flags, cutscenes) (#1153) -17.) Label all of amp's assets. (#1018) -18.) Split audio/synthesis.c into Shindou/non-Shindou files (#1144) -19.) Avoid CC_CHECK warnings when using gcc (#1157) -20.) level_select_menu.c => title_screen.c (#1152) -21.) Use C preprocessor on assembly files (#1126) -22.) Replace output_level_headers.py with sed equivalent (#1109) -23.) Fix CC_CHECK warnings related to unused symbols and UB (#1155) -24.) Define remaining floor lower limit values (#1147) -25.) use r+b mode for libultra.a patch tool (#1148) -26.) Use proper values for gPrevFrameObjectCount ifs (#1146) -27.) Some minor bowser.inc.c labelling. (#1150) -28.) fix king bob-omb texture pointers (#1145) -29.) Split audio/load.c into Shindou/non-Shindou files (#1143) -30.) Small Shindou audio cleanups (#1142) -31.) Fix endians in ALSeqData (#1141) -32.) Document S8 decoder rsp operation and some more (#1139) -33.) Fix Shindou synthesis_process_note fake match (#1140) -34.) More audio documentation, for the new rsp code and other fixes (#1138) -35.) Build fixes for macOS: cpp, clang, recomp, aiff_extract_codebook (#1135) -36.) Add ENABLE_RUMBLE to config.h (#1122) -37.) Reduce recomp memory consumption by using smaller disassembly blocks (#1128) -38.) Makefile fixes (#1123) -39.) Update README.md -40.) Update README.md -41.) Reflect current decompilation status -42.) Allow both archives and ELF objects to be patched (#1127) -43.) Remove WIP mention in README for sh version. - -Refresh 13 2 - -- No more nonmatchings remain for all builds including Shindou. - -1.) Shindou OK (#1118) -2.) Match shindou sequence_player_process_sequence (#1117) -3.) Match func_sh_802f4e50 (#1116) - -Refresh 13 - -- No more nonmatchings remain for US, JP, or EU builds. Three(!!!) remain for Shindou (SH). - -*) SHINDOU MATCHING (#1081) -*) Makefile gcc fixes (#1114) - -1.) Update diff.py (#1113) -2.) Add support for generating C arrays from n64graphics and add Texture typedef (#1032) -3.) Update README and Dockerfile with recomp info (#1105) -4.) Support building tools with MSYS2 (#1112) -5.) Support building tools with clang and macOS (#1106) -6.) Clean tools directory when running distclean target (#1104) -7.) Make build output cleaner (#1095) -8.) Added 2 surface defines to bowser.inc.c (#1111) -9.) fix fake matchings (#1108) -10.) Use statically recompiled IDO instead of qemu-irix (#1099) -11.) Add VERBOSE=1 to Jenkinsfile -12.) updated intro_geo to use layer defines for geo flags (#1090) -13.) Fix F3DZEX (#1097) -14.) layer_transpose should take an s8 (#1093) -15.) Fix tools/ build (#1082) -16.) Relabel and document fish.inc.c (#1077) -17.) Ensure all calls to .py files use $(PYTHON) (#1080) -18.) Name Mario, Peach, and instrument sound files (#1078) -19.) Goddard labeling, part 2 (#1076) -20.) Fix envfx_snow and envfx_bubbles fake matches (#1075) -21.) Use array subscripts instead of pointer math in 2 files (#1074) -22.) refactor Makefile a bit (#1068) -23.) Further improvements on field names (#1059) -24.) Label and document manta_ray.inc.c (#1073) -25.) Fix level_script and behavior fake matches (#1072) -26.) Proper cell defines and more floor lower limit values. (#1065) -27.) Document and re-label some goddard/intro code (#1069) -28.) Match remaining functions (#1070) -29.) match 'spawn_special_objects' (#1071) -30.) Document parts of external.c and format sound defines (#1067) - -Refresh 12 - -1.) Debug box improvements (#1066) -2.) Improve 'geo_render_mirror_mario' (#1064) -3.) Cleanup and small labeling (#1063) -4.) Anim renames and other related renames (#1062) -5.) remove do while 0 and make one line comments consistent (#1061) -6.) fixed typo in segments.h (#1060) -7.) Name unknown fields (from public repo) (#1058) -8.) Change 'void *' to 'struct MainPoolState *' (#1057) -9.) Fix type of freeList (#1056) -10.) Newer version of diff script (#1055) -11.) Add stubbed_printfs based on unused audio strings (#1054) -12.) Fix comment in paintings.c (#1053) -13.) Add defines for hardcoded cell/floor height values (#1051) -14.) Update README.md: Remove GitHub specific Markdown syntax (#1052) -15.) Properly label interation status that handle's Bowser's shockwave attack (#1050) - -Refresh 11 -1.) Make geo_process_level_of_detail endian-independent (#1049) -2.) Label oMoveFlags and slight cleanup. (#1046) -3.) Avoid UB in synthesis_resample_and_mix_reverb (#1048) -4.) Change some void * to correct type (#1047) -5.) Remove oPathedWaypointsS16 and convert all paths to Trajectory struct. (#1045) -6.) Mr Blizzard documentation, Tox Box Unks (#1042) -7.) Pipe input to textconv. (#1041) -8.) Remove erroneous long double casts from audiofile.cpp (#1039) -9.) Replace fixed dialogID in play_dialog_sound to DIALOG_COUNT (#1040) - -Refresh #10.1 -1.) Diff update (#1033) -2.) Fix texture dimensions for exclamation boxes (#1034) -3.) Fix armips compilation on Windows by changing order of inclusion files (#1035) -4.) Embed libaudiofile into the repo as a single file (#1036) -5.) Fix some tools issues found while compiling on MSYS2 (#1037) - -Refresh #10 -1.) GCC 9 noreturn UB fixes (#961) -2.) List supported binutils variants in README.md (#960) -3.) fix fly guy's possible values for target roll -4.) clarify that 1 is an exclusive bound in random_float (#962) -5.) replace unkB8 with prevNumStarsForDialog (#963) -6.) Replace "BulletBillUnkF8" with "BulletBillInitialMoveYaw" (#966) -7.) Renamed more warp behaviors and spawn types (#949) -8.) EU bss cleanups (#965) -9.) Add -fno-zero-initialized-in-bss to GCC CFLAGS (#968) -10.) Use empty .SECONDARY target instead of .PRECIOUS (#964) -11.) Match EU seq_channel_layer_process_script (#969) -12.) Fix version variable overwriting bug for non-matching compilations (#974) -13.) small bhv_collect_star_init labeling (#972) -14.) Align SI DMA command buffers, add more names to osCont code (#973) -15.) Minor for loop fix in playback.c (#976) -16.) Add Docker config (Public #36) -17.) Fix usage output crash for skyconv (#977) -18.) Cleanup tools and their build flags (#978) -19.) Print more detailed file reading error messages in extract_assets (#982) -20.) Remove asmdiff (#983) -21.) Fixed tabledesign makefile bug (#985) -22.) Improve first-diff.py (#987) -23.) Bring in some enhancements such as widescreen enhancements (#981) -24.) Fix background shadow border if widescreen in shade_screen (#988) -25.) Merge common EU sections in osExceptionPreamble (#990) -26.) Introduce the NO_SEGMENTED_MEMORY define (#989) -27.) NO_SEGMENTED_MEMORY comments (#992) -28.) Introduce f3dex2e and a GBI_FLOATS setting (#993) -29.) Audio uses signed 16-bit integers as samples, not unsigned (#995) -30.) Assemble RSP ucode with armips (#970) -31.) Label Mr. Blizzard, Yoshi, Whomp, Wiggler, Wood Piece oFields. (#996) -32.) update crash enhancement (#1003) -33.) Update README.md to use new public Discord server invite -34.) Label variables in act_idle. (#1005) -35.) Fix a typo in camera.h (#1009) -36.) Fixed up profiler.c (#1010) -37.) Add -d to first-diff.py (#1012) -38.) Fix typo in first-diff.py (#1013) -39.) Remove binutils 2.27 dependency check (#1015) -40.) Update armips to v0.11.0 tag and add generator script (#1004) -41.) Extract IPL3 font from ROM (#1011) -42.) Documented audio playback flags (#1021) -43.) Change RSP register notation to dollar-prefixed numbers (#1022) -44.) Only check for QEMU_IRIX in Makefile when compiling with IDO (#1023) -45.) Clean up header files and update function prototypes (#1000) -46.) Named local variables in geo_update_layer_transparency (#1019) -47.) Extract crash screen font textures from EU and SH ROMs (#1025) -48.) Use ACTIVE_FLAG defines where appropriate (#1026) -49.) Changed type of actor collision from s16 to Collision (#1024) -50.) Implement sqrtf in assembly file (#1028) -51.) Rename Struct8032FCE8 as OpenableGrill and identify data members (#1029) -52.) Fix some mistakes in the abi doc (#1031) -53.) The README.md PR (#979) - -Refresh #8 -1.) Use INT_STATUS_ macros for oInteractStatus (#911) -2.) Update bullet_bill.inc.c (#912) -3.) Make geo.c in levels nonconst to reduce diffs with gcc enhancement patch in future (#913) -4.) Improve process_level_music_dynamics (#915) -5.) add AVOID_UB define for fixing libultra aliasing. (#916) -6.) const hack to TARGET_N64 and tweak ld script (#918) -7.) Replace raw level/course numbers with defines (#919) -8.) Label all graph node flags. (#920) -9.) readme.md capitalization -10.) The Big Function PR (Part 5) (#910) -11.) Label hardware registers (#922) -12.) Match EU synthesis_process_note (#923) -13.) Some quick value changes (#909) -14.) Added sequence player defines (#926) -15.) Shindou diffs 2 [merge game.c and display.c, required for SH] (#927) -16.) Match synthesis_process_notes and use -sopt for synthesis.c (#928) -17.) Fix mips64-binutils for Fedora 31 and similar Linux distros (#931) -18.) Update first-diff.py to work with Shindou (#933) -19.) Labelled behavior_script.c (#929) -20.) shindou diffs up to level_update (#932) -21.) Update diff.py and diff_settings.py to work with SH (#936) -22.) Add some Shindou resources to extract_assets.py (#939) -23.) Label and document gd_math.c (#930) -24.) Label all of Mario's actions. (#941) -25.) Label all particles. (#940) -26.) Renamed death related warpBhvs (#942) -27.) Small Shindou differences (#945) -28.) match player_performed_grab_escape_action in all versions (#943) -29.) add main alignment (aglab2, #947) -30.) Match a bunch of fake EU matchings (#944) -31.) Shindou diffs round 4 (#937) -32.) Easy PAL fake matchings (#946) -33.) Merge object_helpers and object_helpers2 headers (#948) -34.) match cap_check_quicksand (#950) -35.) Shindou crash screen diffs (#938) -36.) Thread6 (#951) -37.) Correct IPL3 function and label addresses (#952) -38.) Add COMPILER flag for Makefile and add official mips gcc support. (#953) -39.) add align to sequence_00 (fixes gcc build) (#957) -40.) Fixed itty bitty typo (#959) - -Refresh #7 -1.) update README.md (#861) -2.) [eu] fix decompilation bugs in synthesis_process_note (#862) -3.) Label and document Snufit.inc.c (#863) -4.) Label and document Snufit.inc.c (#863) -5.) Match append_bubble_vertex_buffer, append_snowflake_vertex_buffer (#860) -6.) Compile audio/effects.c with -sopt (#870) -7.) Match handle_dialog_text_and_pages (#872) -8.) Remove improperly used LEVEL_SA define. (#875) -9.) Remove unused EU ASM files (#873) -10.) Shindou build flag support (#876) -11.) The Big Function PR (Part 1) (#864) -12.) "Re-document" file_select and star_select for EU (#877) -13.) Document paintings.c (#868) -14.) Minor interaction.c labelling/documentation. (#882) -15.) Match synthesis_execute, prepare_reverb_ring_buffer, func_eu_802e00d8 (#886) -16.) The Big Function PR (Part 2) (#874) -17.) Additional painting documentation (#883) -18.) Some EU audio labelling (#885) -19.) Bring synthesis_do_one_audio_update a bit closer to matching (#887) -20.) Misleading comment, this actually contols Bowser's init action (#889) -21.) Match synthesis_do_one_audio_update (#890) -22.) Remove unneeded if(1) in synthesis_do_one_audio_update (#891) -23.) Match synthesis_resample_and_mix_reverb (#893) -24.) Set LANG=C (#896) -25.) Match note_apply_headset_pan_effects (#897) -26.) Match play_sequence (#898) -27.) Match sequence_channel_enable (#899) -28.) Match sequence_player_process_sequence (#900) -29.) Match (eu) alloc_bank_or_seq (#901) -30.) Match alloc_bank_or_seq (#903) -31.) Update README.md (again) -32.) Documented behaviour/fish.inc.c & blue_fish.inc.c (#894) -33.) Labelled 4 behavior files, made object_helper functions consistent (#881) -34.) Add a make target for .copt (#902) -35.) The Big Function PR (Part 3) (#888) -36.) The Big Function PR (Part 4) (#906) -37.) Rename src/audio/memory.c -> heap.c (#907) -38.) Fix BBH texture (#908) - -Refresh #6 -1.) Make tools work on MinGW (#804) -2.) Document mario_misc (#628) -3.) add patch_libmalloc.py script to work around compiler crashes (#811) -4.) Label the coffins file. (#829) -5.) Convert enhancements into patches (#827) -6.) Document Tweester.inc.c (#840) -7.) EU OK and cleanup EU (#782) - -Refresh #5 -1.) mem_error_screen.inc.c updated for C (#775) -2.) updated patch_libultra_math to work directly on libultra.a (#781) -3.) Enhancement: Debug boxes (#783) -4.) Label effects MemoryPool (#784) -5.) Use full-width characters for JP text and rename mislabeled stuff (#772) -6.) Small asset extraction fixes (#785) -7.) Fix incremental asset extraction after the last PR (#790) -8.) Labelled behavior script commands, tidied up behavior scripts and ren… -9.) Document camera.c (#741) -10.) Fix a HMC texture asset (#795) -11.) Fix UB in angle conversion for paintings. Needed for pc-port. (#796) -12.) Fix PSS texture assets (#801) -13.) Fix some camera typos (#802) - -Refresh #4 -1.) Label screen_transition.c (#737) -2.) Revamp macros (#738) -3.) Simplify the cake makefile logic (#739) -4.) Move zbuffer to C (#742) -5.) Audio blob endian/64-bit fixes (#740) -6.) Ub fixes (#745) -7.) process_level_music_dynamics: slightly better stack and regalloc (#746) -8.) move level order specific definitions out to levels/level_defines.h (#743) -9.) Renamed some mislabelled sound effects (#748) -10.) Very minor white space fixes in Mario.c (#752) -11.) Renamed GRAVITY to OBJ_PHYSICS (#755) -12.) Use defined macros instead of literal values for interactions in behavior_data.c (#754) -13.) iQue Player console detection + full support (#756) -14.) Fix Goddard Mario head for little endian etc. (#757) -15.) Small bits of audio doc (#749) -16.) Update diff script (#750) -17.) Nicer format for course/dialog text, enum for dialog IDs (#753) -18.) first-diff: store most recent mtime during check (#759) -19.) Use Lights1 struct for light values (#760) -20.) Detect mips64-elf in diff.py (#761) -21.) Name display lists in gd renderer.c (#764) -22.) Document a variety of PU type crashes. (#765) -23.) Label object_behaviors. (#716) -24.) Update swoop.inc.c (#767) -25.) Label tilting_pyramid.inc.c (#768) -26.) Label red_coin.inc.c (#770) -27.) Use more level defines (#758) -28.) Named Mario actions 6, 7, and 8 and noted causes of hands-free holding glitch (#769) - -Refresh #3 -1.) Small bits of sound sample labelling -2.) Append 'b' to fopen calls in n64graphics to satisfy Windows -3.) Document synthesis.c and abi.h -4.) Remove gbi_old.h and use gbi.h instead for F3D_OLD -5.) Fix and change most values used by f3d commands -6.) Convert actors to C -7.) Make extract_assets.py fail on bad baserom -8.) Fix some (pragma-ignored) warnings -9.) Convert trig tables and data/ buffers into C -10.) Document intro behaviors and some of camera.c -11.) Match dma_sample_data -12.) Convert levels, bin, text, goddard_tex_dl to C -13.) Remove .bss size hardcoding -14.) Add mips64 fallback and alt dump option to diff.sh -15.) Convert behavior_data to C -16.) Get rid of the enum in behavior_data. -17.) Change more values used by f3d commands -18.) Document game/skybox.c -19.) Actors levels fixup -20.) Convert Mario animations to C (kind of) -22.) generate skybox data from 248x248 images -23.) 64-bit fixes -24.) Move demo data to C -25.) Change uintptr_t to GeoLayout for actors -26.) Move libc includes to include/libc/ - -Refresh #2a (hotfix) -Changes from Refresh #2: - -1.) Fixed text Makefile dependencies" - -Refresh #2 -Changes from Refresh #1: - -1.) Label src/game/behaviors/boo.inc.c -2.) Verify half of audio_defines.h -3.) Label ingame_menu.c and some dialog stuff -4.) Improve handle_dialog_text_and_pages EU non-matching -5.) Fix texture format for water splash/sparkle -6.) Merge ucode.bin and ucode_unk.bin -7.) 64-bit fixes -8.) [AUDIO] Match func_80316928 -9.) Documented bug in Tuxie's mother's code -10.) [AUDIO] Slightly closer matching for process_level_music_dynamics -11.) Name channel scripts in sequence 0 -12.) Nicer error message when sha1sum doesn't match -13.) Refactor object fields -14.) Document file_select.c -15.) Document star_select.c -16.) Add uncompressed string support to textconv -17.) Document main_menu geo and leveldata -18.) Document hud.c and rename char textures -19.) Correct gSPTextureRectangle values -20.) Linker script wildcard - - Fixes "undefined reference to x in discarded section y" linker errors. - - Also means that you no longer have to add linker script entries for source files. -21.) Reference qemu-irix package and add project structure - - Installing qemu-irix is as simple as installing the provided Debian package on the GitHub "Releases" tab - (https://github.com/n64decomp/qemu-irix). - - Old qemu-irix installs are unaffected by this change, and it is still possible to install qemu-irix with the older method. - -Refresh #1 -Changes from initial release: - -1.) More README cleanups and documentation -2.) Fix .gitignore in tools/ -3.) More README cleanups and corrections -4.) oUnk190 -> oInteractionSubtype -5.) Normalize line endings -6.) Replace bank_sets.s by sequences.json + build magic -7.) Fix tabledesign in .gitignore -8.) Cleaned and documented arrays in audio/ -9.) Change minimum Python 3 requirement in README.md to 3.6 -10.) Remove whitespace in ingame_menu.c, save_file.c, and star_select.c -11.) Documentation comment style fixed -12.) sm64.map -> sm64.version.map (ex: sm64.us.map) -13.) Decompile EU versions of HUD and obj behaviors -14.) Label ukiki.inc.c and ukiki_cage.inc.c -15.) Add missing OS header includes -16.) Fix alignment issue in model_ids.h -17.) A bunch of behavior changes: - a.) Made styles consistent with function names (ex: BehBehaviorLoop -> beh_behavior_loop) - b.) Split obj_behaviors_2.c into multiple .inc.c files in behaviors/ - c.) bhvHauntedRoomCheck -> bhvCoffinManager -18.) Update README.md notes on WSL and add links -19.) Added tidy.sh and also bracing around single-line ifs and loops diff --git a/Doxyfile b/Doxyfile deleted file mode 100644 index f73f4c63..00000000 --- a/Doxyfile +++ /dev/null @@ -1,2482 +0,0 @@ -# Doxyfile 1.8.14 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project. -# -# All text after a double hash (##) is considered a comment and is placed in -# front of the TAG it is preceding. -# -# All text after a single hash (#) is considered a comment and will be ignored. -# The format is: -# TAG = value [value, ...] -# For lists, items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (\" \"). - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all text -# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv -# built into libc) for the transcoding. See -# https://www.gnu.org/software/libiconv/ for the list of possible encodings. -# The default value is: UTF-8. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by -# double-quotes, unless you are using Doxywizard) that should identify the -# project for which the documentation is generated. This name is used in the -# title of most generated pages and in a few other places. -# The default value is: My Project. - -PROJECT_NAME = "Super Mario 64 Source" - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. This -# could be handy for archiving the generated documentation or if some version -# control system is used. - -PROJECT_NUMBER = - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer a -# quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = "A Super Mario 64 decompilation, brought to you by a bunch of clever folks." - -# With the PROJECT_LOGO tag one can specify a logo or an icon that is included -# in the documentation. The maximum height of the logo should not exceed 55 -# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy -# the logo to the output directory. - -PROJECT_LOGO = doxygen/logo.png - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path -# into which the generated documentation will be written. If a relative path is -# entered, it will be relative to the location where doxygen was started. If -# left blank the current directory will be used. - -OUTPUT_DIRECTORY = doxygen/doxygen/ - -# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- -# directories (in 2 levels) under the output directory of each output format and -# will distribute the generated files over these directories. Enabling this -# option can be useful when feeding doxygen a huge amount of source files, where -# putting all generated files in the same directory would otherwise causes -# performance problems for the file system. -# The default value is: NO. - -CREATE_SUBDIRS = YES - -# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII -# characters to appear in the names of generated files. If set to NO, non-ASCII -# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode -# U+3044. -# The default value is: NO. - -ALLOW_UNICODE_NAMES = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, -# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), -# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, -# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), -# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, -# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, -# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, -# Ukrainian and Vietnamese. -# The default value is: English. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member -# descriptions after the members that are listed in the file and class -# documentation (similar to Javadoc). Set to NO to disable this. -# The default value is: YES. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief -# description of a member or function before the detailed description -# -# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. -# The default value is: YES. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator that is -# used to form the text in various listings. Each string in this list, if found -# as the leading text of the brief description, will be stripped from the text -# and the result, after processing the whole list, is used as the annotated -# text. Otherwise, the brief description is used as-is. If left blank, the -# following values are used ($name is automatically replaced with the name of -# the entity):The $name class, The $name widget, The $name file, is, provides, -# specifies, contains, represents, a, an and the. - -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# doxygen will generate a detailed section even if there is only a brief -# description. -# The default value is: NO. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. -# The default value is: NO. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path -# before files name in the file list and in the header files. If set to NO the -# shortest path that makes the file name unique will be used -# The default value is: YES. - -FULL_PATH_NAMES = YES - -# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. -# Stripping is only done if one of the specified strings matches the left-hand -# part of the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the path to -# strip. -# -# Note that you can specify absolute paths here, but also relative paths, which -# will be relative from the directory where doxygen is started. -# This tag requires that the tag FULL_PATH_NAMES is set to YES. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the -# path mentioned in the documentation of a class, which tells the reader which -# header file to include in order to use a class. If left blank only the name of -# the header file containing the class definition is used. Otherwise one should -# specify the list of include paths that are normally passed to the compiler -# using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but -# less readable) file names. This can be useful is your file systems doesn't -# support long names like on DOS, Mac, or CD-ROM. -# The default value is: NO. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the -# first line (until the first dot) of a Javadoc-style comment as the brief -# description. If set to NO, the Javadoc-style will behave just like regular Qt- -# style comments (thus requiring an explicit @brief command for a brief -# description.) -# The default value is: NO. - -JAVADOC_AUTOBRIEF = YES - -# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first -# line (until the first dot) of a Qt-style comment as the brief description. If -# set to NO, the Qt-style will behave just like regular Qt-style comments (thus -# requiring an explicit \brief command for a brief description.) -# The default value is: NO. - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a -# multi-line C++ special comment block (i.e. a block of //! or /// comments) as -# a brief description. This used to be the default behavior. The new default is -# to treat a multi-line C++ comment block as a detailed description. Set this -# tag to YES if you prefer the old behavior instead. -# -# Note that setting this tag to YES also means that rational rose comments are -# not recognized any more. -# The default value is: NO. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the -# documentation from any documented member that it re-implements. -# The default value is: YES. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new -# page for each member. If set to NO, the documentation of a member will be part -# of the file/class/namespace that contains it. -# The default value is: NO. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen -# uses this value to replace tabs by spaces in code fragments. -# Minimum value: 1, maximum value: 16, default value: 4. - -TAB_SIZE = 4 - -# This tag can be used to specify a number of aliases that act as commands in -# the documentation. An alias has the form: -# name=value -# For example adding -# "sideeffect=@par Side Effects:\n" -# will allow you to put the command \sideeffect (or @sideeffect) in the -# documentation, which will result in a user-defined paragraph with heading -# "Side Effects:". You can put \n's in the value part of an alias to insert -# newlines (in the resulting output). You can put ^^ in the value part of an -# alias to insert a newline as if a physical newline was in the original file. - -ALIASES = - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding "class=itcl::class" -# will allow you to use the command class in the itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources -# only. Doxygen will then generate output that is more tailored for C. For -# instance, some of the names that are used will be different. The list of all -# members will be omitted, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_FOR_C = YES - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or -# Python sources only. Doxygen will then generate output that is more tailored -# for that language. For instance, namespaces will be presented as packages, -# qualified scopes will look different, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources. Doxygen will then generate output that is tailored for Fortran. -# The default value is: NO. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for VHDL. -# The default value is: NO. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given -# extension. Doxygen has a built-in mapping, but you can override or extend it -# using this tag. The format is ext=language, where ext is a file extension, and -# language is one of the parsers supported by doxygen: IDL, Java, Javascript, -# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: -# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: -# Fortran. In the later case the parser tries to guess whether the code is fixed -# or free formatted code, this is the default for Fortran type files), VHDL. For -# instance to make doxygen treat .inc files as Fortran files (default is PHP), -# and .f files as C (default is Fortran), use: inc=Fortran f=C. -# -# Note: For files without extension you can use no_extension as a placeholder. -# -# Note that for custom extensions you also need to set FILE_PATTERNS otherwise -# the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments -# according to the Markdown format, which allows for more readable -# documentation. See http://daringfireball.net/projects/markdown/ for details. -# The output of markdown processing is further processed by doxygen, so you can -# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in -# case of backward compatibilities issues. -# The default value is: YES. - -MARKDOWN_SUPPORT = YES - -# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up -# to that level are automatically included in the table of contents, even if -# they do not have an id attribute. -# Note: This feature currently applies only to Markdown headings. -# Minimum value: 0, maximum value: 99, default value: 0. -# This tag requires that the tag MARKDOWN_SUPPORT is set to YES. - -TOC_INCLUDE_HEADINGS = 0 - -# When enabled doxygen tries to link words that correspond to documented -# classes, or namespaces to their corresponding documentation. Such a link can -# be prevented in individual cases by putting a % sign in front of the word or -# globally by setting AUTOLINK_SUPPORT to NO. -# The default value is: YES. - -AUTOLINK_SUPPORT = YES - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should set this -# tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); -# versus func(std::string) {}). This also make the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. -# The default value is: NO. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. -# The default value is: NO. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: -# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen -# will parse them like normal C++ but will assume all classes use public instead -# of private inheritance when no explicit protection keyword is present. -# The default value is: NO. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate -# getter and setter methods for a property. Setting this option to YES will make -# doxygen to replace the get and set methods by a property in the documentation. -# This will only work if the methods are indeed getting or setting a simple -# type. If this is not the case, or you want to show the methods anyway, you -# should set this option to NO. -# The default value is: YES. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. -# The default value is: NO. - -DISTRIBUTE_GROUP_DOC = NO - -# If one adds a struct or class to a group and this option is enabled, then also -# any nested class or struct is added to the same group. By default this option -# is disabled and one has to add nested compounds explicitly via \ingroup. -# The default value is: NO. - -GROUP_NESTED_COMPOUNDS = NO - -# Set the SUBGROUPING tag to YES to allow class member groups of the same type -# (for instance a group of public functions) to be put as a subgroup of that -# type (e.g. under the Public Functions section). Set it to NO to prevent -# subgrouping. Alternatively, this can be done per class using the -# \nosubgrouping command. -# The default value is: YES. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions -# are shown inside the group in which they are included (e.g. using \ingroup) -# instead of on a separate page (for HTML and Man pages) or section (for LaTeX -# and RTF). -# -# Note that this feature does not work in combination with -# SEPARATE_MEMBER_PAGES. -# The default value is: NO. - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions -# with only public data fields or simple typedef fields will be shown inline in -# the documentation of the scope in which they are defined (i.e. file, -# namespace, or group documentation), provided this scope is documented. If set -# to NO, structs, classes, and unions are shown on a separate page (for HTML and -# Man pages) or section (for LaTeX and RTF). -# The default value is: NO. - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or -# enum is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically be -# useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. -# The default value is: NO. - -TYPEDEF_HIDES_STRUCT = NO - -# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This -# cache is used to resolve symbols given their name and scope. Since this can be -# an expensive process and often the same symbol appears multiple times in the -# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small -# doxygen will become slower. If the cache is too large, memory is wasted. The -# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range -# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 -# symbols. At the end of a run doxygen will report the cache usage and suggest -# the optimal cache size from a speed point of view. -# Minimum value: 0, maximum value: 9, default value: 0. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in -# documentation are documented, even if no documentation was available. Private -# class members and static file members will be hidden unless the -# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. -# Note: This will also disable the warnings about undocumented members that are -# normally produced when WARNINGS is set to YES. -# The default value is: NO. - -EXTRACT_ALL = YES - -# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will -# be included in the documentation. -# The default value is: NO. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal -# scope will be included in the documentation. -# The default value is: NO. - -EXTRACT_PACKAGE = NO - -# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be -# included in the documentation. -# The default value is: NO. - -EXTRACT_STATIC = YES - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined -# locally in source files will be included in the documentation. If set to NO, -# only classes defined in header files are included. Does not have any effect -# for Java sources. -# The default value is: YES. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. If set to YES, local methods, -# which are defined in the implementation section but not in the interface are -# included in the documentation. If set to NO, only methods in the interface are -# included. -# The default value is: NO. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base name of -# the file that contains the anonymous namespace. By default anonymous namespace -# are hidden. -# The default value is: NO. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all -# undocumented members inside documented classes or files. If set to NO these -# members will be included in the various overviews, but no documentation -# section is generated. This option has no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_MEMBERS = NO - -# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. If set -# to NO, these classes will be included in the various overviews. This option -# has no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_CLASSES = NO - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend -# (class|struct|union) declarations. If set to NO, these declarations will be -# included in the documentation. -# The default value is: NO. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any -# documentation blocks found inside the body of a function. If set to NO, these -# blocks will be appended to the function's detailed documentation block. -# The default value is: NO. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation that is typed after a -# \internal command is included. If the tag is set to NO then the documentation -# will be excluded. Set it to YES to include the internal documentation. -# The default value is: NO. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file -# names in lower-case letters. If set to YES, upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. -# The default value is: system dependent. - -CASE_SENSE_NAMES = YES - -# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with -# their full class and namespace scopes in the documentation. If set to YES, the -# scope will be hidden. -# The default value is: NO. - -HIDE_SCOPE_NAMES = NO - -# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will -# append additional text to a page's title, such as Class Reference. If set to -# YES the compound reference will be hidden. -# The default value is: NO. - -HIDE_COMPOUND_REFERENCE= NO - -# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of -# the files that are included by a file in the documentation of that file. -# The default value is: YES. - -SHOW_INCLUDE_FILES = YES - -# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each -# grouped member an include statement to the documentation, telling the reader -# which file to include in order to use the member. -# The default value is: NO. - -SHOW_GROUPED_MEMB_INC = NO - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include -# files with double quotes in the documentation rather than with sharp brackets. -# The default value is: NO. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the -# documentation for inline members. -# The default value is: YES. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the -# (detailed) documentation of file and class members alphabetically by member -# name. If set to NO, the members will appear in declaration order. -# The default value is: YES. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief -# descriptions of file, namespace and class members alphabetically by member -# name. If set to NO, the members will appear in declaration order. Note that -# this will also influence the order of the classes in the class list. -# The default value is: NO. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the -# (brief and detailed) documentation of class members so that constructors and -# destructors are listed first. If set to NO the constructors will appear in the -# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. -# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief -# member documentation. -# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting -# detailed member documentation. -# The default value is: NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy -# of group names into alphabetical order. If set to NO the group names will -# appear in their defined order. -# The default value is: NO. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by -# fully-qualified names, including namespaces. If set to NO, the class list will -# be sorted only by class name, not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the alphabetical -# list. -# The default value is: NO. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper -# type resolution of all parameters of a function it will reject a match between -# the prototype and the implementation of a member function even if there is -# only one candidate or it is obvious which candidate to choose by doing a -# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still -# accept a match between prototype and implementation in such cases. -# The default value is: NO. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo -# list. This list is created by putting \todo commands in the documentation. -# The default value is: YES. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test -# list. This list is created by putting \test commands in the documentation. -# The default value is: YES. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug -# list. This list is created by putting \bug commands in the documentation. -# The default value is: YES. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) -# the deprecated list. This list is created by putting \deprecated commands in -# the documentation. -# The default value is: YES. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional documentation -# sections, marked by \if ... \endif and \cond -# ... \endcond blocks. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the -# initial value of a variable or macro / define can have for it to appear in the -# documentation. If the initializer consists of more lines than specified here -# it will be hidden. Use a value of 0 to hide initializers completely. The -# appearance of the value of individual variables and macros / defines can be -# controlled using \showinitializer or \hideinitializer command in the -# documentation regardless of this setting. -# Minimum value: 0, maximum value: 10000, default value: 30. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at -# the bottom of the documentation of classes and structs. If set to YES, the -# list will mention the files that were used to generate the documentation. -# The default value is: YES. - -SHOW_USED_FILES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This -# will remove the Files entry from the Quick Index and from the Folder Tree View -# (if specified). -# The default value is: YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces -# page. This will remove the Namespaces entry from the Quick Index and from the -# Folder Tree View (if specified). -# The default value is: YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command command input-file, where command is the value of the -# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided -# by doxygen. Whatever the program writes to standard output is used as the file -# version. For an example see the documentation. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. You can -# optionally specify a file name after the option, if omitted DoxygenLayout.xml -# will be used as the name of the layout file. -# -# Note that if you run doxygen from a directory containing a file called -# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE -# tag is left empty. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files containing -# the reference definitions. This must be a list of .bib files. The .bib -# extension is automatically appended if omitted. This requires the bibtex tool -# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info. -# For LaTeX the style of the bibliography can be controlled using -# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the -# search path. See also \cite for info how to create references. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# Configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated to -# standard output by doxygen. If QUIET is set to YES this implies that the -# messages are off. -# The default value is: NO. - -QUIET = NO - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES -# this implies that the warnings are on. -# -# Tip: Turn warnings on while writing the documentation. -# The default value is: YES. - -WARNINGS = YES - -# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate -# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag -# will automatically be disabled. -# The default value is: YES. - -WARN_IF_UNDOCUMENTED = YES - -# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some parameters -# in a documented function, or documenting parameters that don't exist or using -# markup commands wrongly. -# The default value is: YES. - -WARN_IF_DOC_ERROR = YES - -# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that -# are documented, but have no documentation for their parameters or return -# value. If set to NO, doxygen will only warn about wrong or incomplete -# parameter documentation, but not about the absence of documentation. -# The default value is: NO. - -WARN_NO_PARAMDOC = NO - -# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when -# a warning is encountered. -# The default value is: NO. - -WARN_AS_ERROR = NO - -# The WARN_FORMAT tag determines the format of the warning messages that doxygen -# can produce. The string should contain the $file, $line, and $text tags, which -# will be replaced by the file and line number from which the warning originated -# and the warning text. Optionally the format may contain $version, which will -# be replaced by the version of the file (if it could be obtained via -# FILE_VERSION_FILTER) -# The default value is: $file:$line: $text. - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning and error -# messages should be written. If left blank the output is written to standard -# error (stderr). - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# Configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag is used to specify the files and/or directories that contain -# documented source files. You may enter file names like myfile.cpp or -# directories like /usr/src/myproject. Separate the files or directories with -# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING -# Note: If this tag is empty the current directory is searched. - -INPUT = - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses -# libiconv (or the iconv built into libc) for the transcoding. See the libiconv -# documentation (see: https://www.gnu.org/software/libiconv/) for the list of -# possible encodings. -# The default value is: UTF-8. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and -# *.h) to filter out the source-files in the directories. -# -# Note that for custom extensions or not directly supported extensions you also -# need to set EXTENSION_MAPPING for the extension otherwise the files are not -# read by doxygen. -# -# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp, -# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, -# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, -# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, -# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf and *.qsf. - -FILE_PATTERNS = *.c \ - *.cc \ - *.cxx \ - *.cpp \ - *.c++ \ - *.java \ - *.ii \ - *.ixx \ - *.ipp \ - *.i++ \ - *.inl \ - *.idl \ - *.ddl \ - *.odl \ - *.h \ - *.hh \ - *.hxx \ - *.hpp \ - *.h++ \ - *.cs \ - *.d \ - *.php \ - *.php4 \ - *.php5 \ - *.phtml \ - *.inc \ - *.m \ - *.markdown \ - *.md \ - *.mm \ - *.dox \ - *.py \ - *.pyw \ - *.f90 \ - *.f95 \ - *.f03 \ - *.f08 \ - *.f \ - *.for \ - *.tcl \ - *.vhd \ - *.vhdl \ - *.ucf \ - *.qsf - -# The RECURSIVE tag can be used to specify whether or not subdirectories should -# be searched for input files as well. -# The default value is: NO. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. -# The default value is: NO. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories use the pattern */test/* - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or directories -# that contain example code fragments that are included (see the \include -# command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and -# *.h) to filter out the source-files in the directories. If left blank all -# files are included. - -EXAMPLE_PATTERNS = * - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude commands -# irrespective of the value of the RECURSIVE tag. -# The default value is: NO. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or directories -# that contain images that are to be included in the documentation (see the -# \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command: -# -# -# -# where is the value of the INPUT_FILTER tag, and is the -# name of an input file. Doxygen will then use the output that the filter -# program writes to standard output. If FILTER_PATTERNS is specified, this tag -# will be ignored. -# -# Note that the filter must not add or remove lines; it is applied before the -# code is scanned, but not when the output code is generated. If lines are added -# or removed, the anchors will not be placed correctly. -# -# Note that for custom extensions or not directly supported extensions you also -# need to set EXTENSION_MAPPING for the extension otherwise the files are not -# properly processed by doxygen. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. The filters are a list of the form: pattern=filter -# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how -# filters are used. If the FILTER_PATTERNS tag is empty or if none of the -# patterns match the file name, INPUT_FILTER is applied. -# -# Note that for custom extensions or not directly supported extensions you also -# need to set EXTENSION_MAPPING for the extension otherwise the files are not -# properly processed by doxygen. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will also be used to filter the input files that are used for -# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). -# The default value is: NO. - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and -# it is also possible to disable source filtering for a specific pattern using -# *.ext= (so without naming a filter). -# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. - -FILTER_SOURCE_PATTERNS = - -# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that -# is part of the input, its contents will be placed on the main page -# (index.html). This can be useful if you have a project on for instance GitHub -# and want to reuse the introduction page also for the doxygen output. - -USE_MDFILE_AS_MAINPAGE = - -#--------------------------------------------------------------------------- -# Configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will be -# generated. Documented entities will be cross-referenced with these sources. -# -# Note: To get rid of all source code in the generated output, make sure that -# also VERBATIM_HEADERS is set to NO. -# The default value is: NO. - -SOURCE_BROWSER = NO - -# Setting the INLINE_SOURCES tag to YES will include the body of functions, -# classes and enums directly into the documentation. -# The default value is: NO. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any -# special comment blocks from generated source code fragments. Normal C, C++ and -# Fortran comments will always remain visible. -# The default value is: YES. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES then for each documented -# function all documented functions referencing it will be listed. -# The default value is: NO. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES then for each documented function -# all documented entities called/used by that function will be listed. -# The default value is: NO. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set -# to YES then the hyperlinks from functions in REFERENCES_RELATION and -# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will -# link to the documentation. -# The default value is: YES. - -REFERENCES_LINK_SOURCE = YES - -# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the -# source code will show a tooltip with additional information such as prototype, -# brief description and links to the definition and documentation. Since this -# will make the HTML file larger and loading of large files a bit slower, you -# can opt to disable this feature. -# The default value is: YES. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -SOURCE_TOOLTIPS = YES - -# If the USE_HTAGS tag is set to YES then the references to source code will -# point to the HTML generated by the htags(1) tool instead of doxygen built-in -# source browser. The htags tool is part of GNU's global source tagging system -# (see https://www.gnu.org/software/global/global.html). You will need version -# 4.8.6 or higher. -# -# To use it do the following: -# - Install the latest version of global -# - Enable SOURCE_BROWSER and USE_HTAGS in the config file -# - Make sure the INPUT points to the root of the source tree -# - Run doxygen as normal -# -# Doxygen will invoke htags (and that will in turn invoke gtags), so these -# tools must be available from the command line (i.e. in the search path). -# -# The result: instead of the source browser generated by doxygen, the links to -# source code will now point to the output of htags. -# The default value is: NO. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a -# verbatim copy of the header file for each class for which an include is -# specified. Set to NO to disable this. -# See also: Section \class. -# The default value is: YES. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# Configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all -# compounds will be generated. Enable this if the project contains a lot of -# classes, structs, unions or interfaces. -# The default value is: YES. - -ALPHABETICAL_INDEX = YES - -# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in -# which the alphabetical index list will be split. -# Minimum value: 1, maximum value: 20, default value: 5. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all classes will -# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag -# can be used to specify a prefix (or a list of prefixes) that should be ignored -# while generating the index headers. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output -# The default value is: YES. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a -# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of -# it. -# The default directory is: html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each -# generated HTML page (for example: .htm, .php, .asp). -# The default value is: .html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a user-defined HTML header file for -# each generated HTML page. If the tag is left blank doxygen will generate a -# standard header. -# -# To get valid HTML the header file that includes any scripts and style sheets -# that doxygen needs, which is dependent on the configuration options used (e.g. -# the setting GENERATE_TREEVIEW). It is highly recommended to start with a -# default header using -# doxygen -w html new_header.html new_footer.html new_stylesheet.css -# YourConfigFile -# and then modify the file new_header.html. See also section "Doxygen usage" -# for information on how to generate the default header that doxygen normally -# uses. -# Note: The header is subject to change so you typically have to regenerate the -# default header when upgrading to a newer version of doxygen. For a description -# of the possible markers and block names see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each -# generated HTML page. If the tag is left blank doxygen will generate a standard -# footer. See HTML_HEADER for more information on how to generate a default -# footer and what special commands can be used inside the footer. See also -# section "Doxygen usage" for information on how to generate the default footer -# that doxygen normally uses. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style -# sheet that is used by each HTML page. It can be used to fine-tune the look of -# the HTML output. If left blank doxygen will generate a default style sheet. -# See also section "Doxygen usage" for information on how to generate the style -# sheet that doxygen normally uses. -# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as -# it is more robust and this tag (HTML_STYLESHEET) will in the future become -# obsolete. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_STYLESHEET = - -# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined -# cascading style sheets that are included after the standard style sheets -# created by doxygen. Using this option one can overrule certain style aspects. -# This is preferred over using HTML_STYLESHEET since it does not replace the -# standard style sheet and is therefore more robust against future updates. -# Doxygen will copy the style sheet files to the output directory. -# Note: The order of the extra style sheet files is of importance (e.g. the last -# style sheet in the list overrules the setting of the previous ones in the -# list). For an example see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that the -# files will be copied as-is; there are no commands or markers available. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen -# will adjust the colors in the style sheet and background images according to -# this color. Hue is specified as an angle on a colorwheel, see -# https://en.wikipedia.org/wiki/Hue for more information. For instance the value -# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 -# purple, and 360 is red again. -# Minimum value: 0, maximum value: 359, default value: 220. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors -# in the HTML output. For a value of 0 the output will use grayscales only. A -# value of 255 will produce the most vivid colors. -# Minimum value: 0, maximum value: 255, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the -# luminance component of the colors in the HTML output. Values below 100 -# gradually make the output lighter, whereas values above 100 make the output -# darker. The value divided by 100 is the actual gamma applied, so 80 represents -# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not -# change the gamma. -# Minimum value: 40, maximum value: 240, default value: 80. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting this -# to YES can help to show when doxygen was last run and thus if the -# documentation is up to date. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_TIMESTAMP = NO - -# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML -# documentation will contain a main index with vertical navigation menus that -# are dynamically created via Javascript. If disabled, the navigation index will -# consists of multiple levels of tabs that are statically embedded in every HTML -# page. Disable this option to support browsers that do not have Javascript, -# like the Qt help browser. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_DYNAMIC_MENUS = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_DYNAMIC_SECTIONS = NO - -# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries -# shown in the various tree structured indices initially; the user can expand -# and collapse entries dynamically later on. Doxygen will expand the tree to -# such a level that at most the specified number of entries are visible (unless -# a fully collapsed tree already exceeds this amount). So setting the number of -# entries 1 will produce a full collapsed tree by default. 0 is a special value -# representing an infinite number of entries and will result in a full expanded -# tree by default. -# Minimum value: 0, maximum value: 9999, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_INDEX_NUM_ENTRIES = 100 - -# If the GENERATE_DOCSET tag is set to YES, additional index files will be -# generated that can be used as input for Apple's Xcode 3 integrated development -# environment (see: https://developer.apple.com/tools/xcode/), introduced with -# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a -# Makefile in the HTML output directory. Running make will produce the docset in -# that directory and running make install will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at -# startup. See https://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_DOCSET = NO - -# This tag determines the name of the docset feed. A documentation feed provides -# an umbrella under which multiple documentation sets from a single provider -# (such as a company or product suite) can be grouped. -# The default value is: Doxygen generated docs. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# This tag specifies a string that should uniquely identify the documentation -# set bundle. This should be a reverse domain-name style string, e.g. -# com.mycompany.MyDocSet. Doxygen will append .docset to the name. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. -# The default value is: org.doxygen.Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. -# The default value is: Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three -# additional HTML index files: index.hhp, index.hhc, and index.hhk. The -# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop -# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on -# Windows. -# -# The HTML Help Workshop contains a compiler that can convert all HTML output -# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML -# files are now used as the Windows 98 help format, and will replace the old -# Windows help format (.hlp) on all Windows platforms in the future. Compressed -# HTML files also contain an index, a table of contents, and you can search for -# words in the documentation. The HTML workshop also contains a viewer for -# compressed HTML files. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_HTMLHELP = NO - -# The CHM_FILE tag can be used to specify the file name of the resulting .chm -# file. You can add a path in front of the file if the result should not be -# written to the html output directory. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_FILE = - -# The HHC_LOCATION tag can be used to specify the location (absolute path -# including file name) of the HTML help compiler (hhc.exe). If non-empty, -# doxygen will try to run the HTML help compiler on the generated index.hhp. -# The file has to be specified with full path. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -HHC_LOCATION = - -# The GENERATE_CHI flag controls if a separate .chi index file is generated -# (YES) or that it should be included in the master .chm file (NO). -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -GENERATE_CHI = NO - -# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) -# and project file content. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_INDEX_ENCODING = - -# The BINARY_TOC flag controls whether a binary table of contents is generated -# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it -# enables the Previous and Next buttons. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members to -# the table of contents of the HTML help documentation and to the tree view. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that -# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help -# (.qch) of the generated HTML documentation. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify -# the file name of the resulting .qch file. The path specified is relative to -# the HTML output folder. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help -# Project output. For more information please see Qt Help Project / Namespace -# (see: http://doc.qt.io/qt-4.8/qthelpproject.html#namespace). -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt -# Help Project output. For more information please see Qt Help Project / Virtual -# Folders (see: http://doc.qt.io/qt-4.8/qthelpproject.html#virtual-folders). -# The default value is: doc. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_VIRTUAL_FOLDER = doc - -# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom -# filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's filter section matches. Qt Help Project / Filter Attributes (see: -# http://doc.qt.io/qt-4.8/qthelpproject.html#filter-attributes). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_SECT_FILTER_ATTRS = - -# The QHG_LOCATION tag can be used to specify the location of Qt's -# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the -# generated .qhp file. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be -# generated, together with the HTML files, they form an Eclipse help plugin. To -# install this plugin and make it available under the help contents menu in -# Eclipse, the contents of the directory containing the HTML and XML files needs -# to be copied into the plugins directory of eclipse. The name of the directory -# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. -# After copying Eclipse needs to be restarted before the help appears. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the Eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have this -# name. Each documentation set should have its own identifier. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# If you want full control over the layout of the generated HTML pages it might -# be necessary to disable the index and replace it with your own. The -# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top -# of each HTML page. A value of NO enables the index and the value YES disables -# it. Since the tabs in the index contain the same information as the navigation -# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. If the tag -# value is set to YES, a side panel will be generated containing a tree-like -# index structure (just like the one that is generated for HTML Help). For this -# to work a browser that supports JavaScript, DHTML, CSS and frames is required -# (i.e. any modern browser). Windows users are probably better off using the -# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can -# further fine-tune the look of the index. As an example, the default style -# sheet generated by doxygen has an example that shows how to put an image at -# the root of the tree instead of the PROJECT_NAME. Since the tree basically has -# the same information as the tab index, you could consider setting -# DISABLE_INDEX to YES when enabling this option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_TREEVIEW = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that -# doxygen will group on one line in the generated HTML documentation. -# -# Note that a value of 0 will completely suppress the enum values from appearing -# in the overview section. -# Minimum value: 0, maximum value: 20, default value: 4. -# This tag requires that the tag GENERATE_HTML is set to YES. - -ENUM_VALUES_PER_LINE = 4 - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used -# to set the initial width (in pixels) of the frame in which the tree is shown. -# Minimum value: 0, maximum value: 1500, default value: 250. -# This tag requires that the tag GENERATE_HTML is set to YES. - -TREEVIEW_WIDTH = 250 - -# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to -# external symbols imported via tag files in a separate window. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of LaTeX formulas included as images in -# the HTML documentation. When you change the font size after a successful -# doxygen run you need to manually remove any form_*.png images from the HTML -# output directory to force them to be regenerated. -# Minimum value: 8, maximum value: 50, default value: 10. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANSPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are not -# supported properly for IE 6.0, but are supported on all modern browsers. -# -# Note that when changing this option you need to delete any form_*.png files in -# the HTML output directory before the changes have effect. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see -# https://www.mathjax.org) which uses client side Javascript for the rendering -# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX -# installed or if you want to formulas look prettier in the HTML output. When -# enabled you may also need to install MathJax separately and configure the path -# to it using the MATHJAX_RELPATH option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -USE_MATHJAX = NO - -# When MathJax is enabled you can set the default output format to be used for -# the MathJax output. See the MathJax site (see: -# http://docs.mathjax.org/en/latest/output.html) for more details. -# Possible values are: HTML-CSS (which is slower, but has the best -# compatibility), NativeMML (i.e. MathML) and SVG. -# The default value is: HTML-CSS. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_FORMAT = HTML-CSS - -# When MathJax is enabled you need to specify the location relative to the HTML -# output directory using the MATHJAX_RELPATH option. The destination directory -# should contain the MathJax.js script. For instance, if the mathjax directory -# is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax -# Content Delivery Network so you can quickly see the result without installing -# MathJax. However, it is strongly recommended to install a local copy of -# MathJax from https://www.mathjax.org before deployment. -# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_RELPATH = https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/ - -# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax -# extension names that should be enabled during MathJax rendering. For example -# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_EXTENSIONS = - -# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces -# of code that will be used on startup of the MathJax code. See the MathJax site -# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an -# example see the documentation. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_CODEFILE = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box for -# the HTML output. The underlying search engine uses javascript and DHTML and -# should work on any modern browser. Note that when using HTML help -# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) -# there is already a search function so this one should typically be disabled. -# For large projects the javascript based search engine can be slow, then -# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to -# search using the keyboard; to jump to the search box use + S -# (what the is depends on the OS and browser, but it is typically -# , /