summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2020-02-07 16:17:15 -0800
committerPtolemy <ptolemy@lindenlab.com>2020-02-07 16:17:15 -0800
commit4be51fa5598c2ec2aa8dca2e0f00ef79a0732e1e (patch)
treebf3e4e2b7a5f329dc02f87f597023251f1595dca /indra/newview/llface.cpp
parent90e3974b165b8baa2e0b76fe7469910852d77624 (diff)
DRTVWR-440: SL-12574: Tweak environment cube map to better match Windlight
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 209dc010d4..174d8e34d1 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -1419,17 +1419,16 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
if (shiny_in_alpha)
{
-
- static const GLfloat alpha[4] =
+ static const GLfloat SHININESS_TO_ALPHA[4] =
{
- 0.00f,
- 0.25f,
- 0.5f,
- 0.75f
+ 0.0000f,
+ 0.3333f,
+ 0.6666f,
+ 1.0000f
};
llassert(tep->getShiny() <= 3);
- color.mV[3] = U8 (alpha[tep->getShiny()] * 255);
+ color.mV[3] = U8 (SHININESS_TO_ALPHA[tep->getShiny()] * 255);
}
}
}