Fix alfa for `find_vtx_and_set_colours()` (#745)

* Update render_courses.c

* More fixes

* Fix hex values
This commit is contained in:
MegaMech 2025-07-19 16:41:05 -06:00 committed by GitHub
parent 12e6c6bf28
commit a927b1db49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View File

@ -327,7 +327,7 @@ void func_80003040(void) {
break;
case COURSE_BANSHEE_BOARDWALK:
// d_course_banshee_boardwalk_packed_dl_878
find_vtx_and_set_colours(0x07000878, -0x80, 0, 0, 0);
find_vtx_and_set_colours(0x07000878, 128, 0, 0, 0);
break;
case COURSE_YOSHI_VALLEY:
vec3f_set(position, -2300.0f, 0.0f, 634.0f);
@ -351,17 +351,17 @@ void func_80003040(void) {
break;
case COURSE_SHERBET_LAND:
// d_course_sherbet_land_packed_dl_1EB8
find_vtx_and_set_colours(0x07001EB8, -0x4C, 0xFF, 0xFF, 0xFF);
find_vtx_and_set_colours(0x07001EB8, 180, 0xFF, 0xFF, 0xFF);
// d_course_sherbet_land_packed_dl_2308
find_vtx_and_set_colours(0x07002308, -0x6A, 0xFF, 0xFF, 0xFF);
find_vtx_and_set_colours(0x07002308, 150, 0xFF, 0xFF, 0xFF);
break;
case COURSE_RAINBOW_ROAD:
// d_course_rainbow_road_packed_dl_2068
find_vtx_and_set_colours(0x07002068, -0x6A, 0xFF, 0xFF, 0xFF);
find_vtx_and_set_colours(0x07002068, 150, 0xFF, 0xFF, 0xFF);
// d_course_rainbow_road_packed_dl_1E18
find_vtx_and_set_colours(0x07001E18, -0x6A, 0xFF, 0xFF, 0xFF);
find_vtx_and_set_colours(0x07001E18, 150, 0xFF, 0xFF, 0xFF);
// d_course_rainbow_road_packed_dl_1318
find_vtx_and_set_colours(0x07001318, -1, 0xFF, 0xFF, 0);
find_vtx_and_set_colours(0x07001318, 255, 0xFF, 0xFF, 0);
break;
case COURSE_WARIO_STADIUM:
vec3f_set(position, -131.0f, 83.0f, 286.0f);

View File

@ -1547,13 +1547,13 @@ void course_generate_collision_mesh(void) {
parse_course_displaylists((uintptr_t) d_course_koopa_troopa_beach_addr);
func_80295C6C();
// d_course_koopa_troopa_beach_packed_dl_ADE0
find_vtx_and_set_colours((uintptr_t) 0x0700ADE0, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x0700ADE0, 150, 255, 255, 255);
// d_course_koopa_troopa_beach_packed_dl_A540
find_vtx_and_set_colours((uintptr_t) 0x0700A540, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x0700A540, 150, 255, 255, 255);
// d_course_koopa_troopa_beach_packed_dl_9E70
find_vtx_and_set_colours((uintptr_t) 0x07009E70, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x07009E70, 150, 255, 255, 255);
// d_course_koopa_troopa_beach_packed_dl_358
find_vtx_and_set_colours((uintptr_t) 0x07000358, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x07000358, 150, 255, 255, 255);
break;
case COURSE_ROYAL_RACEWAY:
parse_course_displaylists((uintptr_t) d_course_royal_raceway_addr);
@ -1590,9 +1590,9 @@ void course_generate_collision_mesh(void) {
func_80295C6C();
D_8015F8E4 = -18.0f;
// d_course_sherbet_land_packed_dl_1EB8
find_vtx_and_set_colours((uintptr_t) 0x07001EB8, -0x4C, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x07001EB8, 180, 255, 255, 255);
// d_course_sherbet_land_packed_dl_2308
find_vtx_and_set_colours((uintptr_t) 0x07002308, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x07002308, 150, 255, 255, 255);
break;
case COURSE_RAINBOW_ROAD:
D_800DC5C8 = 1;
@ -1600,14 +1600,14 @@ void course_generate_collision_mesh(void) {
func_80295C6C();
D_8015F8E4 = 0.0f;
// d_course_rainbow_road_packed_dl_2068
find_vtx_and_set_colours((uintptr_t) 0x07002068, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x07002068, 150, 255, 255, 255);
// d_course_rainbow_road_packed_dl_1E18
find_vtx_and_set_colours((uintptr_t) 0x07001E18, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x07001E18, 150, 255, 255, 255);
// d_course_rainbow_road_packed_dl_1318
find_vtx_and_set_colours((uintptr_t) 0x07001318, 255, 255, 255, 0);
if (gGamestate != CREDITS_SEQUENCE) {
// d_course_rainbow_road_packed_dl_1FB8
find_vtx_and_set_colours((uintptr_t) 0x07001FB8, -0x6A, 255, 255, 255);
find_vtx_and_set_colours((uintptr_t) 0x07001FB8, 150, 255, 255, 255);
}
break;
case COURSE_WARIO_STADIUM: