Merge pull request #9169 from samcake/red

Fix the highlight issue introduced RC 29 - 5774
This commit is contained in:
Chris Collins 2016-12-08 21:12:47 -08:00 committed by GitHub
commit b72aa83afa

View file

@ -85,7 +85,7 @@ void main(void) {
vec3 fragEyeDir = normalize(fragEyeVector.xyz);
// COmpute the rougness into gloss2 once:
float fragGloss2 = pow(frag.roughness + 0.001, 2.0);
float fragGloss2 = pow(frag.roughness + 0.001, 4.0);
bool withScattering = (frag.scattering * isScatteringEnabled() > 0.0);
int numLightTouching = 0;