tweak effects for music timing source

This commit is contained in:
Glenn Maynard
2004-01-10 02:56:04 +00:00
parent 1b5f7b873d
commit f01621e935
+2 -2
View File
@@ -103,8 +103,8 @@ void Actor::BeginDraw() // set the world matrix and calculate actor properties
fPercentThroughEffect += m_fEffectPerfectOffset;
fPercentThroughEffect = fmodfp( fPercentThroughEffect, 1 );
bool bBlinkOn = fPercentThroughEffect > 0.5f;
float fPercentBetweenColors = (fPercentThroughEffect==0) ? 0 : (sinf( fPercentThroughEffect * 2 * PI ) / 2 + 0.5f);
bool bBlinkOn = fPercentThroughEffect < 0.5f;
float fPercentBetweenColors = sinf( (fPercentThroughEffect + 0.25f) * 2 * PI ) / 2 + 0.5f;
ASSERT( fPercentBetweenColors >= 0 && fPercentBetweenColors <= 1 );
float fOriginalAlpha = m_tempState.diffuse[0].a;