After loading a model with THREE.OBJMTLLoader
, I want to add a vertex and fragment shader to it.
var loader = new THREE.OBJMTLLoader();
loader.addEventListener('load', function(event) {
var mesh = event.content;
scene.add(mesh);
});
loader.load('model/machine.obj', 'model/machine.mtl');
What is the process for applying a vertex and fragment shader to the loaded model?