mirror of https://github.com/AxioDL/metaforce.git
CSamusDoll: Eliminate variable shadowing in Draw()
This commit is contained in:
parent
9042dddc8c
commit
7e2ef9c8ea
|
@ -548,23 +548,23 @@ void CSamusDoll::Draw(const CStateManager& mgr, float alpha) {
|
||||||
|
|
||||||
if (x270_24_hasSpiderBall) {
|
if (x270_24_hasSpiderBall) {
|
||||||
CGraphics::SetModelMatrix(x10_ballXf);
|
CGraphics::SetModelMatrix(x10_ballXf);
|
||||||
CModelFlags flags = {};
|
CModelFlags spiderBallGlassFlags = {};
|
||||||
flags.x1_matSetIdx = x1e4_glassMatIdx;
|
spiderBallGlassFlags.x1_matSetIdx = x1e4_glassMatIdx;
|
||||||
x1d4_spiderBallGlass->GetInstance().ActivateLights(x23c_lights);
|
x1d4_spiderBallGlass->GetInstance().ActivateLights(x23c_lights);
|
||||||
|
|
||||||
flags.m_extendedShader = EExtendedShader::SolidColorBackfaceCullLEqualAlphaOnly;
|
spiderBallGlassFlags.m_extendedShader = EExtendedShader::SolidColorBackfaceCullLEqualAlphaOnly;
|
||||||
flags.x4_color = zeus::skWhite;
|
spiderBallGlassFlags.x4_color = zeus::skWhite;
|
||||||
x1d4_spiderBallGlass->Draw(flags);
|
x1d4_spiderBallGlass->Draw(spiderBallGlassFlags);
|
||||||
|
|
||||||
flags.m_extendedShader = EExtendedShader::ForcedAlpha;
|
spiderBallGlassFlags.m_extendedShader = EExtendedShader::ForcedAlpha;
|
||||||
flags.x4_color = zeus::skWhite;
|
spiderBallGlassFlags.x4_color = zeus::skWhite;
|
||||||
flags.x4_color.a() = alpha;
|
spiderBallGlassFlags.x4_color.a() = alpha;
|
||||||
x1d4_spiderBallGlass->Draw(flags);
|
x1d4_spiderBallGlass->Draw(spiderBallGlassFlags);
|
||||||
|
|
||||||
flags.m_extendedShader = EExtendedShader::ForcedAdditive;
|
spiderBallGlassFlags.m_extendedShader = EExtendedShader::ForcedAdditive;
|
||||||
flags.x4_color = zeus::skWhite;
|
spiderBallGlassFlags.x4_color = zeus::skWhite;
|
||||||
flags.x4_color.a() = x6c_ballPulseFactor * alpha * itemPulse;
|
spiderBallGlassFlags.x4_color.a() = x6c_ballPulseFactor * alpha * itemPulse;
|
||||||
x1d4_spiderBallGlass->Draw(flags);
|
x1d4_spiderBallGlass->Draw(spiderBallGlassFlags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue