I have a situation where CubeGeometry based meshes in a three.js scene are reflecting the PointLight I'm using globally, except for one particular mesh. This specific mesh was created "by hand" using just THREE.Geometry (adding vertices and faces through code) and does not reflect the light like the others. It doesn't even have color; the only way to give it some color is by setting a THREE.Color to the "emissive" key on the MeshPhongMaterial.
The geometry is generated dynamically by a JavaScript function. The lights I am using are:
pointLight = new THREE.PointLight(0xFFFEF0, 1, 100000)
pointLight.position = camera.position;
scene.add(
pointLight
);
And the mentioned mesh is created with this code:
var floor = new THREE.Mesh(
ShelfArchitect.Utils.getFloorGeometry(walls),
new THREE.MeshPhongMaterial(materialParams)
);
Should I be adding something to materialParams? Or what could possibly be the issue here?