mrdoob/three.js — Issue #1470: Why does the specular term in Phong contain a diffuse component?
Author: WestLangley
Created: 2012-03-08 05:45:18+00:00
State: open

@alteredq In the Phong lighting calculations, you have added a diffuse term into the specular component like so:

dirSpecular += directionalLightColor[ i ] * uSpecularColor * dirSpecularWeight * dirDiffuseWeight;

From commit notes, you said you did this to avoid artefacts. Can you please explain what what going on? Could the artefacts, by chance, have been caused by something else?