mirror of https://github.com/AxioDL/metaforce.git
Fix incorrect light colors
This commit is contained in:
parent
17136fdfb9
commit
724deee2ab
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue