mirror of
https://github.com/Llennpie/Saturn.git
synced 2025-01-22 07:32:02 -05:00
colorable non lit up models
This commit is contained in:
parent
01edabd070
commit
e1f7681c1d
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
V = (int32_t)((doty / 127.0f + 1.0f) / 4.0f * rsp.texture_scaling_factor.t);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
d->color.r = v->cn[0] / (world_light_dir4);
|
d->color.r = v->cn[0] / (world_light_dir4) * gLightingColor[0];
|
||||||
d->color.g = v->cn[1] / (world_light_dir4);
|
d->color.g = v->cn[1] / (world_light_dir4) * gLightingColor[1];
|
||||||
d->color.b = v->cn[2] / (world_light_dir4);
|
d->color.b = v->cn[2] / (world_light_dir4) * gLightingColor[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
d->u = U;
|
d->u = U;
|
||||||
|
|
Loading…
Reference in a new issue