diff options
author | Dave Parks <davep@lindenlab.com> | 2013-06-28 13:32:01 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-06-28 13:32:01 -0500 |
commit | 7df863265f6f536aeae84dceab9140fb4465213c (patch) | |
tree | 0c9adb2d4f7b684d803102664571a773572ed622 /indra/llrender | |
parent | 380785e613b9823cb6160be5678e5f01783fee5f (diff) |
NORSPEC-290 Shader optimization WIP -- remove a couple normalizes, pows, and divides from various lighting functions.
Diffstat (limited to 'indra/llrender')
-rwxr-xr-x | indra/llrender/llrender.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index b22ad60750..c4585936ee 100755 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -1150,7 +1150,7 @@ void LLRender::syncLightState() position[i] = light->mPosition; direction[i] = light->mSpotDirection; - attenuation[i].set(light->mLinearAtten, light->mQuadraticAtten, light->mSpecular.mV[3]); + attenuation[i].set(1.f/light->mLinearAtten, light->mQuadraticAtten, light->mSpecular.mV[3]); diffuse[i].set(light->mDiffuse.mV); } |