Fix incorrect light colors

This commit is contained in:
Phillip Stephens 2022-05-10 01:40:55 -07:00
parent 17136fdfb9
commit 724deee2ab
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ void CGraphics::DisableAllLights() {
void CGraphics::LoadLight(ERglLight light, const CLight& info) {
const auto lightId = static_cast<GX::LightID>(1 << light);
#if 0
#if 1
zeus::CVector3f pos = info.GetPosition();
zeus::CVector3f dir = info.GetDirection();
if (info.GetType() == ELightType::Directional) {

View File

@ -397,7 +397,7 @@ void GXLoadLightObjImm(const GX::LightObj* light, GX::LightID id) {
realLight.dir.assign(light->nx, light->ny, light->nz);
realLight.angAtt.assign(light->a0, light->a1, light->a2);
realLight.linAtt.assign(light->k0, light->k1, light->k2);
realLight.color.fromRGBA32(light->color.num);
realLight.color.fromRGBA8(light->color.color[0], light->color.color[1], light->color.color[2], light->color.color[3]);
g_gxState.lights[idx] = realLight;
}