Optimization pass.

This commit is contained in:
Shyotl
2018-08-07 01:09:53 -05:00
parent 71f3002717
commit d11899561b
25 changed files with 108 additions and 104 deletions

View File

@@ -1355,16 +1355,10 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
if(mShinyInAlpha)
{
GLfloat alpha[4] =
{
0.00f,
0.25f,
0.5f,
0.75f
};
// Singu Note: Avoid casing. Store as LLColor4U.
static const LLColor4U shine_steps(LLColor4(0.f, .25f, .5f, 7.5f));
llassert(tep->getShiny() <= 3);
color.mV[3] = U8 (alpha[tep->getShiny()] * 255);
color.mV[3] = shine_steps.mV[tep->getShiny()];
}
}