mirror of https://github.com/AxioDL/metaforce.git
Decomp fixes for CGameCubeDoll
This commit is contained in:
parent
0cd4794059
commit
4001bfe4a2
|
@ -14,8 +14,10 @@ CGameCubeDoll::CGameCubeDoll() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameCubeDoll::UpdateActorLights() {
|
void CGameCubeDoll::UpdateActorLights() {
|
||||||
x8_lights[0] = CLight::BuildDirectional((zeus::skForward + zeus::skRight * 0.25f + zeus::skDown * 0.1f).normalized(),
|
// Game calculates that and does nothing
|
||||||
zeus::skWhite);
|
// (zeus::skForward + zeus::skRight * 0.25f + zeus::skDown * 0.1f).normalized();
|
||||||
|
|
||||||
|
x8_lights[0] = CLight::BuildDirectional(zeus::skForward, zeus::skWhite);
|
||||||
x18_actorLights->BuildFakeLightList(x8_lights, zeus::CColor(0.25f, 1.f));
|
x18_actorLights->BuildFakeLightList(x8_lights, zeus::CColor(0.25f, 1.f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,6 +40,7 @@ void CGameCubeDoll::Draw(float alpha) {
|
||||||
zeus::CTransform::Scale(0.2f));
|
zeus::CTransform::Scale(0.2f));
|
||||||
CModelFlags flags(5, 0, 3, zeus::CColor(1.f, alpha * x1c_fader));
|
CModelFlags flags(5, 0, 3, zeus::CColor(1.f, alpha * x1c_fader));
|
||||||
x0_model->Draw(flags);
|
x0_model->Draw(flags);
|
||||||
|
CGraphics::DisableAllLights();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameCubeDoll::Touch() {
|
void CGameCubeDoll::Touch() {
|
||||||
|
|
Loading…
Reference in New Issue