diff options
| author | Graham Linden <graham@lindenlab.com> | 2013-09-25 13:16:31 -0700 |
|---|---|---|
| committer | Graham Linden <graham@lindenlab.com> | 2013-09-25 13:16:31 -0700 |
| commit | d31010512154ef1806281552f639e492bdde7fcd (patch) | |
| tree | 951ba65ec940f5bec236855490380cd43e74ebe7 /indra/llrender | |
| parent | 089081dc802a8efb41d3eda7b2eec6f9637f1c4b (diff) | |
| parent | 571920c7b4fb8966088e769c630cda3c149c4e39 (diff) | |
Merge recent viewer-bear fixes that missed the boat
Diffstat (limited to 'indra/llrender')
| -rwxr-xr-x | indra/llrender/llrender.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index aa94110f4d..0ac30b4d63 100755 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -832,8 +832,8 @@ LLLightState::LLLightState(S32 index) : mIndex(index), mEnabled(false), mConstantAtten(1.f), - mLinearAtten(1.f), - mQuadraticAtten(1.f), + mLinearAtten(0.f), + mQuadraticAtten(0.f), mSpotExponent(0.f), mSpotCutoff(180.f) { @@ -1150,7 +1150,7 @@ void LLRender::syncLightState() position[i] = light->mPosition; direction[i] = light->mSpotDirection; - attenuation[i].set(1.f/light->mLinearAtten, light->mQuadraticAtten, light->mSpecular.mV[3]); + attenuation[i].set(light->mLinearAtten, light->mQuadraticAtten, light->mSpecular.mV[3]); diffuse[i].set(light->mDiffuse.mV); } |
