I am trying to use THREE.meshphongmaterial
from this tutorial: http://solutiondesign.com/webgl-and-three-js-texture-mapping/
But it is not working and givi
Turns out it is necessary to add light. Without light, meshphongmaterial
gives black color.
So I had to add something like this:
var light = new THREE.DirectionalLight( 0xffffff );
light.position.set( 0, 1, 1 ).normalize();
scene.add(light);
Got it from this link: https://github.com/mrdoob/three.js/issues/2766