From 55ad048b3a9a3ff00c481c4875ddacf8270685c7 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Fri, 12 Oct 2018 01:40:31 -0500 Subject: [PATCH] Bring specular behavior back in line with LL viewer. --- indra/newview/lldrawpoolavatar.cpp | 2 +- indra/newview/llvovolume.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index e6e1465ce..4927a5c70 100644 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -1598,7 +1598,7 @@ void LLDrawPoolAvatar::renderRigged(LLVOAvatar* avatar, U32 type, bool glow) gGL.getTexUnit(specular_channel)->bind(face->getTexture(LLRender::SPECULAR_MAP)); LLColor4 col = mat->getSpecularLightColor(); - F32 spec = llmax(0.0001f, mat->getSpecularLightExponent() / 255.f); + F32 spec = llmax(0.0000f, mat->getSpecularLightExponent() / 255.f); F32 env = mat->getEnvironmentIntensity()/255.f; diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 77173bcce..f606549e1 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4556,7 +4556,7 @@ void LLVolumeGeometryManager::registerFace(LLSpatialGroup* group, LLFace* facep, specColor.mV[0] = mat->getSpecularLightColor().mV[0] * (1.f / 255.f); specColor.mV[1] = mat->getSpecularLightColor().mV[1] * (1.f / 255.f); specColor.mV[2] = mat->getSpecularLightColor().mV[2] * (1.f / 255.f); - specColor.mV[3] = llmax(0.0001f, mat->getSpecularLightExponent() * (1.f / 255.f)); + specColor.mV[3] = llmax(0.0000f, mat->getSpecularLightExponent() * (1.f / 255.f)); draw_info->mSpecColor = specColor; draw_info->mEnvIntensity = mat->getEnvironmentIntensity() * (1.f / 255.f); draw_info->mSpecularMap = facep->getViewerObject()->getTESpecularMap(facep->getTEOffset());