I am facing a challenge in three.js where I need to disable lighting completely to render a 3D object. Currently, the object appears black due to some form of active lighting even though I do not have any lighting calls in my program. Despite searching for a solution, I have been unable to find one.
Edit: Code
var white = 0xFFFFFF;
var facemat = new THREE.MeshBasicMaterial( { color: white, opacity: 1.0, shading: THREE.FlatShading } );
vrmlLoader.addEventListener('load', function ( event ) {
var object = event.content;
object.material = facemat;
scene.add(object);
});
vrmlLoader.load("ship.wrl");
Most of my questions regarding this issue have been resolved through this post. Any further inquiries may veer off topic.