Fixed the BOB broken sphere maps as a quick patch

This commit is contained in:
Mors 2025-01-12 00:50:53 +03:00
parent ec4e2be0ad
commit ac9f8cc7c9
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
v3.1.2 v3.1.2.1

View File

@ -1015,8 +1015,8 @@ static void gfx_sp_vertex(size_t n_vertices, size_t dest_index, const Vtx *verti
for (int i = 0; i < rsp.current_num_lights - 1; i++) { for (int i = 0; i < rsp.current_num_lights - 1; i++) {
calculate_normal_dir(&rsp.current_lights[i], rsp.current_lights_coeffs[i]); calculate_normal_dir(&rsp.current_lights[i], rsp.current_lights_coeffs[i]);
} }
static const Light_t lookat_x = {{0, 0, 0}, 0, {0, 0, 0}, 0, {127, 0, 0}, 0}; static const Light_t lookat_x = {{0, 0, 0}, 0, {0, 0, 0}, 0, {0, 127, 0}, 0};
static const Light_t lookat_y = {{0, 0, 0}, 0, {0, 0, 0}, 0, {0, 127, 0}, 0}; static const Light_t lookat_y = {{0, 0, 0}, 0, {0, 0, 0}, 0, {127, 0, 0}, 0};
calculate_normal_dir(&lookat_x, rsp.current_lookat_coeffs[0]); calculate_normal_dir(&lookat_x, rsp.current_lookat_coeffs[0]);
calculate_normal_dir(&lookat_y, rsp.current_lookat_coeffs[1]); calculate_normal_dir(&lookat_y, rsp.current_lookat_coeffs[1]);
rsp.lights_changed = false; rsp.lights_changed = false;