Attempting to implement THREE.meshphongmaterial
from a tutorial found at:
Encountering issues as it is resulting in a black color. Link to the jsfiddle code: http://jsfiddle.net/8hrk7mu6/12/
The problem seems to be on line 32:
var material = new THREE.MeshPhongMaterial( { ambient: 0x050505, color: 0x0033ff, specular: 0x555555, shininess: 30 } );
Why is this not functioning correctly? Interestingly, using THREE.MeshNormalMaterial
works without any issues.
var material = new THREE.MeshNormalMaterial();
Furthermore, attempting to use textures from an image in the code is also facing obstacles. Only THREE.MeshNormalMaterial
is producing expected results. Why is this happening?