I'm currently working on adding a plane to the scene, and here's how I'm doing it:
var plane = new THREE.Mesh(new THREE.PlaneBufferGeometry(300, 300), new THREE.MeshPhongMaterial({specular: '#fff',fog: false,color: '#ff9a00',shininess: 10 }));
After adding the plane, I want to change its color using the following code:
plane.material.color = '#ff9a00';
However, what I'm experiencing is that the plane turns completely black instead of retaining its original orange-brown color. No matter what color I try to change it to, the result is always a pitch black plane.