Merge branch 'master' of git@github.com:Shyotl/SingularityViewer.git
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -4302,7 +4302,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] = mat->getSpecularLightExponent() * (1.f / 255.f);
|
||||
specColor.mV[3] = llmax(0.0001f, 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());
|
||||
|
||||
Reference in New Issue
Block a user