From e1f7681c1d5c0f3d8fd7dcf91fc27d77e0859bd0 Mon Sep 17 00:00:00 2001 From: Dominicentek Date: Sun, 10 Nov 2024 20:28:42 +0100 Subject: [PATCH] colorable non lit up models --- src/pc/gfx/gfx_pc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pc/gfx/gfx_pc.c b/src/pc/gfx/gfx_pc.c index bae0596d..83eb4691 100644 --- a/src/pc/gfx/gfx_pc.c +++ b/src/pc/gfx/gfx_pc.c @@ -1025,9 +1025,9 @@ static void gfx_sp_vertex(size_t n_vertices, size_t dest_index, const Vtx *verti V = (int32_t)((doty / 127.0f + 1.0f) / 4.0f * rsp.texture_scaling_factor.t); } } else { - d->color.r = v->cn[0] / (world_light_dir4); - d->color.g = v->cn[1] / (world_light_dir4); - d->color.b = v->cn[2] / (world_light_dir4); + d->color.r = v->cn[0] / (world_light_dir4) * gLightingColor[0]; + d->color.g = v->cn[1] / (world_light_dir4) * gLightingColor[1]; + d->color.b = v->cn[2] / (world_light_dir4) * gLightingColor[2]; } d->u = U;