Fixed materials specularmap + glossiness=0 combination.

This commit is contained in:
Shyotl
2014-08-23 01:34:25 -05:00
parent 66597cade3
commit 315618a18b
2 changed files with 2 additions and 2 deletions

View File

@@ -1595,7 +1595,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 = mat->getSpecularLightExponent()/255.f;
F32 spec = llmax(0.0001f, mat->getSpecularLightExponent() / 255.f);
F32 env = mat->getEnvironmentIntensity()/255.f;